maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRELEASE-574) NullPointerException in resolving ranges for test artifacts
Date Thu, 23 Sep 2010 09:54:32 GMT

     [ http://jira.codehaus.org/browse/MRELEASE-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brett Porter closed MRELEASE-574.
---------------------------------

    Resolution: Duplicate
      Assignee: Brett Porter

> NullPointerException in resolving ranges for test artifacts
> -----------------------------------------------------------
>
>                 Key: MRELEASE-574
>                 URL: http://jira.codehaus.org/browse/MRELEASE-574
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0
>         Environment: * Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> * Java version: 1.6.0_18
> * Java home: D:\java\jdk\jre
> * Default locale: cs_CZ, platform encoding: Cp1250
> * OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Petr Prochazka
>            Assignee: Brett Porter
>            Priority: Blocker
>         Attachments: pom.xml, prepare.log
>
>
> If i define in project test dependency with range
> {code:xml}<dependecy>
>   <groupId>junit</groupId>
>   <artifactId>junit</artifactId>
>   <version>[3.8.1,4.5]</version>
> </dependency>{code}
> Than build failed with NullPointerExpcetion:
> {code}java.lang.NullPointerException: version was null for junit:junit
> 	at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:390)
> 	at org.apache.maven.artifact.DefaultArtifact.isSnapshot(DefaultArtifact.java:562)
> 	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.checkArtifact(CheckDependencySnapshotsPhase.java:278)
> 	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.checkArtifact(CheckDependencySnapshotsPhase.java:269)
> 	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.checkProject(CheckDependencySnapshotsPhase.java:147)
> 	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.execute(CheckDependencySnapshotsPhase.java:109)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:203)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:140)
> 	at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:103)
> 	at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:211)
> 	at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:181)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> ...{code}
> Full log and test pom is attached.

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

        

Mime
View raw message