Software Defined Networking
1748089 Members
4978 Online
108758 Solutions
New Discussion

Re: Eclipse can't resolve maven dependencies on "Ubuntu 14.04.1 LTS trusty"

 
SOLVED
Go to solution
aalgohary
Occasional Advisor

Eclipse can't resolve maven dependencies on "Ubuntu 14.04.1 LTS trusty"

Hi,

 

I have prepared a SDN Development Environment with the following specs:

 

1- OS:

Ubuntu 14.04.1 LTS trusty

 

2- Java: 

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

 

3- Maven:

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T19:37:52+02:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_20, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-36-generic", arch: "amd64", family: "unix"

 

Then installed the SDN SDK and made sure that the java libraries are under "~/.m2/repository/com/hp/".

 

Then generated the sample application using the script "gen-sdn-app" with target directory under my home directory.

 

Then ran "mvn eclipse:eclipse" from app root directory as the programming guide says.

 

The problem is that when I import the app projects in Eclipse, it opens but gives me errors in the import for com.hp.*. All these packages can't be resolved.

 

Any help please?

 

BR,

Ahmad Al Gohary

2 REPLIES 2
aalgohary
Occasional Advisor
Solution

Re: Eclipse can't resolve maven dependencies on "Ubuntu 14.04.1 LTS trusty"

Hi,

 

I solved the issue by using  "Eclipse IDE for Java Developers Version: Indigo Service Release 2" and JDK1.7 not 1.8.

 

Thanks,

sdnindia
Trusted Contributor

Re: Eclipse can't resolve maven dependencies on "Ubuntu 14.04.1 LTS trusty"

Hello Ahmad Al Gohary,

 

We are glad that your problem is solved.

Please do let us know if you need further assistance.

 

Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.

 

Thanks

HP SDN Team