Results 1 to 9 of 9

Thread: Maven issue building Spring Batch Samples

  1. #1
    Join Date
    Sep 2010
    Posts
    6

    Default Maven issue building Spring Batch Samples

    I am a newbie to Spring Batch (and maven) and I am trying to walk through the samples.....but i hit a major hurdle just getting them to compile:

    Project build error: Unresolveable build extension: Plugin org.springframework.build.aws:org.springframework. build.aws.maven:3.0.0.RELEASE or one of its dependencies could not be resolved: Missing:
    ----------
    1) org.springframework.build.aws:org.springframework. build.aws.maven:maven-plugin:3.0.0.RELEASE

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.springframework.build.aws -DartifactId=org.springframework.build.aws.maven -Dversion=3.0.0.RELEASE -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.springframework.build.aws -DartifactId=org.springframework.build.aws.maven -Dversion=3.0.0.RELEASE -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    ----------
    1 required artifact is missing.

    for artifact:
    org.springframework.build.aws:org.springframework. build.aws.maven:maven-plugin:3.0.0.RELEASE

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2, releases=true, snapshots=false)


    How do I resolve this?

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

    Default

    How do I resolve this?
    You can change the version of the extension to 2.0.0.RELEASE.

    Update: actually, I'm not sure that 3.0.0.RELEASE is in the Central repository. I'll try and upload it then it should work out of the box.

  3. #3
    Join Date
    Sep 2010
    Posts
    6

    Default Maven Issue

    I hate to be such a newbie with Maven and Spring......but i am trying to learn.


    I am looking at the plugin management part of the pom and I see 2 choices, and i am sorry I dont know what you mean to switch to maven 2.2.1 or change the version to 2.0 RELEASE.

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

    Default

    Just try it again (I uploaded the extension to the default public repo, so if you are on the interweb it should work). Maven 2.2.1 is recommended, but probably not necessary for building the samples.

  5. #5
    Join Date
    Sep 2010
    Posts
    6

    Default

    Thanks for uploading the jar. I would like to understand how to get around what you had to reapir and use the correct version of Maven. I am assuming this is gated by the plugin part of the pom.xml......but it didnt seem to matter what i plugged in for the version, it was still complaining.

    I attached a screenshot to make sure i am looking at the correct item to configure.

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

    Default

    There should be nothing to change, and it should just work. Try building from the command line in case your IDE is stuck on something random. Paste back the error message if it still doesn't work.

  7. #7
    Join Date
    Sep 2010
    Posts
    6

    Default works - but just trying to figure this out

    Quote Originally Posted by Dave Syer View Post
    You can change the version of the extension to 2.0.0.RELEASE.

    Update: actually, I'm not sure that 3.0.0.RELEASE is in the Central repository. I'll try and upload it then it should work out of the box.
    It works perfectly now with no changes. I think i see what you wanted me to change in the <extension> tags, but for some reason it is not editable in eclipse.....in the effective POM.

    maybe it is a higher level preference i need to go after to change this.

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

    Default

    The extension is declared in the parent pom, so you would have had to override that locally by copying it over into the samples pom and changing the version. Good that it works now anyway.

  9. #9
    Join Date
    Sep 2010
    Posts
    6

    Default

    Cool, I see it. I was able to modify it and everything work that way as well. I am starting to see the power behind the maven way of handling dependencies.....

    Thanks for your help.

Posting Permissions

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