You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2006/03/06 08:37:22 UTC

[jira] Created: (MNG-2123) NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range

NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range
-------------------------------------------------------------------------------------------------------------------------

         Key: MNG-2123
         URL: http://jira.codehaus.org/browse/MNG-2123
     Project: Maven 2
        Type: Bug

  Components: Dependencies  
    Versions: 2.0.3, 2.0.2    
    Reporter: Carlos Sanchez
 Attachments: pom.xml

Struts 1.2.7 depends on commons-digester 1.6 and jasperreports 1.1.1 in [1.7,)

Build fails with a null pointer exception that is not very explanatory

[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test:jar:1.0-SNAPSHOT
[INFO]    task-segment: [test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] ----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] version was null for commons-digester:commons-digester
[INFO] ----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException: version was null for commons-digester:commons-digester
        at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:361)
        at org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:222)
        at org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:115)
        at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:88)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Mar 05 23:26:16 PST 2006
[INFO] Final Memory: 3M/5M
[INFO] ----------------------------------------------------------------------------


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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-2123) NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2123?page=comments#action_60194 ] 

Carlos Sanchez commented on MNG-2123:
-------------------------------------

if I add a dependency to commons-digester 1.7 it works

> NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2123
>          URL: http://jira.codehaus.org/browse/MNG-2123
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.0.3, 2.0.2
>     Reporter: Carlos Sanchez
>      Fix For: 2.0.4
>  Attachments: pom.xml
>
>
> Struts 1.2.7 depends on commons-digester 1.6 and jasperreports 1.1.1 in [1.7,)
> Build fails with a null pointer exception that is not very explanatory
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Unnamed - test:test:jar:1.0-SNAPSHOT
> [INFO]    task-segment: [test]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] version was null for commons-digester:commons-digester
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException: version was null for commons-digester:commons-digester
>         at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:361)
>         at org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:222)
>         at org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:115)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:88)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Sun Mar 05 23:26:16 PST 2006
> [INFO] Final Memory: 3M/5M
> [INFO] ----------------------------------------------------------------------------

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-2123) NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2123?page=comments#action_60195 ] 

Carlos Sanchez commented on MNG-2123:
-------------------------------------

if I add a dependency in 1.6 it breaks, so I can't force a version in my pom



Maven version: 2.0.3-SNAPSHOT
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\csanchez\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\apps\maven-2.0.3-SNAPSHOT\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test:jar:1.0-SNAPSHOT
[INFO]    task-segment: [test]
[INFO] ----------------------------------------------------------------------------
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] maven-surefire-plugin: resolved to version 2.2-SNAPSHOT from local repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-surefire-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-surefire-plugin:maven-plugin:2.2-SNAPSHOT
[DEBUG] maven-surefire-plugin: using locally installed snapshot
[DEBUG] maven-surefire-plugin: using locally installed snapshot
[DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0
[DEBUG]   org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
[DEBUG]   commons-io:commons-io:jar:1.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.1:resources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory = C:\Documents and Settings\csanchez\Local Settings\Temp\target\target\classes
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@87cd189d
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@166aa18]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] test:test:jar:1.0-SNAPSHOT (selected for null)
[DEBUG]   struts:struts:jar:1.2.7:compile (selected for compile)
[DEBUG]     commons-validator:commons-validator:jar:1.1.4:compile (selected for compile)
[DEBUG]     commons-digester:commons-digester:jar:1.6:compile (selected for compile)
[DEBUG]       commons-beanutils:commons-beanutils:jar:1.6:compile (selected for compile)
[DEBUG]         commons-logging:commons-logging:jar:1.0:compile (selected for compile)
[DEBUG]         commons-collections:commons-collections:jar:2.0:compile (selected for compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0:compile (selected for compile)
[DEBUG]       xml-apis:xml-apis:jar:1.0.b2:compile (selected for compile)
[DEBUG]       commons-collections:commons-collections:jar:2.0:compile (removed - nearer found: 2.1)
[DEBUG]       commons-collections:commons-collections:jar:2.1:compile (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0:compile (removed - nearer found: 1.0.4)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:compile (selected for compile)
[DEBUG]     commons-fileupload:commons-fileupload:jar:1.0:compile (selected for compile)
[DEBUG]     oro:oro:jar:2.0.8:compile (selected for compile)
[DEBUG]     commons-chain:commons-chain:jar:1.0:compile (selected for compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:compile (removed - nearer found: 1.0.4)
[DEBUG]       commons-beanutils:commons-beanutils:jar:1.7.0:compile (removed - nearer found: 1.6)
[DEBUG]     antlr:antlr:jar:2.7.2:compile (selected for compile)
[DEBUG]     commons-beanutils:commons-beanutils:jar:1.6:compile (removed - nearer found: 1.7.0)
[DEBUG]     commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected for compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:compile (removed - nearer found: 1.0.4)
[DEBUG]   commons-digester:commons-digester:jar:1.6:compile (selected for compile)
[DEBUG]     commons-beanutils:commons-beanutils:jar:1.6:compile (removed - nearer found: 1.7.0)
[DEBUG]     commons-logging:commons-logging:jar:1.0:compile (removed - nearer found: 1.0.4)
[DEBUG]     xml-apis:xml-apis:jar:1.0.b2:compile (selected for compile)
[DEBUG]     commons-collections:commons-collections:jar:2.1:compile (selected for compile)
[DEBUG]   jasperreports:jasperreports:jar:1.1.1:compile (selected for compile)
[DEBUG]     xml-apis:xml-apis:jar:1.3.02:compile (removed - nearer found: 1.0.b2)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:compile (setting version to: 1.0.4 from range: [1.0,))
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:compile (range restricted from: [1.0,) and: 1.0.4 to: 1.0.4 )
[DEBUG]     itext:itext:jar:1.3.1:compile (setting version to: 1.3.1 from range: [1.02b,))
[DEBUG]     itext:itext:jar:1.3.1:compile (selected for compile)
[DEBUG]     commons-beanutils:commons-beanutils:jar:20030211.134440:compile (setting version to: 20030211.134440 from range: [1.4,))
[DEBUG]     commons-beanutils:commons-beanutils:jar:20030211.134440:compile (range restricted from: [1.4,) and: 1.7.0 to: 1.7.0 )
[DEBUG]     commons-digester:commons-digester:jar:1.7:compile (setting version to: 1.7 from range: [1.7,))
[DEBUG]     commons-digester:commons-digester:jar:1.7:compile (setting version to: 1.7 from range: [1.7,))
[DEBUG]     commons-digester:commons-digester:jar:1.7:compile (removed - nearer found: null)
[DEBUG]     jfree:jfreechart:jar:1.0.0:compile (setting version to: 1.0.0 from range: [1.0.0,))
[DEBUG]     jfree:jfreechart:jar:1.0.0:compile (selected for compile)
[DEBUG]       jfree:jcommon:jar:1.0.0:compile (selected for compile)
[DEBUG]         junit:junit:jar:3.8:compile (selected for compile)
[DEBUG]       junit:junit:jar:3.8:compile (selected for compile)
[DEBUG]     eclipse:jdtcore:jar:3.1.0:compile (setting version to: 3.1.0 from range: [3.1.0,))
[DEBUG]     eclipse:jdtcore:jar:3.1.0:compile (selected for compile)
[DEBUG]     jfree:jcommon:jar:1.0.0:compile (setting version to: 1.0.0 from range: [1.0.0,))
[DEBUG]     jfree:jcommon:jar:1.0.0:compile (range restricted from: [1.0.0,) and: 1.0.0 to: 1.0.0 )
[DEBUG]     jfree:jcommon:jar:1.0.0:compile (selected for compile)
[DEBUG]     commons-collections:commons-collections:jar:20040616:compile (setting version to: 20040616 from range: [2.1,))
[DEBUG]     commons-collections:commons-collections:jar:20040616:compile (range restricted from: [2.1,) and: 2.1 to: 2.1 )
[DEBUG] commons-digester: using locally installed snapshot
[DEBUG] Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester \
        -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:
        1) test:test:jar:1.0-SNAPSHOT
        2) commons-digester:commons-digester:jar:RELEASE


  commons-digester:commons-digester:jar:RELEASE


[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) commons-digester:commons-digester:jar:RELEASE

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester \
          -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) test:test:jar:1.0-SNAPSHOT
        2) commons-digester:commons-digester:jar:RELEASE

----------
1 required artifact is missing.

for artifact:
  test:test:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://test.maven.codehaus.org/maven2)


[INFO] ----------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) commons-digester:commons-digester:jar:RELEASE

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester \
          -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) test:test:jar:1.0-SNAPSHOT
        2) commons-digester:commons-digester:jar:RELEASE

----------
1 required artifact is missing.

for artifact:
  test:test:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://test.maven.codehaus.org/maven2)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:551)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) commons-digester:commons-digester:jar:RELEASE

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester \
          -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) test:test:jar:1.0-SNAPSHOT
        2) commons-digester:commons-digester:jar:RELEASE

----------
1 required artifact is missing.

for artifact:
  test:test:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://test.maven.codehaus.org/maven2)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:244)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Mar 05 23:47:54 PST 2006
[INFO] Final Memory: 3M/5M
[INFO] ----------------------------------------------------------------------------

> NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2123
>          URL: http://jira.codehaus.org/browse/MNG-2123
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.0.3, 2.0.2
>     Reporter: Carlos Sanchez
>      Fix For: 2.0.4
>  Attachments: pom.xml
>
>
> Struts 1.2.7 depends on commons-digester 1.6 and jasperreports 1.1.1 in [1.7,)
> Build fails with a null pointer exception that is not very explanatory
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Unnamed - test:test:jar:1.0-SNAPSHOT
> [INFO]    task-segment: [test]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] version was null for commons-digester:commons-digester
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException: version was null for commons-digester:commons-digester
>         at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:361)
>         at org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:222)
>         at org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:115)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:88)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Sun Mar 05 23:26:16 PST 2006
> [INFO] Final Memory: 3M/5M
> [INFO] ----------------------------------------------------------------------------

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-2123) NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2123?page=all ]

Carlos Sanchez updated MNG-2123:
--------------------------------

    Fix Version: 2.0.4

> NullPointerException when a dependency uses version range and another uses an actual version incompatible with that range
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2123
>          URL: http://jira.codehaus.org/browse/MNG-2123
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.0.3, 2.0.2
>     Reporter: Carlos Sanchez
>      Fix For: 2.0.4
>  Attachments: pom.xml
>
>
> Struts 1.2.7 depends on commons-digester 1.6 and jasperreports 1.1.1 in [1.7,)
> Build fails with a null pointer exception that is not very explanatory
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Unnamed - test:test:jar:1.0-SNAPSHOT
> [INFO]    task-segment: [test]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] version was null for commons-digester:commons-digester
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException: version was null for commons-digester:commons-digester
>         at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:361)
>         at org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:222)
>         at org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:115)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:88)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Sun Mar 05 23:26:16 PST 2006
> [INFO] Final Memory: 3M/5M
> [INFO] ----------------------------------------------------------------------------

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org