geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r696509 - /geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
Date Wed, 17 Sep 2008 23:16:33 GMT
Author: djencks
Date: Wed Sep 17 16:16:33 2008
New Revision: 696509

URL: http://svn.apache.org/viewvc?rev=696509&view=rev
Log:
more info on a common error

Modified:
    geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java

Modified: geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java?rev=696509&r1=696508&r2=696509&view=diff
==============================================================================
--- geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
(original)
+++ geronimo/server/trunk/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
Wed Sep 17 16:16:33 2008
@@ -187,6 +187,9 @@
             // If module is set, then resolve the artifact and set moduleFile
             if (module != null) {
                 Artifact artifact = resolveArtifact(module.getGroupId(), module.getArtifactId(),
module.getType());
+                if (artifact == null) {
+                    throw new MojoExecutionException("Could not resolve module " + module.getGroupId()
+ ":" + module.getArtifactId() + ":" + module.getType() + ". Perhaps it is not listed as a
dependency");
+                }
                 moduleFile = artifact.getFile();
                 getLog().debug("Using module file: " + moduleFile);
             }



Mime
View raw message