Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2052

Something wrong with dependencies for addon which created by cmd "addon create advanced"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Works as Designed
    • Affects Version/s: 1.1.1.RELEASE
    • Fix Version/s: None
    • Component/s: BUILD
    • Labels:
      None
    • Environment:
      maven 2.2.1 and 3.0.2

      Description

      I created addon by:

      roo> addon create advanced --topLevelPackage com.x.z --projectName AddonName --description "Description for addon"
      

      Then went to ZOperationsImpl.java and commented "annotateType" method body after "PhysicalTypeMetadata ptm..." to the end of this method. That is because of https://jira.springframework.org/browse/ROO-2050.
      Then built and installed this addon into roo. Run setup:

      roo> z setup
      Updated ROOT\pom.xml [Added repository Z Roo add-on repository]
      Updated ROOT\pom.xml [Added dependency com.x.z:com.x.z:0.1.0.BUILD-SNAPSHOT]
      Updated ROOT\pom.xml [Added dependency org.springframework.batch:spring-batch-core:2.1.1.RELEASE]
      Updated ROOT\pom.xml [Added dependency org.springframework.batch:spring-batch-admin-manager:1.0.0.RELEASE]
      

      If then try to run app then following errors appears:

      mvn clean tomcat:run
      
      [ERROR] Failed to execute goal on project petclinic: Could not resolve dependencies for project com.springsource.petclinic:petclinic:war:0.1.0.BUILD-SNAPSHOT: The following artifacts could not be resolved:
      org.springframework.roo:org.springframework.roo.metadata:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.process.manager:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframewo
      rk.roo.file.monitor:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.file.undo:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.model:bundle:1.1.1.RELEASE, org.spri
      ngframework.roo:org.springframework.roo.shell.osgi:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.project:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.support
      :bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.shell:bundle:1.1.1.RELEASE, org.springframework.roo:org.springframework.roo.support.osgi:bundle:1.1.1.RELEASE, org.springframework.roo:
      org.springframework.roo.classpath:bundle:1.1.1.RELEASE: Failure to find org.springframework.roo:org.springframework.roo.metadata:bundle:1.1.1.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 
      

      If remove dependencies, which were added by the new addon, then all is ok.

      Also, does it need to add spring batch dependency? It seems, not.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            dzmitry Dzmitry Barouka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: