You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ernst de Haan (JIRA)" <ji...@codehaus.org> on 2014/12/09 11:45:11 UTC

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

    [ https://jira.codehaus.org/browse/ARCHETYPE-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358818#comment-358818 ] 

Ernst de Haan commented on ARCHETYPE-423:
-----------------------------------------

Reproducible with Maven 3.2.3, maven-archetype-plugin 2.2, Java 1.7.0_51 on OS X 10.10.1.

> 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)