You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fredrik Wendt (JIRA)" <ji...@codehaus.org> on 2012/06/07 22:45:21 UTC
[jira] (MASSEMBLY-615) assembly:single fails with odd resource file
name
Fredrik Wendt created MASSEMBLY-615:
---------------------------------------
Summary: assembly:single fails with odd resource file name
Key: MASSEMBLY-615
URL: https://jira.codehaus.org/browse/MASSEMBLY-615
Project: Maven 2.x Assembly Plugin
Issue Type: Bug
Affects Versions: 2.3
Environment: Ubuntu Linux 11.10
Reporter: Fredrik Wendt
Priority: Minor
In a plain jar project I had a backup file name {{src/main/resources/other/.~lock.names1.csv#}} and with 2.3 I simply get a NullPointerException with very little information to why.
With version 2.2 I got proper error (with -e).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MASSEMBLY-615) assembly:single fails with odd resource file
name
Posted by "Fredrik Wendt (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fredrik Wendt updated MASSEMBLY-615:
------------------------------------
Attachment: MASSEMBLY-615.tar.gz
Attaching example project where:
Under 2.3:
{{mvn assembly:single}} creates the {{...jar-with-dependencies}}, but it's skipping the JAR with actual content.
{{mvn package}} fails with {{NullPointerException}}.
{{mvn package -e}} doesn't add any useful information.
Under 2.2:
{{mvn package}} fails with a good error message:
{code}
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ app-jar ---
[INFO] Building jar: /home/ceda/workspace-wendt/codehaus/MASSEMBLY-615/target/app-jar-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.2:single (make-assembly) @ app-jar ---
[INFO] Building jar: /home/ceda/workspace-wendt/codehaus/MASSEMBLY-615/target/app-jar-1.0.0-SNAPSHOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.873s
[INFO] Finished at: Thu Jun 07 22:53:10 CEST 2012
[INFO] Final Memory: 18M/208M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make-assembly) on project app-jar: Failed to create assembly: Error creating assembly archive jar-with-dependencies: Problem creating jar: JAR entry other/.~lock.names1.csv not found in /home/ceda/workspace-wendt/codehaus/MASSEMBLY-615/target/app-jar-1.0.0-SNAPSHOT.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch
{code}
> assembly:single fails with odd resource file name
> -------------------------------------------------
>
> Key: MASSEMBLY-615
> URL: https://jira.codehaus.org/browse/MASSEMBLY-615
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Ubuntu Linux 11.10
> Reporter: Fredrik Wendt
> Priority: Minor
> Attachments: MASSEMBLY-615.tar.gz
>
>
> In a plain jar project I had a backup file name {{src/main/resources/other/.~lock.names1.csv#}} and with 2.3 I simply get a NullPointerException with very little information to why.
> With version 2.2 I got proper error (with -e).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira