Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5264

When using maven.test.skip it should skip downloading plugins which will not be run

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Given the following section:

            <plugin>
              <groupId>org.scala-tools</groupId>
              <artifactId>maven-scala-plugin</artifactId>
              <configuration>
                <testSourceDir>src/test/scala</testSourceDir>
              </configuration>
              <executions>
                <execution>
                  <id>scala-test-compile</id>
                  <phase>process-test-resources</phase>
                  <goals>
                    <goal>testCompile</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
      

      Maven will try to download the plugin irrespective of setting maven.test.skip or skipTests.

      [ERROR] Plugin org.scala-tools:maven-scala-plugin:2.15.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.scala-tools:maven-scala-plugin:jar:2.15.2: The repository system is offline but the artifact org.scala-tools:maven-scala-plugin:pom:2.15.2 is not available in the local repository. -> [Help 1]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: