[ 
https://issues.apache.org/jira/browse/SPARK-13716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiasheng Wang updated SPARK-13716:
----------------------------------
    Description: 
spark/pom.xml:
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>prepare-test-jar</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <configuration>
              <excludes>
                <exclude>log4j.properties</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
-----------------------------------------------------------------------
spark/network/common/pom.xml:
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>test-jar-on-test-compile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

maven-jar-plugin:test-jar goal is bound to both phase "test-compile" and phase 
"test-jar". As a result, when I tried to deploy spark to nexus repository, 
test.jar of spark-network-common_2.10 was tried to be uploaded twice and failed.

  was:
spark/pom.xml:
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>prepare-test-jar</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <configuration>
              <excludes>
                <exclude>log4j.properties</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
-----------------------------------------------------------------------
spark/network/common/pom.xml:
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>test-jar-on-test-compile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

maven-jar-plugin:test-jar goal is bound to both phase "test-compile" and phase 
"test jar". As a result, when I tried to deploy spark, test.jar of 
spark-network-common_2.10 was tried to be uploaded to nexus twice and failed.


> mvn deploy tried to upload test jar of spark-network-common_2.10 twice
> ----------------------------------------------------------------------
>
>                 Key: SPARK-13716
>                 URL: https://issues.apache.org/jira/browse/SPARK-13716
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: Apache Maven 3.3.3 
> (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)
> Maven home: /usr/local/share/maven
> Java version: 1.7.0_80, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-58-generic", arch: "amd64", family: "unix"
>            Reporter: Jiasheng Wang
>            Priority: Minor
>              Labels: mvn, pom
>
> spark/pom.xml:
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>prepare-test-jar</id>
>             <phase>prepare-package</phase>
>             <goals>
>               <goal>test-jar</goal>
>             </goals>
>             <configuration>
>               <excludes>
>                 <exclude>log4j.properties</exclude>
>               </excludes>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
> -----------------------------------------------------------------------
> spark/network/common/pom.xml:
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>test-jar-on-test-compile</id>
>             <phase>test-compile</phase>
>             <goals>
>               <goal>test-jar</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
> maven-jar-plugin:test-jar goal is bound to both phase "test-compile" and 
> phase "test-jar". As a result, when I tried to deploy spark to nexus 
> repository, test.jar of spark-network-common_2.10 was tried to be uploaded 
> twice and failed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to