Error compiling Java tutorials with maven during installation

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: ALLAN SILVERSTEIN on 13-11-2013 11:30:02 AM
I believed I followed all of the steps correctly while installing Java sdk for onepk.  On the step where I'm supposed to compile tutorials with maven, I get the following failure:

Thanks

Al Silverstein

asilver@cmsd-7:/opt/cisco/onep/java/sdk-java-1.0.0.84/java/tutorials$ mvn compile Scanning for projects... ------------------------------------------------------------------------ Building onePK Java Tutorials 1.0.0 ------------------------------------------------------------------------Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pomDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom (8 KB at 14.9 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jarDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar (29 KB at 238.2 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.pom (6 KB at 64.3 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pomDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom (13 KB at 156.1 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/15/maven-parent-15.pomDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/15/maven-parent-15.pom (24 KB at 211.2 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/6/apache-6.pomDownloaded: http://repo.maven.apache.org/maven2/org/apache/apache/6/apache-6.pom (13 KB at 152.4 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.jarDownloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.jar (28 KB at 248.8 KB/sec)Downloading: http://repo.maven.apache.org/maven2/com/cisco/onep/libonep-core-rel/1.0.0/libonep-core-rel-1.0.0.pom The POM for com.cisco.onep:libonep-core-rel:jar:1.0.0 is missing, no dependency information availableDownloading: http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.pomDownloaded: http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.pom (3 KB at 20.6 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom (481 B at 6.0 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom (6 KB at 72.6 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.pom (3 KB at 34.4 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.6.1/slf4j-parent-1.6.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.6.1/slf4j-parent-1.6.1.pom (10 KB at 112.4 KB/sec)Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.pomDownloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.pom (2 KB at 21.0 KB/sec)Downloading: http://repo.maven.apache.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.pomDownloaded: http://repo.maven.apache.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.pom (20 KB at 171.2 KB/sec)Downloading: http://repo.maven.apache.org/maven2/com/cisco/onep/libonep-core-rel/1.0.0/libonep-core-rel-1.0.0.jarDownloading: http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jarDownloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jarDownloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jarDownloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jarDownloading: http://repo.maven.apache.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jarDownloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar (10 KB at 80.7 KB/sec)Downloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar (25 KB at 161.7 KB/sec)Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (75 KB at 329.7 KB/sec)Downloaded: http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jar (248 KB at 758.4 KB/sec)Downloaded: http://repo.maven.apache.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar (471 KB at 1231.0 KB/sec) ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 3.461s Finished at: Wed Nov 13 07:38:33 EST 2013 Final Memory: 9M/310M ------------------------------------------------------------------------ Failed to execute goal on project java-tutorials: Could not resolve dependencies for project com.cisco.onep:java-tutorials:jar:1.0.0: Could not find artifact com.cisco.onep:libonep-core-rel:jar:1.0.0 in central (http://repo.maven.apache.org/maven2) -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptionasilver@cmsd-7:/opt/cisco/onep/java/sdk-java-1.0.0.84/java/tutorials$

Subject: RE: Error compiling Java tutorials with maven during installation
Replied by: Joseph Clarke on 13-11-2013 11:34:46 AM
This is a mess to read, but it looks like it can't find the libonep-core-rel artifact.  This needs to be added your Maven repo.  To do that, do the following:
1cd /path/to/java/sdk/lib
2mvn install:install-file -Dfile=libonep-core-rel.jar -DgroupId=com.cisco.onep \
3    -DartifactId=libonep-core-rel -Dversion=1.0.0 -Dpackaging=jar

Attachments

    Outcomes