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

metrics-httpmon-fatjar sample build results in two jars, only one can be executed to start the micro service #564

Open
isudana opened this issue Jun 14, 2019 · 1 comment

Comments

@isudana
Copy link

isudana commented Jun 14, 2019

Description:
This issue is originally reported at https://wso2.org/jira/projects/WMS/issues/WMS-73 by Sabra Ossen.

Build of sample https://github.com/wso2/msf4j/tree/master/samples/metrics-httpmon/metrics-httpmon-fatjar results in two jars, a jar having service classes with all dependencies and a jar having only the service classes.

Only the jar file having all dependencies can be executed to start the micro service.

Suggested Labels:
Type/Bug

Related Issues:
https://wso2.org/jira/projects/WMS/issues/WMS-73

@isudana
Copy link
Author

isudana commented Jun 14, 2019

Comment by Thusitha Dayaratne on the jira ticket.

Thusitha Dayaratne added a comment - 18/Jul/16 3:15 PM
This is happening due to the shade plugin. It first created the jar. Then rename it as original-*.jar and build the shaded jar with all the dependencies and name it as actual artifact name + version. Have to check if the configs can be set to disable creating original jar

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