You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vardaan Gupta (JIRA)" <ji...@apache.org> on 2017/03/08 12:05:38 UTC

[jira] [Comment Edited] (MINSTALL-135) Copy and unpack dependency plugin not behaving when used simultaneously

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

Vardaan Gupta edited comment on MINSTALL-135 at 3/8/17 12:05 PM:
-----------------------------------------------------------------

 <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>unpack-resources</id>
						<phase>package</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<artifactItems>
						<artifactItem>
							<groupId>my.cache</groupId>
							<artifactId>my-imdg-security</artifactId>
							<version>${my.cache.version}</version>
							<includes>**/*.keystore</includes>				
							<outputDirectory>${basedir}/src/resources/</outputDirectory>
							
						</artifactItem>
					</artifactItems>
			<overWriteIfNewer>true</overWriteIfNewer>
				</configuration>
			</plugin>
			
		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy-resources</id>
						<phase>package</phase>
						<goals>
							<goal>copy</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<artifactItems>
					<artifactItem>
							<groupId>org.slf4j</groupId>
							<artifactId>slf4j-api</artifactId>
							<version>${slf4j.version}</version>
							<type>jar</type>
							<overWrite>true</overWrite>							
							<outputDirectory>${basedir}/lib/</outputDirectory>
						</artifactItem>
						<artifactItem>
							<groupId>my.cache</groupId>
							<artifactId>my-imdg-security</artifactId>
							<version>${my.cache.version}</version>
							<overWrite>true</overWrite>
							<type>jar</type>
							<overWrite>true</overWrite>							
							<outputDirectory>${basedir}/lib/</outputDirectory>
						</artifactItem>						
					</artifactItems>
					<overWriteReleases>true</overWriteReleases>			
					<overWriteSnapshots>true</overWriteSnapshots>
				</configuration>
			</plugin>


was (Author: vardaan):
 <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>unpack-resources</id>
						<phase>package</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<artifactItems>
						<artifactItem>
							<groupId>com.filinv.rtl.ds.aws.cache</groupId>
							<artifactId>aws-imdg-security</artifactId>
							<version>${my.cache.version}</version>
							<includes>**/*.keystore</includes>				
							<outputDirectory>${basedir}/src/resources/</outputDirectory>
							
						</artifactItem>
					</artifactItems>
			<overWriteIfNewer>true</overWriteIfNewer>
				</configuration>
			</plugin>
			
		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy-resources</id>
						<phase>package</phase>
						<goals>
							<goal>copy</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<artifactItems>
					<artifactItem>
							<groupId>org.slf4j</groupId>
							<artifactId>slf4j-api</artifactId>
							<version>${slf4j.version}</version>
							<type>jar</type>
							<overWrite>true</overWrite>							
							<outputDirectory>${basedir}/lib/</outputDirectory>
						</artifactItem>
						<artifactItem>
							<groupId>my.cache</groupId>
							<artifactId>my-imdg-security</artifactId>
							<version>${my.cache.version}</version>
							<overWrite>true</overWrite>
							<type>jar</type>
							<overWrite>true</overWrite>							
							<outputDirectory>${basedir}/lib/</outputDirectory>
						</artifactItem>						
					</artifactItems>
					<overWriteReleases>true</overWriteReleases>			
					<overWriteSnapshots>true</overWriteSnapshots>
				</configuration>
			</plugin>

> Copy and unpack dependency plugin not behaving when used simultaneously
> -----------------------------------------------------------------------
>
>                 Key: MINSTALL-135
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-135
>             Project: Maven Install Plugin
>          Issue Type: Bug
>          Components: install:install
>    Affects Versions: 2.6
>            Reporter: Vardaan Gupta
>
> I am trying to use two maven-dependency-plugin with goals  
> 1. unpack 
> 2. copy 
> They are working individually fine but when both are in the pom.xml 
> then behaviour is not as expected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)