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:


Al Silverstein

asilver@cmsd-7:/opt/cisco/onep/java/sdk-java-$ mvn compile Scanning for projects... ------------------------------------------------------------------------ Building onePK Java Tutorials 1.0.0 ------------------------------------------------------------------------Downloading: (8 KB at 14.9 KB/sec)Downloading: (29 KB at 238.2 KB/sec)Downloading: (6 KB at 64.3 KB/sec)Downloading: (13 KB at 156.1 KB/sec)Downloading: (24 KB at 211.2 KB/sec)Downloading: (13 KB at 152.4 KB/sec)Downloading: (28 KB at 248.8 KB/sec)Downloading: The POM for is missing, no dependency information availableDownloading: (3 KB at 20.6 KB/sec)Downloading: (481 B at 6.0 KB/sec)Downloading: (6 KB at 72.6 KB/sec)Downloading: (3 KB at 34.4 KB/sec)Downloading: (10 KB at 112.4 KB/sec)Downloading: (2 KB at 21.0 KB/sec)Downloading: (20 KB at 171.2 KB/sec)Downloading: (10 KB at 80.7 KB/sec)Downloaded: (25 KB at 161.7 KB/sec)Downloaded: (75 KB at 329.7 KB/sec)Downloaded: (248 KB at 758.4 KB/sec)Downloaded: (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 Could not find artifact in central ( -> [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]$

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 \
3    -DartifactId=libonep-core-rel -Dversion=1.0.0 -Dpackaging=jar