You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2010/12/30 23:29:57 UTC
[jira] Updated: (ARCHETYPE-355) NPE in
DefaultArchetypeArtifactManager.closeZipFile when running integration-test
goal
[ http://jira.codehaus.org/browse/ARCHETYPE-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated ARCHETYPE-355:
------------------------------------
Description:
After successfully creating an archetype from a project (using archetype:create-from-project), a NullPointerException is encountered when executing the "integration-test" goal of the archetype plugin. The steps to reproduce are:
{noformat}cd /tmp
svn co https://squirrel-sql.svn.sourceforge.net/svnroot/squirrel-sql/trunk/sql12/plugins/example example
cd example
mvn -X clean install > build.log
mvn -X archetype:create-from-project > archetype-create.log
cd /tmp/example/target/generated-sources/archetype
mvn -X -e archetype:integration-test > archetype-test.log{noformat}
The NullPointerException is listed at the bottom of /tmp/example/target/generated-sources/archetype/archetype-test.log and appears as follows:
{noformat}Caused by: java.lang.NullPointerException
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.closeZipFile(DefaultArchetypeArtifactManager.java:588)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.isFileSetArchetype(DefaultArchetypeArtifactManager.java:200)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:104)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:237)
at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:108)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107){noformat}
The attached zip file contains all of the logs that were generated. The source is available on the web with the svn checkout listed above for convenience.
was:
After successfully creating an archetype from a project (using archetype:create-from-project), a NullPointerException is encountered when executing the "integration-test" goal of the archetype plugin. The steps to reproduce are:
cd /tmp
svn co https://squirrel-sql.svn.sourceforge.net/svnroot/squirrel-sql/trunk/sql12/plugins/example example
cd example
mvn -X clean install > build.log
mvn -X archetype:create-from-project > archetype-create.log
cd /tmp/example/target/generated-sources/archetype
mvn -X -e archetype:integration-test > archetype-test.log
The NullPointerException is listed at the bottom of /tmp/example/target/generated-sources/archetype/archetype-test.log and appears as follows:
Caused by: java.lang.NullPointerException
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.closeZipFile(DefaultArchetypeArtifactManager.java:588)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.isFileSetArchetype(DefaultArchetypeArtifactManager.java:200)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:104)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:237)
at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:108)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
The attached zip file contains all of the logs that were generated. The source is available on the web with the svn checkout listed above for convenience.
> NPE in DefaultArchetypeArtifactManager.closeZipFile when running integration-test goal
> --------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-355
> URL: http://jira.codehaus.org/browse/ARCHETYPE-355
> Project: Maven Archetype
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 2.0
> Environment: Apache Maven 3.0.1 (r1038046; 2010-11-23 05:58:32-0500)
> Java version: 1.6.0_14
> Java home: /opt/jdk1.6.0_14_x64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.35-24-generic" arch: "amd64" Family: "unix"
> Reporter: Rob Manning
> Attachments: logs.zip
>
>
> After successfully creating an archetype from a project (using archetype:create-from-project), a NullPointerException is encountered when executing the "integration-test" goal of the archetype plugin. The steps to reproduce are:
> {noformat}cd /tmp
> svn co https://squirrel-sql.svn.sourceforge.net/svnroot/squirrel-sql/trunk/sql12/plugins/example example
> cd example
> mvn -X clean install > build.log
> mvn -X archetype:create-from-project > archetype-create.log
> cd /tmp/example/target/generated-sources/archetype
> mvn -X -e archetype:integration-test > archetype-test.log{noformat}
> The NullPointerException is listed at the bottom of /tmp/example/target/generated-sources/archetype/archetype-test.log and appears as follows:
> {noformat}Caused by: java.lang.NullPointerException
> at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.closeZipFile(DefaultArchetypeArtifactManager.java:588)
> at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.isFileSetArchetype(DefaultArchetypeArtifactManager.java:200)
> at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:104)
> at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
> at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:237)
> at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:108)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107){noformat}
> The attached zip file contains all of the logs that were generated. The source is available on the web with the svn checkout listed above for convenience.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira