Skip to content
Permalink
Browse files

[JENKINS-24064] Replace war-for-test classifier with executable-war t…

…ype.
  • Loading branch information...
jglick committed May 24, 2017
1 parent c50d496 commit ef917a8008f2c617f6633712824300aab1ab4774
@@ -724,7 +724,7 @@ protected Artifact getJenkinsWarArtifact() throws MojoExecutionException {
if (jenkinsWarId!=null)
match = (a.getGroupId()+':'+a.getArtifactId()).equals(jenkinsWarId);
else
match = (a.getArtifactId().equals("jenkins-war") || a.getArtifactId().equals("hudson-war")) && a.getType().equals("war");
match = (a.getArtifactId().equals("jenkins-war") || a.getArtifactId().equals("hudson-war")) && a.getType().equals("executable-war");
if(match)
return a;
}
@@ -121,5 +121,19 @@
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>

<!-- See JENKINS-24064 for background; used to be war-for-test classifier. -->
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>executable-war</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>executable-war</type>
<extension>war</extension>
<language>java</language>
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>

</components>
</component-set>

0 comments on commit ef917a8

Please sign in to comment.
You can’t perform that action at this time.