I am trying to build my project including these two dependencies :
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>vizmap-api</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>viewmodel-api</artifactId>
<version>3.6.0</version>
</dependency>
I also have included in my POM this repository tag:
<repositories>
<repository>
<id>cytoscape_snapshots</id>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
<name>Cytoscape Snapshots</name>
<url>http://code.cytoscape.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>cytoscape_releases</id>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
<name>Cytoscape Releases</name>
<url>http://code.cytoscape.org/nexus/content/repositories/releases/</url>
</repository>
</repositories>
Then I got this error during the build :
[ERROR] Failed to execute goal on project CyPlugin: Could not resolve dependencies for project GraphSYSBIO:CyPlugin:bundle:1.0-SNAPSHOT: The following artifacts could not be resolved: org.cytoscape:vizmap-api:jar:3.6.0, org.cytoscape:viewmodel-api:jar:3.6.0: Could not find artifact org.cytoscape:vizmap-api:jar:3.6.0 in nexus (http://our_nexus_server:8081/nexus/content/groups/public/) -> [Help 1]
In my settings.xml I'm using a proxy :
<proxies>
<!-- proxy | Specification for one proxy, to be used in connecting to the
network. | -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>ourHost</host>
<port>8080</port>
<nonProxyHosts>*localAddress</nonProxyHosts>
</proxy>
</proxies>
Also using mirrors:
<mirrors>
<!-- mirror | Specifies a repository mirror site to use instead of a given
repository. The repository that | this mirror serves has an ID that matches
the mirrorOf element of this mirror. IDs are used | for inheritance and direct
lookup purposes, and must be unique across the set of mirrors. | -->
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<name>Our Local Nexus Repo</name>
<url>our_nexus:8081/nexus/content/groups/public/</url>
</mirror>
</mirrors>
My question is : How to tell maven to go find these two dependencies in the cytoscape.org/nexus/ nexus and not on our nexus server.
Is mirroring could be a solution for this problem?
The link of the cytoscape.org/nexus/ is : http://code.cytoscape.org/nexus/content/repositories/releases/org/cytoscape/vizmap-api/3.6.0/