wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes JBoss Maven2 repository with old index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JBoss Maven2 repository with old index" Watch "JBoss Maven2 repository with old index" New topic
Author

JBoss Maven2 repository with old index

Luiz Abrahao
Greenhorn

Joined: Jun 18, 2008
Posts: 10
Hello,

I've just started working with Maven and I'm porting my company's applications to Maven2. We have a couple of applications using Seam and as far as I now I should use the JBoss Maven2 respository because the Central Maven2 repository doesn't have the Seam libraries.

The problem is when my Maven updates the JBoss repository's (http://repository.jboss.org/maven2/) index I get this:



With this my Maven doesn't find some of the libraries I need, for example the Seam 2.2.0.GA

If I use my browser to navigate through the repository I can see all new the libraries there. I might be doing something pretty stupid.

I'm using the m2eclipse plugin.

Thanks!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Have you tried using Maven from the Command Line? It could be a plugin issue.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Luiz Abrahao
Greenhorn

Joined: Jun 18, 2008
Posts: 10
If you open the JBoss repository's properties file (http://repository.jboss.org/maven2/.index/nexus-maven-repository-index.properties)

you see this:

I'm trying to find how to add and update the JBoss repository using the command line.

Thank you for your reply!

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

how to add and update the JBoss repository

Does this mean what I think it means? Are you saying that you want to upload the artifact that your pom.xml generates into the JBoss' Maven repository? First question: why? Second question: are you a Red Hat employee working on a JBoss product? Only if you are working on a JBoss product should you be updating the JBoss Maven repository.

If that is not what you are doing, then I am not understanding what you are attempting to accomplish.


JBoss In Action
Luiz Abrahao
Greenhorn

Joined: Jun 18, 2008
Posts: 10
Thanks for your reply Peter, I'm sorry if I wasn't clear enough.

I don't know if you have used the m2eclipse plugin. You can add repositories "to the plugin" and when you are writing your POM using the plugin's POM editor you can easily look up for artefacts.

Every time you start Eclipse the plugin updates the indexes of the all repositories that you have. But when the plugin updates the JBoss repository I'm getting a old index, from Jul 08 2008, so the plugin cannot find the latest releases when I use the POM editor to add dependencies, exclusions and so on.

If I manually insert the artefacts, without using the wizard to find the artefacts everything works fine.

Thanks,
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

That indeed is an issue. I'll see if we can get that index updated by setting up a cron job. Will update this thread when that happens. Thanks for reporting.

[My Blog] [JavaRanch Journal]
Luiz Abrahao
Greenhorn

Joined: Jun 18, 2008
Posts: 10
Thank you Jaikiran!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Luiz, thanks for the clarification - now I know what you are talking about (I am familiar with and have used that same feature). This points out the importance of being very specific when describing a problem - you might know the context for your question but not everyone will automatically guess what the context is.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Jaikiran Pai wrote:That indeed is an issue. I'll see if we can get that index updated by setting up a cron job. Will update this thread when that happens. Thanks for reporting.

The index has been updated http://repository.jboss.org/maven2/.index/nexus-maven-repository-index.properties. See if it fixes your issue.
Ted Bergeron
Greenhorn

Joined: Apr 03, 2010
Posts: 1
This index is stale again.

As of April 3rd:

http://repository.jboss.org/maven2/.index/nexus-maven-repository-index.properties

#Mon Feb 01 19:32:46 EST 2010
nexus.index.chain-id=1256577597688
nexus.index.time=20100202003210.688 +0000
nexus.index.timestamp=20100202003210.688 +0000
nexus.index.id=jboss-maven2-release-repository
nexus.index.last-incremental=0
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

There are some changes being done the JBoss Maven repo. Specifically, a new repository is being created. I believe these issues will be sorted out by the new repo.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

And welcome to Javaranch Ted!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss Maven2 repository with old index