Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: maven dependency unavailable

  1. #1
    Join Date
    Aug 2007
    Posts
    4

    Default maven dependency unavailable

    Hello,

    I'm using Eclipse with SVN and Maven2 plugin. I've checked out spring batch from the repository and tried to run the maven install.

    The following problem occured:

    30.08.07 13:59:30 CEST: Missing:
    1) org.apache.activemq:activemq-core:jar:4.2-incubator-SNAPSHOT
    Try downloading the file manually from the project website.
    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.activemq -DartifactId=activemq-core \
    -Dversion=4.2-incubator-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    Path to dependency:
    1) org.springframework.batch:spring-batch-integration:jar:1.0-m2-SNAPSHOT
    2) org.apache.activemq:activemq-core:jar:4.2-incubator-SNAPSHOT
    1 required artifact is missing.
    for artifact:
    org.springframework.batch:spring-batch-integration:jar:1.0-m2-SNAPSHOT
    from the specified remote repositories:
    spring-snapshots (https://springframework.svn.sourcefo...repo-snapshots),
    apache-snapshots (http://people.apache.org/maven-snapshot-repository),
    central (http://repo1.maven.org/maven2)


    How can I fix this?

    I have no experience with Maven2 whatsoever yet.

    Thanks upfront

    Günther

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    Have you tried running maven from the command line? The command to 'install' spring-batch would be 'mvn install', this should download all the dependencies and create the spring-batch jars within your local repository. I have personally not had a lot of luck with the Maven2 plugin for eclipse, and always use the command line, but I do know others who have used it without any problems.

  3. #3
    Join Date
    Aug 2007
    Location
    Toronto
    Posts
    66

    Default

    I have the same error doing "mvn clean install" from the command line. Upon perusal of the apache-activemq site, it seems that the 4.2 SNAPSHOT is not there....the directory is empty

    Thanks,
    Edwin

  4. #4
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    It looks like there was a newer version posted to the repository:

    http://people.apache.org/maven-snaps.../5.0-SNAPSHOT/

    I went ahead and committed an updated the integration pom to this latest version, please post a reply if you continue to have issues.

  5. #5
    Join Date
    Aug 2007
    Posts
    4

    Default repository location

    Hi all,

    thanks for the tips and help so far.

    I figured out that there is a setting in the mavens settings.xml where I put http://people.apache.org/maven-snaps.../5.0-SNAPSHOT/

    When I run mvn install it *is* being used, but nevertheless no success, I understand this is a frequent pain, when using maven.

    Could somebody please tell me what I have to do to make this work?

    Günther

  6. #6
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    It should work out of the box - no need for messing around with settings.xml or anything. I wasn't aware that the original ActiveMQ dependency had been removed from the Apache snapshots repo (which is very naughty of them if true, but seems to be what Lucas found to be the case). The 5.0 ActiveMQ release is definitely in the repo - you can browse it with a web browser and eyeball it at http://people.apache.org/maven-snaps...activemq-core/. I haven't tried building with 5.0, but I imagine Lucas tried it before he posted.

    Did you read the section on bulding Spring Batch on the website (http://static.springframework.org/sp...uilding.html)? Did you get a clean checkout? The root level pom should already have all the repository settings that you need.

  7. #7
    Join Date
    Aug 2007
    Posts
    4

    Default

    Hi David,

    thanks for answering.

    positively no go here.

    Checked out via svn, ran make install, this came:

    Downloading: http://people.apache.org/maven-snaps...g/apache/activ
    emq/activemq-core/5.0-SNAPSHOT/activemq-core-5.0-SNAPSHOT.pom
    Downloading: https://springframework.svn.sourcefo...pringframework
    /repos/repo-snapshots/org/apache/activemq/activemq-core/5.0-SNAPSHOT/activemq-co
    re-5.0-SNAPSHOT.pom
    Downloading: http://people.apache.org/maven-snaps...g/apache/activ
    emq/activemq-core/5.0-SNAPSHOT/activemq-core-5.0-SNAPSHOT.jar
    Downloading: https://springframework.svn.sourcefo...pringframework
    /repos/repo-snapshots/org/apache/activemq/activemq-core/5.0-SNAPSHOT/activemq-co
    re-5.0-SNAPSHOT.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) org.apache.activemq:activemq-core:jar:5.0-SNAPSHOT

    Try downloading the file manually from the project website.

    Today is not my day ....

    Günther

  8. #8
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Have a look in your m2 local repository (in ${user.home}/.m2/repository) and see if there is a bad jar file or something in org/apache/activemq. Or delete that whole directory and try again. (This is a standard Maveners trick for recovering from a bad download - shouldn't happen but sometimes does.)

    N.B. you don't *need* to build it yourself - there are nightly snapshot builds available (see http://static.springframework.org/sp...snapshots.html), including source code. And the m2 release is coming soon (it says in the downloads page of the website that it is already available but it isn't quite).

  9. #9
    Join Date
    Sep 2007
    Location
    Bratislava, Slovakia
    Posts
    4

    Post AcitveMq 5.0-SNAPSHOT removed from repository

    Lucas,
    AcitveMq 5.0-SNAPSHOT was removed from the Apache snapshots repo, so build fails now. Can we use version 4.1.1 or we need newer version?

  10. #10
    Join Date
    Aug 2006
    Location
    Brooklyn
    Posts
    556

    Default

    Quote Originally Posted by Dave Syer View Post
    I wasn't aware that the original ActiveMQ dependency had been removed from the Apache snapshots repo (which is very naughty of them if true, but seems to be what Lucas found to be the case).
    Here is some more information on that:
    http://www.nabble.com/Missing-jars-i...7575s2354.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •