I have an ejb module:

           <dependency>
               <groupId>org.delta.esp-dap.utilities.services</groupId>
               <artifactId>logging-mdb</artifactId>
               <version>1.0.0.0</version>
               <type>ejb</type>
           </dependency>


That I am trying to include into an ear:

           <plugin>
               <artifactId>maven-ear-plugin</artifactId>
               <configuration>
                   <version>1.4</version>
                   <archive>
                       <manifest>
                           <addClasspath>true</addClasspath>
                       </manifest>
                   </archive>
                   <modules>
                       <ejbModule>
                           <groupId>org.delta.esp-dap.utilities.services
</groupId>
                           <artifactId>logging-mdb</artifactId>
                           <uri></uri>

                       </ejbModule>
                   </modules>
               </configuration>
           </plugin>


And I keep getting this:


[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Artifact[ejb:org.delta.esp-dap.utilities.services:logging-mdb] is not
a dependency of the project.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Artifact[ejb:
org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the
project.
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:560)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: Artifact[ejb:
org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the
project

       at org.apache.maven.plugin.ear.AbstractEarModule.resolveArtifact(
AbstractEarModule.java:109)
       at org.apache.maven.plugin.ear.AbstractEarMojo.execute(
AbstractEarMojo.java:171)
       at org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute(
GenerateApplicationXmlMojo.java:96)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:420)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
       ... 16 more

--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Reply via email to