[
https://jira.codehaus.org/browse/ARCHETYPE-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eugene Evdokimov updated ARCHETYPE-423:
---------------------------------------
Attachment: ARCHETYPE-423-archetype-common.patch
Patch to fix this problem by checking for null before trying to close an
archetype zipFile.
> archetype:crawl goal fails with NPE
> -----------------------------------
>
> Key: ARCHETYPE-423
> URL: https://jira.codehaus.org/browse/ARCHETYPE-423
> Project: Maven Archetype
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 2.2
> Environment: RHEL 5.8, JDK 1.6.24, Maven 3.0.3
> Reporter: Alexander Zobkov
> Attachments: ARCHETYPE-423-archetype-common.patch, maven-debug.txt
>
>
> archetype:crawl goal fails with NPE and does not provide error
> details/explanations when during repository scanning process it tries to open
> broken artifact. A broken artifacts contain a plain text (usually html which
> tells that artifact or repository was moved or deleted) but not zip archives
> inside a jar file.
> {noformat}
> [INFO] Scanning /home/zobkov/.m2/repository/asm/asm/3.0/asm-3.0.jar
> [INFO] Scanning /home/zobkov/.m2/repository/asm/asm/3.1/asm-3.1-sources.jar
> [INFO] Scanning /home/zobkov/.m2/repository/asm/asm/3.1/asm-3.1.jar
> [INFO] Scanning /home/zobkov/.m2/repository/asm/asm/2.2.3/asm-2.2.3.jar
> [INFO] Scanning /home/zobkov/.m2/repository/asm/asm/2.2/asm-2.2.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.580s
> [INFO] Finished at: Mon Nov 19 12:11:33 MSK 2012
> [INFO] Final Memory: 6M/148M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.2:crawl (default-cli) on
> project standalone-pom: Execution default-cli of goal
> org.apache.maven.plugins:maven-archetype-plugin:2.2:crawl failed.
> NullPointerException -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)