tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1340918 - /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
Date Mon, 21 May 2012 08:12:53 GMT
Author: olamy
Date: Mon May 21 08:12:53 2012
New Revision: 1340918

URL: http://svn.apache.org/viewvc?rev=1340918&view=rev
Log:
[MTOMCAT-154] support exec-war war run dependencies with classifiers
Submitted by Peter Lynch.

Modified:
    tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java

Modified: tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?rev=1340918&r1=1340917&r2=1340918&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
(original)
+++ tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
Mon May 21 08:12:53 2012
@@ -322,9 +322,9 @@ public abstract class AbstractExecWarMoj
                         Dependency dependency = warRunDependency.dependency;
                         // String groupId, String artifactId, String version, String scope,
String type
                         Artifact artifact =
-                            artifactFactory.createArtifact( dependency.getGroupId(), dependency.getArtifactId(),
-                                                            dependency.getVersion(), dependency.getScope(),
-                                                            dependency.getType() );
+                            artifactFactory.createArtifactWithClassifier( dependency.getGroupId(),
dependency.getArtifactId(),
+                                                            dependency.getVersion(), dependency.getType(),
+                                                            dependency.getClassifier() );
 
                         artifactResolver.resolve( artifact, this.remoteRepos, this.local
);
                         File warFile = new File( buildDirectory, artifact.getFile().getName()
);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message