Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of services metadata in META-INF #54

Open
whitingjr opened this issue Dec 16, 2020 · 0 comments
Open

Lack of services metadata in META-INF #54

whitingjr opened this issue Dec 16, 2020 · 0 comments

Comments

@whitingjr
Copy link

whitingjr commented Dec 16, 2020

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
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant