summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarUnpackMojo.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarUnpackMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarUnpackMojo.java
index b32b0ba..f94b49f 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarUnpackMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarUnpackMojo.java
@@ -33,7 +33,7 @@ import org.codehaus.plexus.archiver.manager.ArchiverManager;
* @goal nar-unpack
* @phase process-sources
* @requiresProject
- * @requiresDependencyResolution
+ * @requiresDependencyResolution test
* @author Mark Donszelmann
*/
public class NarUnpackMojo
@@ -59,6 +59,14 @@ public class NarUnpackMojo
throws MojoExecutionException, MojoFailureException
{
List narArtifacts = getNarManager().getNarDependencies( "compile" );
+ unpackNars(narArtifacts);
+ List testNarArtifacts = getNarManager().getNarDependencies( "test" );
+ unpackNars(testNarArtifacts);
+ }
+
+ private void unpackNars(List narArtifacts)
+ throws MojoExecutionException, MojoFailureException
+ {
if ( classifiers == null )
{
getNarManager().unpackAttachedNars( narArtifacts, archiverManager, null, getOS(), getLayout(), getUnpackDirectory() );