views:

155

answers:

5

I am trying to build a maven project to test out some testing software - Arquillian.

I setup nexus and added the jboss repositories to the bottom of the public group.

When i run mvn test i get this error:

Missing:
----------
1) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jboss.arquillian.sandbox.showcase:arquillian-sandbox-showcase-jsf:jar:1.0.0-SNAPSHOT
        2) org.jboss.jbossas:jboss-as-client:pom:6.0.0.20100721-M4
        3) org.jboss.jbossas:jboss-as-iiop:jar:client:6.0.0.20100721-M4
        4) org.jboss.jbossts:jbossjts:jar:4.11.0.Final
        5) org.jboss.ws.native:jbossws-native-core:jar:3.3.0.CR1.SP2
        6) com.sun.xml.ws:jaxws-rt:jar:2.2
        7) com.sun.xml.ws:policy:jar:2.0-b01
        8) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

I checked the java.net maven 2 repository and it is definately there.

However when i navigate to my local nexus public group, it is not there.

How can i solve this problem? And what is the cause of this problem? I am in way over my head with this, as I am more accustomed to using ant+ivy.

The full output from mvn is here.

+1  A: 

Does it show up if you use the nexus web interface to search for it? I've seen cases in our nexus install where an artifact looks like it's missing like this, but shows up in the search results. If I then download it via my browser from the search results, it magically starts working at the maven command line.

Not the robust solution you want to hear, I'm sure, but it's at least worth a try.

Matt McHenry
Matt, no, it does not show up in the nexus search. A check of the local file system shows it does not exist either. Navigation via the web interface does not show it also. It's like it doesn't exist or it's read the remote repository wrong. However when i use the 'Browse Remote' for the java.net maven 2 repository, it does exist!!
JavaRocky
I suppose I would file a bug, then. :-/
Matt McHenry
A: 

If you've added the JBoss repository to Nexus, did you remember to configure your Public Repositories group to include it?

Here's a screenshot:

alt text

Daniel Pryden
Thanks for your reply, As i mentioned in the second sentence, i have added the jboss public repository group to my local public repository group.
JavaRocky
A: 

Are you behind a corporate firewall? Perhaps a HTTP proxy needs to be configured within Nexus (See the Server admin screen)

Mark O'Connor
I have configured a HTTP firewall and it has been downloading a lot of other artifacts.
JavaRocky
A: 

Ended up being a bad dependency. I had to add it manually to get it all working. Terrible!

JavaRocky