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

ROO Error when plugin doesn't have defined version on pom.xml

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: 1.3.0.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      On the following pom.xml:

       ...
              <plugins>
                  <!-- plugin compiler -->
                  <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>${maven.compiler.plugin.version}</version>
                      <configuration>
                          <source>1.6</source>
                          <target>1.6</target>
                          <encoding>${project.build.sourceEncoding}</encoding>
                          <encoding>${project.build.sourceEncoding}</encoding>
                      </configuration>
                  </plugin>
                  <!-- plugin release -->
                  <plugin>
                      <artifactId>maven-release-plugin</artifactId>
                      <configuration>
                          <autoVersionSubmodules>true</autoVersionSubmodules>
                          <preparationGoals>clean verify</preparationGoals>
                          <goals>source:jar javadoc:jar install deploy</goals>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>aspectj-maven-plugin</artifactId>
                      <version>${maven.aspect.plugin.version}</version>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>compile</goal>
                              </goals>
                              <configuration>
                                  <source>1.6</source>
                                  <target>1.6</target>
                              </configuration>
                          </execution>
                      </executions>
                      <dependencies>
                          <dependency>
                              <groupId>org.aspectj</groupId>
                              <artifactId>aspectjtools</artifactId>
                              <version>${aspectj.version}</version>
                          </dependency>
                      </dependencies>
                  </plugin>
              </plugins>
              ...
      

      Some plugins appears without version.

      This is not an error. Maven(3) accepts this omission and search the last version available of the plugin... but shows a WARNING indicating that this is not the best way to do it.

      ROO should follow Maven practices, and only show a WARNING or Ignore it, not a throw EXCEPTION.

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              jcgarcia Juan Carlos García del Canto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: