Results 1 to 3 of 3

Thread: Spring Roo advance addon dependency not getting resolved after applied "setup" cmd

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default Spring Roo advance addon dependency not getting resolved after applied "setup" cmd

    Hi,

    I have created an advance addon, which is nothing but autogenerated advance plugin.

    I have tested the pluging locally using mvn install:install-file and it worked properly.

    Later I followed all steps from this page(http://www.springsource.org/roo/guide?w=simple-addons) and
    created google code project for the same (http://code.google.com/p/spring-roo-addon-sample/).

    After installing addon jar and applying to any new roo project fails with dependency error following:

    org.springframework.roo:org.springframework.roo.me tadata:bundle:1.1.4.RELEASE,
    org.springframework.roo:org.springframework.roo.pr ocess.manager:bundle:1.1.4.RELEASE,
    org.springframework.roo:org.springframework.roo.pr oject:bundle:1.1.4.RELEASE,
    org.springframework.roo:org.springframework.roo.su pport:bundle:1.1.4.RELEASE,
    org.springframework.roo:org.springframework.roo.sh ell:bundle:1.1.4.RELEASE,
    org.springframework.roo:org.springframework.roo.cl asspath:bundle:1.1.4.RELEASE

    I can see these jars are getting downloaded to local maven repo but it still fails with dependency error.

    Can any one help me to resolve this dependency error ? I have listed steps I followed for this so you can point out any mistake I did.

    More Details :
    ROO Version : 1.1.4.RELEASE
    Google Code project :http://code.google.com/p/spring-roo-addon-sample/

    Steps I followed (steps to reproduce):

    1. Created Google code project.

    2. Checkout project
    svn checkout https://spring-roo-addon-sample.goog....com/svn/trunk spring-roo-addon-sample --username <MY-EMAIL-ID> --password <MY-GOOGLE-CODE-PASS>

    3. Created advance addon
    cd <LOCAL-PATH>\RooLab\spring-roo-addon-sample
    <ROO-PATH>\bin\roo.bat
    addon create advanced --topLevelPackage addon.roo.sample --projectName spring-roo-addon-sample
    perform assembly
    perform eclipse
    exit

    4. Edited SampleOperationsImpl.java
    ##Changed dependency version from "0.1.0.BUILD-SNAPSHOT" to "0.1.0.BUILD" on line no 116.

    5. Check in changes
    #Delete target dir & log.roo
    svn add pom.xml src/ legal/ readme.txt .project .classpath
    svn commit -m "initial commit"


    6. Maven Release
    ### INPUT for prepare tag
    mvn releaserepare releaseerform
    #What is the release version for "spring-roo-addon-sample"? (addon.roo.sample:addon.roo.sample) 0.1.0.BUILD: : 0.1.0.BUILD
    #What is SCM release tag or label for "spring-roo-addon-sample"? (addon.roo.sample:addon.roo.sample) addon.roo.sample-0.1.0.BUILD: : addon.roo.sample-0.1.0.BUILD
    #What is the new development version for "spring-roo-addon-sample"? (addon.roo.sample:addon.roo.sample) 0.1.1.BUILD-SNAPSHOT: : 0.1.1.BUILD-SNAPSHOT


    7. INSTALL addon using osgi url
    osgi start --url https://spring-roo-addon-sample.goog....1.0.BUILD.jar


    8. Apply sample addon on new project
    ## Create new Roo project wihtout any entity just empty roo project
    ## perform package ( will work)
    ## sample setup
    ## perform package (Fails..)
    ERROR :The following artifacts could not be resolved: org.springframework.roo:org.springframework.roo.me tadata:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.pr ocess.manager:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.pr oject:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.su pport:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.sh ell:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.cl asspath:bundle:1.1.4.RELEASE: Failure to find org.springframework.roo:org.springframework.roo.me tadata:bundle:1.1.4.RELEASE in http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced -> [Help 1]
    Last edited by rutvij; Jul 6th, 2011 at 06:17 PM.

  2. #2
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    668

    Question Wrong Maven command?

    Quote Originally Posted by rutvij View Post
    I have tested the pluging locally using mvn install:install-file and it worked properly.
    I'm still looking into your problem, but is there any reason you used "mvn install:install-file" instead of "mvn clean install" as specified in the Roo reference guide? As well as having a different purpose, the latter requires no arguments and is therefore more reliable.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

  3. #3
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    668

    Post

    Quote Originally Posted by rutvij View Post
    ## perform package (Fails..)
    ERROR :The following artifacts could not be resolved: org.springframework.roo:org.springframework.roo.me tadata:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.pr ocess.manager:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.pr oject:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.su pport:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.sh ell:bundle:1.1.4.RELEASE, org.springframework.roo:org.springframework.roo.cl asspath:bundle:1.1.4.RELEASE:
    For some reason the project in which you are testing the addon has a dependency on the core Roo artifacts, which is wrong. The only Roo dependency an end user project should have is the Roo annotations JAR file, with a scope of "provided" to ensure it's not packaged into the final application artifact.

    I'm not sure exactly how this has happened; it shouldn't occur if you precisely follow the reference guide (e.g. use "mvn clean install"). Please try again and let us know how it goes.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

Tags for this Thread

Posting Permissions

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