I think it had something to do with my recent plugin snapshot issues.
I wiped out my local repo.  Turned off plugin snapshots on my
settings.xml, and rebuilt -- and now it is working.  Very nice tip,
btw!

On Thu, Apr 23, 2009 at 11:08 PM, Brian Fox <[email protected]> wrote:
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to