Skip to content

Lack of services metadata in META-INF #54

@whitingjr

Description

@whitingjr

This project is consumed by Indy project. When this project is consumed and used in a test case the BootFinder mechanism is throwing an exception.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.commonjava.indy.test.fixture.core.CoreVertxServerFixtureTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.132 sec <<< FAILURE! - in org.commonjava.indy.test.fixture.core.CoreVertxServerFixtureTest
startAndStopWithNoOptions(org.commonjava.indy.test.fixture.core.CoreVertxServerFixtureTest)  Time elapsed: 0.031 sec  <<< ERROR!
org.commonjava.propulsor.boot.BootException: No BootInterface implementations registered.
	at org.commonjava.indy.test.fixture.core.CoreVertxServerFixtureTest.startAndStopWithNoOptions(CoreVertxServerFixtureTest.java:32)


Results :

Tests in error: 
  CoreVertxServerFixtureTest.startAndStopWithNoOptions:32 » Boot No BootInterfac...

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

This is because the BootFinder cannot locate a resource file that's expected in the META-INF directory.
META-INF/services/org.commonjava.propulsor.boot.BootInterface

$ /usr/lib/jvm/java-11-openjdk/bin/jar -tf /home/whitingjr/.m2/repository/org/commonjava/propulsor/propulsor-core/1.4/propulsor-core-1.4.jar |grep BootInterface.class
org/commonjava/propulsor/boot/BootInterface.class
org/commonjava/propulsor/boot/WeldBootInterface.class
 /usr/lib/jvm/java-11-openjdk/bin/jar -tf /home/whitingjr/.m2/repository/org/commonjava/propulsor/propulsor-core/1.4/propulsor-core-1.4.jar|grep services
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions