You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2018/12/14 16:30:00 UTC

[jira] [Comment Edited] (MRAR-81) rar artifact is build twice

    [ https://issues.apache.org/jira/browse/MRAR-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16721574#comment-16721574 ] 

Karl Heinz Marbaise edited comment on MRAR-81 at 12/14/18 4:29 PM:
-------------------------------------------------------------------

Exactly as I expected. You have added an an execution which is not needed cause you already defined the packaging: rar which implies the binding to the life cycle. If you like to do some configuration for your plugin you should use pluginManagement instead.

So a configuration could look like:
{code:xml}  <build>
       <pluginManagement>
  	<plugins>
  		<plugin>
		  <groupId>org.apache.maven.plugins</groupId>
		  <artifactId>maven-rar-plugin</artifactId>
		      <configuration>
		        <includeJar>false</includeJar>
		      </configuration>
		    </execution>
		  </executions>
		</plugin>
	 </plugins>
       </pluginManagement>
 </build>
{code}



was (Author: khmarbaise):
Exactly as I expected. You have added an an execution which is not needed cause you already defined the packaging: rar which implies the binding to the life cycle. If you like to do some configuration for your plugin you should use pluginManagement instead.


> rar artifact is build twice
> ---------------------------
>
>                 Key: MRAR-81
>                 URL: https://issues.apache.org/jira/browse/MRAR-81
>             Project: Maven Rar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Windows10, JDk 1.8, maven 3.5.4
>            Reporter: zosrothko
>            Priority: Major
>         Attachments: pom.xml
>
>
> Hi
> Below a log a build with the mavan-rar-plugin showing that the rar artifact is build twice, one for the 'default-rar' goal and one for the 'rar' goal
>  
> [INFO] --------------< fr.swisslife.archiev3:archieftconnector >---------------
> [INFO] Building SCORT FT Resource Adapter 0.0.1-SNAPSHOT                 [9/11]
> [INFO] --------------------------------[ rar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ archieftconnector ---
> [INFO] Deleting Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ archieftconnector ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\main\resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ archieftconnector ---
> [INFO] No sources to compile
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ archieftconnector ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\test\resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ archieftconnector ---
> [INFO] No sources to compile
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ archieftconnector ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-rar-plugin:2.4:rar (default-rar) @ archieftconnector ---
> [INFO] Copying artifact[bouncycastle, bouncycastle:bouncycastle:jar:1.04, compile]
> [INFO] Copying artifact[ctg, ctg:ctgclient:jar:4.0, compile]
> [INFO] Copying artifact[commons-logging, commons-logging:commons-logging:jar:1.1.1, compile]
> [INFO] Copying artifact[log4j, log4j:log4j:jar:1.2.15, compile]
> [INFO] Copying artifact[javax.mail, javax.mail:mail:jar:1.4, compile]
> [INFO] Copying artifact[javax.activation, javax.activation:activation:jar:1.1, compile]
> [INFO] Copying artifact[javax.jms, javax.jms:jms:jar:1.1, compile]
> [INFO] Copying artifact[com.sun.jdmk, com.sun.jdmk:jmxtools:jar:1.2.1, compile]
> [INFO] Copying artifact[com.sun.jmx, com.sun.jmx:jmxri:jar:1.2.1, compile]
> [INFO] Copying artifact[com.scort.cics.jca, com.scort.cics.jca:scortcicsecira:jar:3.1.0, compile]
> [INFO] Copying artifact[com.scort.tools, com.scort.tools:scortutilities:jar:2.2.0, compile]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 9 resources to Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target\archieftconnector-0.0.1-SNAPSHOT
> [INFO] Using ra.xml Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\main\rar\META-INF\ra.xml
> [INFO] Including custom manifest file[Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\main\rar\META-INF\MANIFEST.MF]
> [INFO] Building jar: Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target\archieftconnector-0.0.1-SNAPSHOT.rar
> [INFO] 
> [INFO] --- maven-rar-plugin:2.4:rar (rar) @ archieftconnector ---
> [INFO] Copying artifact[bouncycastle, bouncycastle:bouncycastle:jar:1.04, compile]
> [INFO] Copying artifact[ctg, ctg:ctgclient:jar:4.0, compile]
> [INFO] Copying artifact[commons-logging, commons-logging:commons-logging:jar:1.1.1, compile]
> [INFO] Copying artifact[log4j, log4j:log4j:jar:1.2.15, compile]
> [INFO] Copying artifact[javax.mail, javax.mail:mail:jar:1.4, compile]
> [INFO] Copying artifact[javax.activation, javax.activation:activation:jar:1.1, compile]
> [INFO] Copying artifact[javax.jms, javax.jms:jms:jar:1.1, compile]
> [INFO] Copying artifact[com.sun.jdmk, com.sun.jdmk:jmxtools:jar:1.2.1, compile]
> [INFO] Copying artifact[com.sun.jmx, com.sun.jmx:jmxri:jar:1.2.1, compile]
> [INFO] Copying artifact[com.scort.cics.jca, com.scort.cics.jca:scortcicsecira:jar:3.1.0, compile]
> [INFO] Copying artifact[com.scort.tools, com.scort.tools:scortutilities:jar:2.2.0, compile]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 9 resources to Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target\archieftconnector-0.0.1-SNAPSHOT
> [INFO] Using ra.xml Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\main\rar\META-INF\ra.xml
> [INFO] Including custom manifest file[Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\src\main\rar\META-INF\MANIFEST.MF]
> [INFO] Building jar: Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target\archieftconnector-0.0.1-SNAPSHOT.rar
> [INFO] 
> [INFO] --- maven-install-plugin:2.4:install (default-install) @ archieftconnector ---
> [INFO] Installing Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\target\archieftconnector-0.0.1-SNAPSHOT.rar to Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archie\..\maven\repository\fr\swisslife\archiev3\archieftconnector\0.0.1-SNAPSHOT\archieftconnector-0.0.1-SNAPSHOT.rar
> [INFO] Installing Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archieftconnector\pom.xml to Z:\MXW\Clients\SwissLife\ArchieV3\LXX_ArchieV3_JBoss\archie\..\maven\repository\fr\swisslife\archiev3\archieftconnector\0.0.1-SNAPSHOT\archieftconnector-0.0.1-SNAPSHOT.pom



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)