I have multiple executions because i want 2 different archives to be created with the same dependencies, but with different set of files. As in, i exclude some in one and include some in the other.

I have attached my pom.xml herewith.

Thanks,
Shalini.

Brian E. Fox wrote:
What happens for the subsequent executions? Can you paste your pom? Why
do you have multiple executions? The unpack-dependencies can take a list
of dependencies and each one can be unpacked into different folders (the
output directory is configurable at the artifactItem level too)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 3:10 PM
To: [email protected]
Subject: Using the maven-dependency-plugin

Hi,

I am using the maven-dependency-plugin "unpack-dependencies" to unpack the dependencies into some directory in my target directory. When i have

multiple executions, the first unpack-dependencies execution unpacks the

junit jar by default into my output directory. This does not happen for the subsequent executions. Any ideas why this happens?

I have enabled the <excludeTrasitive> flag.

Thanks,
Shalini.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<?xml version="1.0"?>
<project>
  <parent>
    <artifactId>myProj</artifactId>
    <groupId>org.modules.myProj</groupId>
    <version>10.0-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.modules.myProj.module1</groupId>
  <artifactId>module1</artifactId>
  <name>Module 1 - blah blah</name>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>	    
	<artifactId>maven-dependency-plugin</artifactId>
	<executions>
	  <execution>
            <id>ds_unpack-dependencies</id>
	    <phase>package</phase>
	    <goals>
	      <goal>unpack-dependencies</goal>
            </goals>
	    <configuration>
              <includes>**/*.class,**/*.properties</includes>
	      <excludes>**/XA.class,**/CP.class,**/DM.class</excludes>
	      <outputDirectory>src/main/java/__ds_archive</outputDirectory>
	      <overWriteSnapshots>true</overWriteSnapshots>
	      <excludeTransitive>true</excludeTransitive>
	    </configuration>
          </execution>
          <execution>
            <id>cp_unpack-dependencies</id>
            <phase>package</phase>
            <goals>
              <goal>unpack-dependencies</goal>
            </goals>
            <configuration>
              <includes>**/*.class,**/*.properties</includes>
              <excludes>**/XA.class,**/DM.class,**/DS.class</excludes>
	      <outputDirectory>src/main/java/__cp_archive</outputDirectory>
              <overWriteSnapshots>true</overWriteSnapshots>
              <excludeTransitive>true</excludeTransitive>
            </configuration>
          </execution>	    
        </executions>
      </plugin>

    </plugins>
  </build>

  <dependencies>

    <dependency>
      <groupId>org.modules.myProj.module2</groupId>
      <artifactId>module2</artifactId>
      <version>${project.parent.version}</version>
    </dependency>

    <dependency>
      <groupId>org.modules.myProj.module3</groupId>
      <artifactId>module3</artifactId>
      <version>${project.parent.version}</version>
    </dependency>

    </dependencies>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to