Maven 3 测试依赖的传递依赖被标记为编译,为什么?

2024-03-06

我在我的 Maven 3.0.5 / JDK 1.7 构建中观察到一个奇怪的行为。在我发现的依赖树中TEST- 具有传递性的资源COMPILE依赖关系(参见下面第 1 节)。

这会在随后的构建阶段中触发maven-jira-插件:4.2.20将这些资源解压到目标/类文件夹(实际上这是预期/正常行为,但这里不需要,请参阅下面的第 2 节)

在另一台机器上(相同的 Maven/JDK 版本)这些依赖项是not标记为COMPILE并且构建运行良好。

为什么传递依赖项被标记为编译有任何提示吗?

[更新1]我对 -X 输出有点困惑......jira Maven 插件似乎做了一些额外的魔法...“包含...”是否意味着 jira 插件使用指定版本的依赖插件?

[DEBUG] Populating class realm maven.api
[DEBUG] Created new class realm extension>com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
[DEBUG] Importing foreign packages into class realm extension>com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm extension>com.atlassian.maven.plugins:maven-jira-plugin:4.2.20
[DEBUG]   Included: com.atlassian.maven.plugins:maven-jira-plugin:jar:4.2.20
[..]
[DEBUG]   Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.0

(1)依赖树

[INFO] 
[INFO] --- maven-dependency-plugin:2.5.1:tree (default-cli) @  ---
[INFO] com.example.jira.plugins:example-plugin-solman-connector:atlassian-plugin:6.2.0.2-SNAPSHOT
[INFO] +- com.atlassian.activeobjects:activeobjects-plugin:jar:0.23.2:provided
       [..]
[INFO] +- javax.xml.ws:jaxws-api:jar:2.2.8:provided
[INFO] +- com.sun.xml.ws:jaxws-rt:jar:2.2.8:provided
       [..]
[INFO] +- com.atlassian.jira:jira-core:jar:6.2.2:provided
[INFO] |  +- com.atlassian.jira:jira-api:jar:6.2.2:provided
       [..]            
[INFO] |  +- com.atlassian.cargo-test-runner:cargo-test-runner:jar:2.6:test
[INFO] |  |  +- org.codehaus.cargo:cargo-core-uberjar:jar:1.1.2:test
[INFO] |  |  |  +- saxpath:saxpath:jar:1.0-FCS:**compile** <-------
[INFO] |  |  |  +- msv:msv:jar:20020414:**compile**
[INFO] |  |  |  +- relaxngDatatype:relaxngDatatype:jar:20020414:**compile**
[INFO] |  |  |  +- isorelax:isorelax:jar:20020414:**compile**
[INFO] |  |  |  +- org.apache.ant:ant:jar:1.7.1:test
[INFO] |  |  |  \- org.apache.ant:ant-launcher:jar:1.7.1:test
[INFO] |  |  \- ant:ant:jar:1.5.4:test

(2)构建日志包括有效的pom

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building example-plugin-solman-connector 6.2.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (default) @ example-plugin-solman-connector ---
[INFO] Executing tasks

main:
     [echo] ******************* BUILD VARIABLES ****************************************** 
     [..]
     [echo] ******************************************************************************
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:copy-bundled-dependencies (default-copy-bundled-dependencies) @ example-plugin-solman-connector ---
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/com/google/code/gson/gson/2.2.2-atlassian-1/gson-2.2.2-atlassian-1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/javax/activation/activation/1.1.1/activation-1.1.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/xpp3/xpp3/1.1.3.4-RC8/xpp3-1.1.3.4-RC8.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/log4j/log4j/1.2.16/log4j-1.2.16.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/stax/stax-api/1.0.1/stax-api-1.0.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/dom4j/dom4j/1.4/dom4j-1.4.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/commons-beanutils/commons-beanutils/1.6.1/commons-beanutils-1.6.1.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking /home/atlassian/.m2-atlassian-build-maven3-nexus-deploy/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar to /home/atlassian/x/build/target/classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:compress-resources (default-compress-resources) @ example- INFO]  [..]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ example-plugin-solman-connector -- [..]-
[INFO] --- maven-jira-plugin:4.2.20:filter-plugin-descriptor (default-filter-plugin-descriptor) @ example-plugin-solman-connector --- [..]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ example-plugin-solman-connector ---
[INFO] Compiling 30 source files to /home/atlassian/x/build/target/classes [..]
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:generate-manifest (default-generate-manifest) @ example-plugin-solman-connector ---
[INFO] No manifest instructions found, adding only non-OSGi manifest attributes
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:generate-rest-docs (default-generate-rest-docs) @ example-plugin-solman-connector ---
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ example-plugin-solman-connector ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ example-plugin-solman-connector ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/atlassian/x/build/src/test/resources
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ example-plugin-solman-connector ---
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:generate-test-manifest (default-generate-test-manifest) @ example-plugin-solman-connector ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ example-plugin-solman-connector ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:unit-test (default-unit-test) @ example-plugin-solman-connector ---
[..]
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:validate-manifest (default-validate-manifest) @ example-plugin-solman-connector ---[..]
[INFO] --- maven-jira-plugin:4.2.20:jar (default-jar) @ example-plugin-solman-connector ---
[INFO] Building jar: /home/atlassian/x/build/target/example-plugin-solman-connector-6.2.0.2-SNAPSHOT-jira_6.2.2-build_unknown_unknown.jar [..]
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:generate-obr-artifact (default-generate-obr-artifact) @ example-plugin-solman-connector --- [..]
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:validate-test-manifest (default-validate-test-manifest) @ example-plugin-solman-connector ---
[INFO] 
[INFO] --- maven-jira-plugin:4.2.20:test-jar (default-test-jar) @ example-plugin-solman-connector ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building example-plugin-solman-connector 6.2.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-help-plugin:2.2:effective-pom (default-cli) @ example-plugin-solman-connector ---
[INFO] 
Effective POMs, after inheritance, interpolation, and profiles are applied:

<?xml version="1.0" encoding="UTF-8"?>[..]        
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>[..]</parent>
  <groupId>com.example.jira.plugins</groupId>
  <artifactId>example-plugin-solman-connector</artifactId>
  <version>6.2.0.2-SNAPSHOT</version>
  <packaging>atlassian-plugin</packaging>
  <developers>
  <scm>[..]</scm>
  <distributionManagement>[..]</distributionManagement>
  <properties>[..]</properties>
  <dependencies>
    <dependency>
      <groupId>com.atlassian.activeobjects</groupId>
      <artifactId>activeobjects-plugin</artifactId>
      <version>0.23.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-configuration</groupId>
      <artifactId>commons-configuration</artifactId>
      <version>1.9</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      [..]
      <scope>provided</scope>
    </dependency>
    <dependency>
      [..]
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml.ws</groupId>
      <artifactId>jaxws-api</artifactId>
      <version>2.2.8</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.ws</groupId>
      <artifactId>jaxws-rt</artifactId>
      <version>2.2.8</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-core</artifactId>
      <version>6.2.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.sal</groupId>
      <artifactId>sal-api</artifactId>
      <version>2.10.11</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.plugins</groupId>
      <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
      <version>1.1.4</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-tests</artifactId>
      <version>6.2.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-func-tests</artifactId>
      <version>6.2.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.ws.rs</groupId>
      <artifactId>jsr311-api</artifactId>
      <version>1.1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
      <version>2.2.2-atlassian-1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.9.5</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <repositories>
    [..]
  </repositories>
  <pluginRepositories>
    [..]
  </pluginRepositories>
  <build>
    <sourceDirectory>[..]</sourceDirectory>
    <scriptSourceDirectory>[..]</scriptSourceDirectory>
    <testSourceDirectory>[..]</testSourceDirectory>
    <outputDirectory>[..]</outputDirectory>
    <testOutputDirectory>[..]</testOutputDirectory>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>/home/atlassian/x/build/src/main/resources</directory>
        <includes>
          <include>atlassian-plugin.xml</include>
        </includes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>/home/atlassian/x/build/src/main/resources</directory>
        <excludes>
          <exclude>atlassian-plugin.xml</exclude>
        </excludes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>/home/atlassian/x/build/src/test/resources</directory>
      </testResource>
    </testResources>
    <directory>/home/atlassian/x/build/target</directory>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.7</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.4.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.3.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.5.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-ear-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-ejb-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <plugin>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>2.4.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-rar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.4.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.6</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0-beta-7</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.12</version>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-2</version>
        </plugin>
        <plugin>
          <groupId>com.atlassian.maven.plugins</groupId>
          <artifactId>maven-jira-plugin</artifactId>
          <version>4.2.20</version>
        </plugin>
        <plugin>
          <groupId>com.atlassian.maven.plugins</groupId>
          <artifactId>maven-amps-plugin</artifactId>
          <version>4.2.20</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.cargo</groupId>
          <artifactId>cargo-maven2-plugin</artifactId>
          <version>1.2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-eclipse-plugin</artifactId>
          <version>2.9</version>
        </plugin>
        <plugin>
          <artifactId>maven-help-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>2.9</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-jira-plugin</artifactId>
        <version>4.2.20</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <id>default-mvn-install</id>
            <phase>install</phase>
            <goals>
              <goal>mvn-install</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-integration-test</id>
            <phase>integration-test</phase>
            <goals>
              <goal>integration-test</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-copy-test-bundled-dependencies</id>
            <phase>generate-test-resources</phase>
            <goals>
              <goal>copy-test-bundled-dependencies</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-compress-resources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>compress-resources</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-filter-plugin-descriptor</id>
            <phase>process-resources</phase>
            <goals>
              <goal>filter-plugin-descriptor</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-unit-test</id>
            <phase>test</phase>
            <goals>
              <goal>unit-test</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-filter-test-plugin-descriptor</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>filter-test-plugin-descriptor</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-generate-test-manifest</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>generate-test-manifest</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-generate-manifest</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate-manifest</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-generate-rest-docs</id>
            <phase>process-classes</phase>
            <goals>
              <goal>generate-rest-docs</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-validate-manifest</id>
            <phase>package</phase>
            <goals>
              <goal>validate-manifest</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-generate-obr-artifact</id>
            <phase>package</phase>
            <goals>
              <goal>generate-obr-artifact</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-validate-test-manifest</id>
            <phase>package</phase>
            <goals>
              <goal>validate-test-manifest</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-test-jar</id>
            <phase>package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-copy-bundled-dependencies</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-bundled-dependencies</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
          <execution>
            <id>default-mvn-deploy</id>
            <phase>deploy</phase>
            <goals>
              <goal>mvn-deploy</goal>
            </goals>
            <configuration>
              <productVersion>6.2.2</productVersion>
              <productDataVersion>5.2</productDataVersion>
              <allowGoogleTracking>false</allowGoogleTracking>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <productVersion>6.2.2</productVersion>
          <productDataVersion>5.2</productDataVersion>
          <allowGoogleTracking>false</allowGoogleTracking>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <executions>[..]
        </executions>
        <configuration>[..]
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>[..]</executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>deploy</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.4.1</version>
        <executions>
          <execution>
            <id>default-clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <executions>
          <execution>
            <id>default-resources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>resources</goal>
            </goals>
          </execution>
          <execution>
            <id>default-testResources</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>testResources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        [..]
      </plugin>
    </plugins>
  </build>
  <reporting>
   [..]
  </reporting>
</project>

None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Maven 3 测试依赖的传递依赖被标记为编译,为什么? 的相关文章

  • 按下按钮并在java中的新窗口中打开文件

    我创建了一个 JFrame 并放置了一个文本字段和按钮 在文本字段中我放置了从文本文件读取的名称 我知道我想单击按钮并打开一个已知窗口 我想在其中放置名称 其他信息来自同一个文件 这是我的代码 这是我的主框架 package Fronten
  • 带路径压缩算法的加权 Quick-Union

    有一种 带路径压缩的加权快速联合 算法 代码 public class WeightedQU private int id private int iz public WeightedQU int N id new int N iz new
  • 使用 Tabula 通过 Python 读取 pdf 时出现 Java 错误

    我已经安装了 tabula 库 用于使用 python 将 pdf 读取到 pandas 数据框中 但是当我运行代码时 import tabula df tabula read pdf sample1 pdf pages 1 我得到了例外
  • 有没有创建 Cron 表达式的 Java 代码? [关闭]

    Closed 这个问题需要多问focused help closed questions 目前不接受答案 我需要一个 Java 代码来根据用户输入创建一个 cron 表达式 用户输入是时间 频率和执行次数 只需从评论中添加 自己创建 即可
  • 如何在 JavaFX 中连接可观察列表?

    我所说的串联是指获得一个新列表 该列表侦听所有串联部分的更改 方法的目的是什么FXCollections concat ObservableList
  • Java 的支持向量机?

    我想用Java编写一个 智能监视器 它可以随时发出警报detects即将到来的性能问题 我的 Java 应用程序正在以结构化格式将数据写入日志文件
  • 什么是抽象类? [复制]

    这个问题在这里已经有答案了 当我了解抽象类时 我说 WT H 问题 创建一个无法实例化的类有什么意义呢 为什么有人想要这样的课程 什么情况下需要抽象类 如果你明白我的意思 最常见的是用作基类或接口 某些语言有单独的interface构建 有
  • 如何在 JPQL 或 HQL 中进行限制查询?

    在 Hibernate 3 中 有没有办法在 HQL 中执行相当于以下 MySQL 限制的操作 select from a table order by a table column desc limit 0 20 如果可能的话 我不想使用
  • 从 MATLAB 调用 Java?

    我想要Matlab程序调用java文件 最好有一个例子 需要考虑三种情况 Java 内置库 也就是说 任何描述的here http docs oracle com javase 6 docs api 这些项目可以直接调用 例如 map ja
  • 将非 Android 项目添加到 Android 项目

    我在 Eclipse 中有三个项目 Base Server 和 AndroidClient Base和Server是Java 1 7项目 而AndroidClient显然是一个android项目 基础项目具有在服务器和 Android 客户
  • Java Applet 中的 Apache FOP - 未找到数据的 ImagePreloader

    我正在研究成熟商业产品中的一个问题 简而言之 我们使用 Apache POI 库的一部分来读取 Word DOC 或 DOCX 文件 并将其转换为 XSL FO 以便我们可以进行标记替换 然后 我们使用嵌入到 Java 程序中的 FOP 将
  • 在Java中运行bat文件并等待

    您可能会认为从 Java 启动 bat 文件是一项简单的任务 但事实并非如此 我有一个 bat 文件 它对从文本文件读取的值循环执行一些 sql 命令 它或多或少是这样的 FOR F x in CD listOfThings txt do
  • Java继承,扩展类如何影响实际类

    我正在查看 Sun 认证学习指南 其中有一段描述了最终修饰符 它说 如果程序员可以自由地扩展我们所知的 String 类文明 它可能会崩溃 他什么意思 如果可以扩展 String 类 我是否不会有一个名为 MyString 的类继承所有 S
  • 蓝牙发送和接收文本数据

    我是 Android 开发新手 我想制作一个使用蓝牙发送和接收文本的应用程序 我得到了有关发送文本的所有内容逻辑工作 但是当我尝试在手机中测试它时 我看不到界面 这是Main Activity Code import android sup
  • 如何将 HTML 链接放入电子邮件正文中?

    我有一个可以发送邮件的应用程序 用 Java 实现 我想在邮件中放置一个 HTML 链接 但该链接显示为普通字母 而不是 HTML 链接 我怎样才能将 HTML 链接放入字符串中 我需要特殊字符吗 太感谢了 Update 大家好你们好 感谢
  • JDBC 时间戳和日期 GMT 问题

    我有一个 JDBC 日期列 如果我使用 getDate 则会得到 date 仅部分2009 年 10 月 2 日但如果我使用 getTimestamp 我会得到完整的 date 2009 年 10 月 2 日 13 56 78 890 这正
  • 如何区分从 Saxon XPathSelector 返回的属性节点和元素节点

    给定 XML
  • 手动设置Android Studio的JDK路径

    如何为 Android Studio 使用自定义 JDK 路径 我不想弄乱 PATH 因为我没有管理员权限 是否有某个配置设置文件允许我进行设置 如果您查看项目设置 您可以从那里访问 jdk 在标准 Windows 键盘映射上 您可以在项目
  • java XMLSerializer 避免复杂的空元素

    我有这个代码 DocumentBuilderFactory factory DocumentBuilderFactory newInstance DocumentBuilder builder factory newDocumentBuil
  • Log4j2 ThreadContext 映射不适用于parallelStream()

    我有以下示例代码 public class Test static System setProperty isThreadContextMapInheritable true private static final Logger LOGG

随机推荐