Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-24064] Replace war-for-test classifier with executable-war t…
…ype.
  • Loading branch information
jglick committed May 24, 2017
1 parent c50d496 commit ef917a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java
Expand Up @@ -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;
}
Expand Down
14 changes: 14 additions & 0 deletions src/main/resources/META-INF/plexus/components.xml
Expand Up @@ -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.