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

maven-war-plugin copies maven-ivy-pluign managed artifacts with @{extensions}@ as file extension #6

Open
shashwata opened this issue Apr 24, 2013 · 1 comment

Comments

@shashwata
Copy link

maven-war-plugin copies maven-ivy-pluign managed artifacts with @{extensions}@ as file extension

Example:
[DEBUG] Processing: jersey-json-1.13-jersey-json.@{extension}@
[DEBUG] + WEB-INF/lib/jersey-json-1.13-jersey-json.@{extension}@ has been copied.

The issue is in maven-plugins/maven-common/src/main/groovy/com/github/goldin/plugins/common/ConversionUtils.groovy toMavenArtifact() where new org.apache.maven.artifact.handler.DefaultArtifactHandler() is created with default arguments. DefaultArtifactHandler class actually contains 'extension' member which is used by maven-war-plugin to determine the artifact extension to use. The value can be set to proper value using DefaultArtifactHandler(String type) constructor (http://maven.apache.org/ref/3.0/maven-core/apidocs/org/apache/maven/artifact/handler/DefaultArtifactHandler.html#DefaultArtifactHandler%28java.lang.String%29)

@evgeny-goldin
Copy link
Owner

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

2 participants