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

Support Maven 3 builds

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.0.RELEASE
    • Fix Version/s: 1.1.2.RELEASE
    • Component/s: BUILD
    • Labels:
      None
    • Environment:
      all

      Description

      Maven 3 was release some time ago and besides being the latest stable release it is also a great improvement in terms of stability, bugfixes and code quality. This alone should be enough, but there is more to consider. With Maven 3, we also have a first (experimental) parallel build (see: https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html) feature included, that could potentially reduce the build times significantly.

      Of course this is not something that comes for free. Roo also needs to support ROO-163 and ROO-120 in order to take advantage of the parallel build feature. Even worse, not all plug-ins do yet support parallel builds (especially db, file handle, socket handling and alike is tricky here of course). However, enabling Roo to use the latest Maven version will be the first step on this way.

      Although most of the Maven API stayed the same, there are some changes, especially in the area of dependency management. I guess this is the reason for the current problem when building with Maven 3. Here is the output I receive when building with Maven 3.0.0:

      Failed to execute goal on project org.springframework.roo.mojo.addon: 
      Could not resolve dependencies for project 
      org.springframework.roo:org.springframework.roo.mojo.addon:maven-plugin:1.1.1.RELEASE: 
      The following artifacts could not be resolved: org.springframework.roo:org.springframework.roo.support:bundle:1.1.1.RELEASE, 
      org.springframework.roo:org.springframework.roo.support.osgi:bundle:1.1.1.RELEASE, 
      org.springframework.roo.wrapping:org.springframework.roo.wrapping.json-simple:bundle:1.1.0.0001, 
      org.springframework.roo:org.springframework.roo.shell:bundle:1.1.1.RELEASE: 
      Could not find artifact org.springframework.roo:org.springframework.roo.support:bundle:1.1.1.RELEASE 
      in spring-roo-repository (http://spring-roo-repository.springsource.org/release) -> [Help 1]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              mirkojahn Mirko Jahn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: