You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here apache/maven-shade-plugin#150 is the fix for upstream. I've verified locally. If you're still interested in this issue, please react an emoji to prioritize it :)
Describe the bug
Build with the
package
goal fail if there is noclean
goal executed.It seems that
maven-shade-plugin
is not able to properly handle a resource file, thus the root cause is likely in themaven-shade-plugin
project.Error creating shaded jar: duplicate entry: META-INF/services/co.elastic.apm.agent.shaded.stagemonitor.configuration.ConfigurationOptionProvider
How to reproduce
mvn clean package -DskipTests -Dmaven.javadoc.skip=true
clean
will failmvn package -DskipTests -Dmaven.javadoc.skip=true
Workaround
Always execute the
clean
goal makes it work, but means doing extra work as the project is re-built from scratch.The text was updated successfully, but these errors were encountered: