You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Rayees Namathponnan <ra...@citrix.com> on 2014/05/08 03:33:20 UTC

Cloudstack maven repo with sonatype nexus

Hi All,

Any of you configured "sonatype nexus" with CloudStack for maven ?

I tried to configure this, but hitting issues with Juniper-Contrail and midonet;  both these jar files are not in maven central repo, then I tried to configure as "3rd party Repository", but it doesn't works.
While plugging "plugins/network-elements/juniper-contrail" , maven unable to resolve dependency.

[root@build-test2 juniper-contrail]# mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CloudStack Plugin - Network Juniper Contrail 4.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.833s
[INFO] Finished at: Wed May 07 18:15:14 PDT 2014
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloud-plugin-network-contrail: Could not resolve dependencies for project org.a   pache.cloudstack:cloud-plugin-network-contrail:jar:4.4.0-SNAPSHOT: Failure to find net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT in http://10.223.xxx.xxx:8081/nexus/content/groups/public was cached in the local repository, resolu   tion will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [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.


Regards,
Rayees


RE: Cloudstack maven repo with sonatype nexus

Posted by Rayees Namathponnan <ra...@citrix.com>.
Thanks Prasanna.



-----Original Message-----
From: Prasanna Santhanam [mailto:tsp@apache.org] 
Sent: Sunday, May 11, 2014 9:48 PM
To: dev@cloudstack.apache.org
Subject: Re: Cloudstack maven repo with sonatype nexus

On Thu, May 08, 2014 at 01:33:20AM +0000, Rayees Namathponnan wrote:
> Hi All,
> 
> Any of you configured "sonatype nexus" with CloudStack for maven ?
> 
> I tried to configure this, but hitting issues with Juniper-Contrail 
> and midonet;  both these jar files are not in maven central repo, then 
> I tried to configure as "3rd party Repository", but it doesn't works.  
> While plugging "plugins/network-elements/juniper-contrail" , maven 
> unable to resolve dependency.

Don't have a instance handy but here's what I used to do:

You'll have to manually add a 3rd party repo for each of the jars not available in central and upload the JAR and the corresponding POM into Nexus. The nexus setup in Fremont lab should have one of the 3rd party jars added this way for reference.

--
Prasanna.,

------------------------
Powered by BigRock.com


Re: Cloudstack maven repo with sonatype nexus

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, May 08, 2014 at 01:33:20AM +0000, Rayees Namathponnan wrote:
> Hi All,
> 
> Any of you configured "sonatype nexus" with CloudStack for maven ?
> 
> I tried to configure this, but hitting issues with Juniper-Contrail
> and midonet;  both these jar files are not in maven central repo,
> then I tried to configure as "3rd party Repository", but it doesn't
> works.  While plugging "plugins/network-elements/juniper-contrail" ,
> maven unable to resolve dependency.

Don't have a instance handy but here's what I used to do:

You'll have to manually add a 3rd party repo for each of the jars not
available in central and upload the JAR and the corresponding POM into
Nexus. The nexus setup in Fremont lab should have one of the 3rd party
jars added this way for reference.

-- 
Prasanna.,

------------------------
Powered by BigRock.com