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

Maven Dependencies Improvements

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: None
    • Labels:
      None

      Description

      1. Unnecessary to exclude commons-logging for: spring-test, spring-web, spring-webmvc, commons-pool, commons-codec, commons-fileupload
      2. Add dependency spring-asm & exclude commons-logging (avoids unnecessary exclusions in item 1 above)
      2. Add dependency commons-beanutils & exclude commons-logging
      4. Remove JBoss repository, all hibernate deps are now in maven central
      5. Maven compiler & resources plugins, use ${project.build.sourceEncoding} in place of UTF-8 (since it is set as a variable above)
      6. Resources plugin add configuration <outputDirectory>${project.build.outputDirectory}</outputDirectory> – this was flagged by both current versions of IntelliJ & STS when using the current maven resources plugin 2.5
      7. commons-dbcp, no need to exclude commons-pool, xerces-xml or xerces-api dependencies
      8. Inclusion of spring-web, spring-jdbc, spring-tx, spring-context are not required as inclusions since they are automatically pulled in by other spring jars
      9. Always include version numbers for maven plugins. This will not cause any issues in Maven 2 and will stop Maven 3 from complaining.

      As a Maven best practice, management of versions and exclusions should be done in the pom's <dependencyManagement> section, this will also help support multimodule maven builds.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            gordonad Gordon Dickens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: