tags:

views:

229

answers:

1
+1  Q: 

Maven and Spring

Hi i am studying Spring In Action 2.0 and i am new to maven. I am walking through the chapters and codes but i i got following error when i imported project through pom.xml on the pom editor in eclipse.

6/21/09 3:19:42 AM CDT: Missing indirectly referenced artifact incubator-activemq:activeio-core:jar:3.0-beta3:compile

6/21/09 3:19:42 AM CDT: Missing indirectly referenced artifact incubator-activemq:activemq-core:jar:4.0:compile

I downloaded the jar file and added to the library. still it does not work. I am stuck what to do next? Can anyone help me with this? Thanks in advance.

+1  A: 

The referenced jars aren't available on the Maven2 central repository, so unless you have an additional repository declaration in your POM or an active profile in your settings, Maven will not know where to obtain the artifacts from.

There are a few public repositories like here and here hosting these artifacts. To use these repositories you could add the relevant repository declaration to your POM or settings. See here for an example configuration.

Alternatively if you don't trust the repositories you could manually download the jars and put them into your local Maven repository, though you'd need to be careful to replicate the structure Maven expects, and you may well encounter the same problem for different jars.

Another alternative is to use a Maven repository manager like Nexus or Artifactory, to manage Maven's interactions with external repositories, though that is almost certainly too much information if you're just starting out.

For general help/information on Maven, check out the Maven book.

Rich Seller
Yep, add a repository declaration for http://repo.fusesource.com/maven2 and it should work.
Zac Thompson