|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the jbos... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Anders Hammar (JIRA)
- [mojo-dev] [jira] (MJBOSSPACK-53) Can't use the... Romain PELISSE (JIRA)

I've update the error message and push my changes on github, but for simplicity sake, here is the patch:
diff --git a/src/main/java/org/codehaus/mojo/jboss/packaging/ESBMojo.java b/src/main/java/org/codehaus/mojo/jboss/packaging/ESBMojo.jav index 1799719..2d4654a 100644 --- a/src/main/java/org/codehaus/mojo/jboss/packaging/ESBMojo.java +++ b/src/main/java/org/codehaus/mojo/jboss/packaging/ESBMojo.java @@ -94,6 +94,19 @@ public class ESBMojo } } + public void buildExplodedPackaging( Set excludes ) throws MojoExecutionException { + // Skip packaging if the project is NOT of type 'jboss-esb' + final String packaging = getProject().getPackaging(); + if ( ! packaging.equals(ARTIFACT_TYPE) ) { + getLog().warn(getProject().getArtifactId() + " packaging is" + packaging + ", and not " + + ARTIFACT_TYPE + " file, skipping assembly - this may be a misconfiguration, common" + + "configuration should be in the <pluginManagement/> section."); + return; + } + super.buildExplodedPackaging(excludes); + } + + /** * @return deployment descriptor file name, sans path */