Error in pom

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error in pom

Porag
Hi

Can someone please help me with this issue? The pom runs fine in my windows machine but in linux machine I am getting this error. I have been using the same maven version i.e. 3.2.3 and java 1.8.

[13] mchowdhury4@iasrl05/usr/local/porag/Brokers/2016/SPOT$ mvn clean compile exec:exec -X
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T14:58:10-06:00)
Maven home: /usr/local/porag/maven/apache-maven-3.2.3
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /usr/local/porag/java/jdk1.8.0_91/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.7.1.el6.x86_64", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/local/porag/maven/apache-maven-3.2.3/conf/settings.xml
[DEBUG] Reading user settings from /home/users/mchowdhury4/.m2/settings.xml
[DEBUG] Using local repository at /home/users/mchowdhury4/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/users/mchowdhury4/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Could not find metadata org.powertac:powertac-parent:1.4.0-SNAPSHOT/maven-metadata.xml in local (/home/users/mchowdhury4/.m2/repository)
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.systemPath' for JavaMI:JavaMI:jar should not point at files within the project directory, ${project.basedir}/lib/JavaMI.jar will be unresolvable by dependent projects @ line 63, column 19
[FATAL] Non-resolvable parent POM: Could not find artifact org.powertac:powertac-parent:pom:1.4.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 15, column 11

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:416)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:654)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]  
[ERROR]   The project org.powertac:spot-broker:[unknown-version] (/usr/local/porag/Brokers/2016/SPOT_MCTS/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact org.powertac:powertac-parent:pom:1.4.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 15, column 11 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.powertac:powertac-parent:pom:1.4.0-SNAPSHOT
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:187)
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:236)
        at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:898)
        at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:750)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:309)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:463)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:432)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:396)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:654)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.powertac:powertac-parent:pom:1.4.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:183)
        ... 22 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.powertac:powertac-parent:pom:1.4.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:449)
        ... 26 more
[ERROR]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in pom

grampajohn
Administrator
Porag -

Thanks for reporting this problem. I am able to reproduce it on my linux system. This is now Issue #907.

Cheers -

John
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in pom

grampajohn
Administrator
In reply to this post by Porag
Porag and all -

Erik found the fix for Issue #907. You will need to pull down the latest source for sample-broker, or if you have copied its pom over to your own broker, you will need to apply the same change to your own pom.xml.

As always, please let us know if this is not clear or does not seem to work for you.

John
Loading...