You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexander Zobkov (JIRA)" <ji...@codehaus.org> on 2012/11/19 12:48:13 UTC

[jira] (ARCHETYPE-423) archetype:crawl goal fails with NPE

Alexander Zobkov created ARCHETYPE-423:
------------------------------------------

             Summary: 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: 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 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