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

TO_BE_CLOSED: AJC warning incorrect classpath: ... org.springframework.roo.annotations-2.0.0.BUILD-SNAPSHOT.pom

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.RC1
    • Fix Version/s: None
    • Component/s: BUILD
    • Labels:
      None
    • Environment:
      All

      Description

      During the compilation of my simple module test :

      // Spring Roo 2.0.0.BUILD-SNAPSHOT [rev 49ea5d6] log opened at 2017-04-13 19:40:17
      project setup --topLevelPackage com.foo
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity jpa --class ~.domain.Timer
      field string --fieldName message --notNull
      repository jpa --all
      service --all
      dto --class ~.domain.TimerMessageFormBean
      field string --fieldName message
      finder add --entity ~.domain.Timer --name findByMessageLike --formBean ~.domain.TimerMessageFormBean
      web mvc setup
      web mvc view setup --type THYMELEAF
      web mvc controller --all --responseType THYMELEAF
      web mvc controller --all --pathPrefix /api

      mvn clean compile

      After AJC compilation, I got:

      [INFO] Showing AJC message detail for messages of types: [error, warning, fail]
      [WARNING] incorrect classpath: C:\Users\infeurope\.m2\repository\org\springframework\roo\org.springframework.roo.annotations\2.0.0.BUILD-SNAPSHOT\org.springframework.roo.annotations-2.0.0.BUILD-SNAPSHOT.pom
      <unknown source file>:<no line information>

      Using mvn compile -X

      I got:

      [DEBUG] Running : ajc -Xajruntimetarget:1.5 -Xlint:ignore -1.6 -encoding UTF-8 -source 1.6 -target 1.6 -classpath C:\Users\infeurope\.m2\repository\org\springframework\boot\spring-boot-starter\1.4.1.RELEASE\spring-boot-starter-1.4.1.RELEASE.jar;C:\Users\infeurope\.m2\repository\org\springframework\boot\spring-boot-starter-test\1.4.1.RELEASE\spring-boot-starter-test-1.4.1.RELEASE.jar;C:\Users\infeurope\.m2\repository\org\springframework\boot\spring-boot-devtools\1.4.1.RELEASE\spring-boot-devtools-1.4.1.RELEASE.jar;C:\Users\infeurope\.m2\repository\org\springframework\roo\org.springframework.roo.annotations\2.0.0.BUILD-SNAPSHOT\ org.springframework.roo.annotations-2.0.0.BUILD-SNAPSHOT.pom;C:\Users\infeurope\.m2\repository\org\aspectj\aspectjrt\1.8.9\aspectjrt-1.8.9.jar;...

      The pom dependency should not be in the classpath.

      Evenif the dependencies defined in org.springframework.roo.annotations-2.0.0.BUILD-SNAPSHOT.pom have to and are included in the path, the pom itself should not be part of the classpath.

      The direct injection of the org.springframework.roo.annotations-2.0.0.BUILD-SNAPSHOT.pom dependencies in the test project is a workaround.

      This problem is just generating useless warning at project compilation.

      The aspectj-maven-plugin is building a full classpath by concatainating direct and indirect artefacts dependencies.
      Artefacts of type pom have to be filtered out during this process.

      This issue should be CLOSED. I will forward upstream a pull request with the correction see https://github.com/mojohaus/aspectj-maven-plugin/issues/27.

        Attachments

          Activity

            People

            Assignee:
            jcgarcia Juan Carlos GarcĂ­a del Canto
            Reporter:
            pcolot Pierre Colot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: