[MacPorts] #41876: maven-ant-tasks cannot find JAVA_HOME correctly

MacPorts noreply at macports.org
Sat Dec 21 19:01:52 PST 2013


#41876: maven-ant-tasks cannot find JAVA_HOME correctly
------------------------------+---------------------------------------
  Reporter:  ritchiecai@…     |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.3
Resolution:                   |   Keywords:  maven-ant-tasks JAVA_HOME
      Port:  maven-ant-tasks  |
------------------------------+---------------------------------------

Comment (by ritchiecai@…):

 Created a symbolic link to the actual JAVA_HOME, that stopped complaining
 about incorrect JAVA_HOME path, but it gives a new error:
 {{{
 :debug:build Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_devel_maven-ant-tasks/maven-ant-tasks/work
 /maven-ant-tasks-2.1.3" && mvn package
 :info:build [INFO] Scanning for projects...
 :info:build Downloading: http://repo1.maven.org/maven2/org/apache/maven
 /maven-parent/19/maven-parent-19.pom
 :info:build [WARNING] Unable to get resource 'org.apache.maven:maven-
 parent:pom:19' from repository central (http://repo1.maven.org/maven2):
 Specified destination directory cannot be created:
 /opt/local/var/macports/home/.m2/repository/org/apache/maven/maven-
 parent/19
 :info:build [INFO]
 ------------------------------------------------------------------------
 :info:build [ERROR] FATAL ERROR
 :info:build [INFO]
 ------------------------------------------------------------------------
 :info:build [INFO] Error building POM (may not be this project's POM).
 :info:build
 :info:build
 :info:build Project ID: org.apache.maven:maven-ant-tasks:jar:2.1.3
 :info:build
 :info:build Reason: Cannot find parent: org.apache.maven:maven-parent for
 project: org.apache.maven:maven-ant-tasks:jar:2.1.3 for project
 org.apache.maven:maven-ant-tasks:jar:2.1.3
 :info:build
 :info:build
 :info:build [INFO]
 ------------------------------------------------------------------------
 :info:build [INFO] Trace
 :info:build org.apache.maven.reactor.MavenExecutionException: Cannot find
 parent: org.apache.maven:maven-parent for project: org.apache.maven:maven-
 ant-tasks:jar:2.1.3 for project org.apache.maven:maven-ant-tasks:jar:2.1.3
 :info:build     at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
 :info:build     at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
 :info:build     at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 :info:build     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 :info:build     at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 :info:build     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 :info:build     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 :info:build     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 :info:build     at java.lang.reflect.Method.invoke(Method.java:606)
 :info:build     at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 :info:build     at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 :info:build     at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 :info:build     at
 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 :info:build Caused by: org.apache.maven.project.ProjectBuildingException:
 Cannot find parent: org.apache.maven:maven-parent for project:
 org.apache.maven:maven-ant-tasks:jar:2.1.3 for project org.apache.maven
 :maven-ant-tasks:jar:2.1.3
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
 :info:build     at
 org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
 :info:build     at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
 :info:build     at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
 :info:build     ... 12 more
 :info:build Caused by: org.apache.maven.project.ProjectBuildingException:
 POM 'org.apache.maven:maven-parent' not found in repository: Unable to
 download the artifact from any repository
 :info:build
 :info:build   org.apache.maven:maven-parent:pom:19
 :info:build
 :info:build from the specified remote repositories:
 :info:build   central (http://repo1.maven.org/maven2)
 :info:build
 :info:build  for project org.apache.maven:maven-parent
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
 :info:build     ... 18 more
 :info:build Caused by:
 org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to
 download the artifact from any repository
 :info:build
 :info:build   org.apache.maven:maven-parent:pom:19
 :info:build
 :info:build from the specified remote repositories:
 :info:build   central (http://repo1.maven.org/maven2)
 :info:build
 :info:build
 :info:build     at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
 :info:build     at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
 :info:build     at
 org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
 :info:build     ... 19 more
 :info:build Caused by:
 org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download
 the artifact from any repository
 :info:build     at
 org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
 :info:build     at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
 :info:build     ... 21 more
 :info:build [INFO]
 ------------------------------------------------------------------------
 :info:build [INFO] Total time: < 1 second
 :info:build [INFO] Finished at: Sat Dec 21 20:57:11 CST 2013
 :info:build [INFO] Final Memory: 5M/123M
 :info:build [INFO]
 ------------------------------------------------------------------------
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_devel_maven-ant-tasks/maven-ant-tasks/work
 /maven-ant-tasks-2.1.3" && mvn package
 :info:build Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41876#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list