I don't see anything obvious. Can you attach some build logs? The dep
plugin is pretty verbose about what it's doing so it should hopefully be
obvious.
On 4/23/2009 10:54 PM, Davis Ford wrote:
Hi Brian -- I'm trying to emulate your blog:
http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/
for sharing resources across a multi-module project. It is a grand
trick, but one that doesn't seem to be working for me.
I have the config project setup just fine. It generates a .zip
archive. I have done mvn install on it.
So, another project depends on it:
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>elibrary-config</artifactId>
<version>${project.version}</version>
<classifier>resources</classifier>
<type>zip</type>
<scope>provided</scope>
</dependency>
And I have set this up:
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-config</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
<includeGroupIds>${project.groupId}</includeGroupIds>
<includeArtifacIds>elibrary-config</includeArtifacIds>
<includeTypes>zip</includeTypes>
</configuration>
</execution>
</executions>
</plugin>
If I run mvn package or mvn process-resources or mvn
process-test-resources, it never creates the<outputDirectory> and
copies the files inside that zip there. What am I missing?
Regards,
Davis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org