Error while Deploy the code into Maven Repo

72 views
Skip to first unread message

Stefanos Georgiou

unread,
Nov 4, 2015, 2:55:13 PM11/4/15
to OpenIoT
Dear Readers,

I have downloaded the zip file v0.6.1 for VirtualBox which I have installed and is up and running.
While following the VirtualBox setup guide I have encounter an issue at step 11 "Deploy the code into Maven Repo"
the output is the following:

openiot@openiot-vdk-v2:/media/openiot/openiot-code/modules/lsm-light/lsm-light.client$ mvn install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenIoT LSM-light Client 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.504s
[INFO] Finished at: Thu Nov 05 06:45:39 EST 2015
[INFO] Final Memory: 7M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project lsm-light.client: Could not resolve dependencies for project org.openiot:lsm-light.client:jar:0.0.1: Failed to collect dependencies for [org.eclipse.persistence:eclipselink:jar:2.5.0 (compile), com.hp.hpl.jena:jena:jar:2.6.4 (compile), com.hp.hpl.jena:arq:jar:2.8.3 (compile), dom4j:dom4j:jar:1.6.1 (compile), ch.qos.logback:logback-classic:jar:1.1.3 (compile), org.slf4j:slf4j-api:jar:1.7.12 (compile), org.slf4j:log4j-over-slf4j:jar:1.7.12 (compile), org.jasig.cas:cas-server-support-oauth:jar:3.5.2 (compile), javax.servlet:javax.servlet-api:jar:3.0.1 (compile), junit:junit:jar:4.11 (test), org.openiot:utils.commons:jar:0.0.1 (compile), org.openiot:security.client:jar:0.0.1-SNAPSHOT (compile)]: Failed to read artifact descriptor for org.openiot:utils.commons:jar:0.0.1: Could not find artifact org.openiot:openiot:pom:0.2-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/DependencyResolutionException

Anyone can provide me with a solution please?

Hylke van der Schaaf

unread,
Nov 5, 2015, 10:57:35 AM11/5/15
to OpenIoT
Hello Stefanos,

Which guide are you following? I generally follow https://github.com/OpenIotOrg/openiot/wiki/Installation-Guide

As for the compile error, it should be sufficient to run the command
mvn install
in the top-level directory (the highest one with a pom.xml file. That should compile everything in the correct order.

On the other hand, in the virtual box image everything already is compiled and installed, so you don't need to compile anything.

Best regards,
Hylke

Stefanos Georgiou

unread,
Nov 5, 2015, 11:02:47 AM11/5/15
to Hylke van der Schaaf, OpenIoT
Hello Hylke,

The reason I am compiling is because there are some changes in order to have the last version which located in GitHub as suggested from the guide which mentioned above (see "Steps to Update and Redeploy OpenIoT with latest version in GitHub" section step 7 to 9 some modifications are suggested and step 11 says to use mvn install were i get the error which i have added in the email) 

Best Regards,

Stefanos Georgiou

BSc in Network and System Programming
Computer Science Department
University of Cyprus

MSc in Pervasive Computing and Communications 
for Sustainable Development (PERCCOM)
Joint Master Degree
University of Lorraine, Lappeenranta, Lulea, ITMO Saint-Petersburg


--
You received this message because you are subscribed to a topic in the Google Groups "OpenIoT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openiot/ib9nna6UykU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openiot+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/openiot.

Hylke van der Schaaf

unread,
Nov 5, 2015, 11:08:38 AM11/5/15
to OpenIoT, hylke.van...@iosb.fraunhofer.de
Hello Stefanos,

Ah, ok.
In step 10, "mvn package" should be replaced with "mvn install"
And step 11 can be removed.

I'll update the page.

Best regards,
Hylke

Stefanos Georgiou

unread,
Nov 5, 2015, 11:14:50 AM11/5/15
to Hylke van der Schaaf, OpenIoT
Hi Hylke,

Thanks a lot for the quick reply.
Btw  on step 7 in the openiot.properties file a third line existing such a line as  ide.core.navigation.sensorSchemaEditor.monitoring = true 
, I should totally remove that line?

Best Regards,

Stefanos Georgiou

BSc in Network and System Programming
Computer Science Department
University of Cyprus

MSc in Pervasive Computing and Communications 
for Sustainable Development (PERCCOM)
Joint Master Degree
University of Lorraine, Lappeenranta, Lulea, ITMO Saint-Petersburg


Hylke van der Schaaf

unread,
Nov 5, 2015, 11:22:23 AM11/5/15
to OpenIoT
Hi Stefanos,

You should keep that line. I've re-added it to the page too.

Best regards,
Hylke
Reply all
Reply to author
Forward
0 new messages