What's really wonky is if I change what dependency I'd like to unpack from the bad one to something like one of the apache commons jars, it works fine.
What else would make the dependency-unpack just choose NOT to unpack something?
-----Original Message-----
From: EJ Ciramella [mailto:
[hidden email]]
Sent: Friday, November 06, 2009 2:54 PM
To:
[hidden email]
Subject: RE: maven-dependency-plugin:unpack-dependencies doesn't always work
I literally see it skipping the actual unpack (with no errors or warnings):
BAD:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack-dependencies' -->
[DEBUG] (f) classifier = default
[DEBUG] (s) copyPom = false
[DEBUG] (f) excludeTransitive = false
[DEBUG] (s) failOnMissingClassifierArtifact = true
[DEBUG] (f) includeArtifactIds = <ID>
[DEBUG] (f) includeGroupIds = <GROUP>
[DEBUG] (s) local = [local] -> file://E:/work/m2Repo
[DEBUG] (s) markersDirectory = <MARKERS DIR>
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) outputDirectory = <OUTPUT DIR>
[DEBUG] (f) overWriteIfNewer = true
[DEBUG] (f) overWriteReleases = false
[DEBUG] (f) overWriteSnapshots = true
<SNIP>
[DEBUG] (f) silent = false
[DEBUG] (s) stripVersion = false
[DEBUG] (f) type = zip
[DEBUG] (s) useRepositoryLayout = false
[DEBUG] (s) useSubDirectoryPerArtifact = false
[DEBUG] (s) useSubDirectoryPerType = false
[DEBUG] -- end configuration --
[INFO] [dependency:unpack-dependencies {execution: <EXECUTION ID>}]
GOOD:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack-dependencies' -->
[DEBUG] (f) classifier = templates
[DEBUG] (s) copyPom = false
[DEBUG] (f) excludeTransitive = false
[DEBUG] (s) failOnMissingClassifierArtifact = true
[DEBUG] (f) includeArtifactIds = <ID>
[DEBUG] (f) includeGroupIds = <GROUP>
[DEBUG] (s) local = [local] -> file://E:/work/m2Repo
[DEBUG] (s) markersDirectory = <MARKERS DIR>
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) outputDirectory = <OUTPUT DIR>
[DEBUG] (f) overWriteIfNewer = true
[DEBUG] (f) overWriteReleases = false
[DEBUG] (f) overWriteSnapshots = true
<SNIP>
[DEBUG] (f) silent = false
[DEBUG] (s) stripVersion = false
[DEBUG] (f) type = zip
[DEBUG] (s) useRepositoryLayout = false
[DEBUG] (s) useSubDirectoryPerArtifact = false
[DEBUG] (s) useSubDirectoryPerType = false
[DEBUG] -- end configuration --
[INFO] [dependency:unpack-dependencies {execution: <EXECUTION ID>}]
[DEBUG] Translating Artifacts using Classifier: templates and Type: zip
[INFO] Unpacking <PATH TO DEPENDENCY> to
<OUTPUT DIR>
with includes null and excludes:null
Why is the first one not doing anything?!
-----Original Message-----
From: EJ Ciramella [mailto:
[hidden email]]
Sent: Thursday, November 05, 2009 9:43 PM
To:
[hidden email]
Subject: maven-dependency-plugin:unpack-dependencies doesn't always work
I'm having a bit of difficulty with unpacking some dependencies - and I'm not entirely sure why this process is failing.
In _some_ projects, we define the dependency we'd like to unpack within the plugin configuration - like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<dependencies>
<dependency>
<groupId> </groupId>
<artifactId> </artifactId>
<version></version>
<classifier>templates</classifier>
<scope>provided</scope>
<type>zip</type>
</dependency>
</dependencies>
<executions>
<execution>
<id>unpack- templates</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<includeGroupIds> </includeGroupIds>
<includeArtifactIds> </includeArtifactIds>
<classifier>templates</classifier>
<type>zip</type>
<outputDirectory>target/foo</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
In another project, if I copy and paste this block in, it not only doesn't unpack, but doesn't fail. With -X -e, the debug output shows it saying "hey, I'm unpacking now" but there's nothing there.
Any suggestions?
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]