maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eyal edri <eyal.e...@gmail.com>
Subject classpathPrefix with depedency subdirectory
Date Sun, 24 Jan 2010 09:01:00 GMT
is it possible to tell maven to add a classpathPrefix that will include the
artifactId Subdirectory?

i'm using 'copy dependencies' plugin, and i want to keep each artifact in
its own dir:

   <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>copy-dependencies</id>
                <phase>install</phase>
                <goals>
                  <goal>copy-dependencies</goal>
                </goals>
                <configuration>
                  <outputDirectory>${env.CTCH_JAVA_DIR}</outputDirectory>
                  <overWriteReleases>true</overWriteReleases>
                  <overWriteSnapshots>true</overWriteSnapshots>
                  <overWriteIfNewer>true</overWriteIfNewer>
                  <stripVersion>true</stripVersion>

<*useSubDirectoryPerArtifact<http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#useSubDirectoryPerArtifact>
>true</**useSubDirectoryPerArtifact<http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#useSubDirectoryPerArtifact>
>*
                </configuration>
              </execution>
            </executions>
          </plugin>

and in the jar plugin (this is in the parent POM)

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <archive>
            <manifest>
              <classpathPrefix>${env.CTCH_JAVA_DIR}</classpathPrefix>
            </manifest>
          </archive>
        </configuration>
      </plugin>




here' the manifest.mf:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: eyale
Build-Jdk: 1.6.0_16
Main-Class: com.commtouch.url.unknowns.IncreasePriority
Class-Path: /usr/lib/ctch/java/mail-1.4.1.jar /usr/lib/ctch/java/activ
 ation-1.1.jar /usr/lib/ctch/java/DbUtil-0.0.10.jar /usr/lib/ctch/java
 /sqljdbc-2.0.jar /usr/lib/ctch/java/log4j-1.2.14.jar

-- 
Eyal Edri

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message