You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Tim Kettler <ti...@udo.edu> on 2005/11/30 10:51:58 UTC

maven-ear-plugin

Hi,

currently the maven-ear-plugin doesn't support ejb3 modules because it 
expects artifacts of type *.ejb. For my local use I created a new 
Ejb3Module class with the only difference to EjbModule.java that the 
getType() method returns "ejb3".

If that solution is ok for you I will create a patch and submit it to jira.

-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-ear-plugin

Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi Tim,

Is it for m1 or m2 ?

arnaud

On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>
> Hi,
>
> currently the maven-ear-plugin doesn't support ejb3 modules because it
> expects artifacts of type *.ejb. For my local use I created a new
> Ejb3Module class with the only difference to EjbModule.java that the
> getType() method returns "ejb3".
>
> If that solution is ok for you I will create a patch and submit it to
> jira.
>
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
Tim,

I looked a bit further and I think I was wrong. Please file a Jira issue
with your pom (not corrupted this time :-) and the stacktrace you have. I'll
have a look.

Thanks,
Stéphane

On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>
> Hi,
>
> currently the maven-ear-plugin doesn't support ejb3 modules because it
> expects artifacts of type *.ejb. For my local use I created a new
> Ejb3Module class with the only difference to EjbModule.java that the
> getType() method returns "ejb3".
>
> If that solution is ok for you I will create a patch and submit it to
> jira.
>
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
On 12/1/05, Stephane Nicoll <st...@gmail.com> wrote:
>
> On 12/1/05, Tim Kettler <ti...@udo.edu> wrote:
> >
> >
> > In my opinion (I'm certainly not an maven source code expert) this is
> > bcause the type 'ejb' is hardcoded in the class EjbModule.java
> > (getType() method).
>
>
> We already discussed about this, it has *nothing* to do with your problem.
> This element is used only to output the elemnet in the application.xml,
> nothing more, nothing less.
>

That said, it might be a problem in the future if anyone relies on this
information. I will have a look to it.

Thanks,
Stéphane

--
> .::You're welcome ::.




--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
On 12/1/05, Tim Kettler <ti...@udo.edu> wrote:
>
> Please see the example project at
> http://h6282.serverkompetenz.net/tik/test-prj.tar.gz
> which fails like this:


Your zip is corrupted, I can't open it


tik@sylvester:~/Develop/test-prj$ mvn -e package
> + Error stacktraces are turned on.




----------------------------------------------------------------------------
> [INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
> [INFO]
>
> ----------------------------------------------------------------------------



It means that your are trying to configure an artifact (in the
configuration/module section) which is not a dependency of your project.
Please do not include this if you don't want to customize the behavior of
the EAR plugin. Please also check that your dependency is flagged with the
right type!.


> In my opinion (I'm certainly not an maven source code expert) this is
> bcause the type 'ejb' is hardcoded in the class EjbModule.java
> (getType() method).


We already discussed about this, it has *nothing* to do with your problem.
This element is used only to output the elemnet in the application.xml,
nothing more, nothing less.

s/


--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by Tim Kettler <ti...@udo.edu>.
Please see the example project at 
http://h6282.serverkompetenz.net/tik/test-prj.tar.gz
which fails like this:

tik@sylvester:~/Develop/test-prj$ mvn -e package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - test:test-project:pom:1.0-SNAPSHOT
[INFO]   Unnamed - test:test-ejb:ejb3:1.0-SNAPSHOT
[INFO]   Unnamed - test:test-ear:ear:1.0-SNAPSHOT
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test-project:pom:1.0-SNAPSHOT
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test-ejb:ejb3:1.0-SNAPSHOT
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to 
/home/tik/Develop/test-prj/test-ejb/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [ejb3:ejb3]
[INFO] Building jar: 
/home/tik/Develop/test-prj/test-ejb/target/test-ejb-1.0-SNAPSHOT.ejb3
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] [ear:generate-application-xml]
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
----------------------------------------------------------------------------
[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
[INFO] 
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Artifact[test:test-ejb:ejb] is 
not a dependency of the project.
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:540)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
         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[test:test-ejb:ejb] is not a dependency of the project.
         at 
org.apache.maven.plugin.ear.AbstractEarModule.resolveArtifact(AbstractEarModule.java:98)
         at 
org.apache.maven.plugin.ear.AbstractEarMojo.execute(AbstractEarMojo.java:98)
         at 
org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute(GenerateApplicationXmlMojo.java:96)
         at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
         ... 16 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Dec 01 09:50:04 CET 2005
[INFO] Final Memory: 4M/7M
[INFO] 
----------------------------------------------------------------------------



In my opinion (I'm certainly not an maven source code expert) this is 
bcause the type 'ejb' is hardcoded in the class EjbModule.java 
(getType() method).

-Tim

Stephane Nicoll schrieb:
> so what? If you are using the maven ear plugin from svn (we are about to
> release 2.1), you just specify your dependency as
> 
> <type>ejb3</type>
> 
> and use <ejbModule> configuration if you need to tune a bit. I am sorry, I
> don't see what your problem is.
> 
> s/
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
so what? If you are using the maven ear plugin from svn (we are about to
release 2.1), you just specify your dependency as

<type>ejb3</type>

and use <ejbModule> configuration if you need to tune a bit. I am sorry, I
don't see what your problem is.

s/

On 12/1/05, Tim Kettler <ti...@tk-ai.de> wrote:
>
> When I delete the plugin configuration from the pom the type detection
> works as expected and the build succeeds. But nevertheless when
> specifying a configuration the type of 'ejb' is hardcoded to
> EjbModule.java.
>
> What is the correct way to fix this? Is the solution proposed in my
> first mail ok. I'm willing to supply a patch for this.
>
> -Tim
>
> Stephane Nicoll schrieb:
> > Indeed.
> >
> > BTW, you don't need to specify the
> >
> >           <modules>
> >             <ejbModule>
> >               <groupId>test</groupId>
> >               <artifactId>test-ejb</artifactId>
> >              </ejbModule>
> >
> > This section is used only if you need to configure the way the module
> needs
> > to be handled by the plugin.
> >
> > Stéphane
> >
> > On 11/30/05, John Casey <jd...@yahoo.com> wrote:
> >
> >>isn't the type already specified in the dependency listed below?
> >>
> >>Stephane Nicoll wrote:
> >>
> >>>You need to provide a type for each dependencies. We have discussed
> this
> >>>many times on the user list.
> >>>
> >>>Cheers,
> >>>Stéphane
> >>>
> >>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> >>>
> >>>
> >>>>Thanks for the quick replies. It's for M2.
> >>>>
> >>>>Ok, I pulled the latest trunks from the following locations:
> >>>>
> >>>>https://svn.apache.org/reos/asf/maven/components/trunk
> >>>>https://svn.apache.org/reos/asf/maven/plugins/trunk
> >>>>https://svn.apache.org/reos/asf/maven/sandbox/plugins
> >>>>
> >>>>I then bootstrapped the maven core (see my separate mail for this) and
> >>>>did an 'mvn install' in the plugins and sandbox directories.
> >>>>
> >>>>
> >>>>When building my project I get the following error:
> >>>>
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
> >>>>[INFO]    task-segment: [package]
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[INFO] [ear:generate-application-xml]
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[ERROR] BUILD FAILURE
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[INFO] For more information, run Maven with the -e switch
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>[INFO] Total time: 4 seconds
> >>>>[INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
> >>>>[INFO] Final Memory: 4M/7M
> >>>>[INFO]
> >>>>
> >>
>
> >>>>----------------------------------------------------------------------------
> >>>>
> >>>>
> >>>>The problem is, that it treats the ejb module as ejb and not ejb3.
> This
> >>>>is the corresponding pom.xml:
> >>>>
> >>>><project xmlns="http://maven.apache.org/POM/4.0.0"
> >>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>>>http://maven.apache.org/maven-v4_0_0.xsd">
> >>>>
> >>>>  <modelVersion>4.0.0</modelVersion>
> >>>>
> >>>>  <parent>
> >>>>    <groupId>test</groupId>
> >>>>    <artifactId>test-project</artifactId>
> >>>>    <version>1.0-SNAPSHOT</version>
> >>>>  </parent>
> >>>>
> >>>>  <groupId>test</groupId>
> >>>>  <artifactId>test-ear</artifactId>
> >>>>  <version>1.0-SNAPSHOT</version>
> >>>>
> >>>>  <packaging>ear</packaging>
> >>>>
> >>>>  <dependencies>
> >>>>
> >>>>    <dependency>
> >>>>      <groupId>test</groupId>
> >>>>      <artifactId>test-ejb</artifactId>
> >>>>      <version>1.0-SNAPSHOT</version>
> >>>>      <type>ejb3</type>
> >>>>    </dependency>
> >>>>
> >>>>  </dependencies>
> >>>>
> >>>>  <build>
> >>>>    <plugins>
> >>>>      <plugin>
> >>>>        <groupId>org.apache.maven.plugins</groupId>
> >>>>        <artifactId>maven-ear-plugin</artifactId>
> >>>>        <configuration>
> >>>>          <modules>
> >>>>            <ejbModule>
> >>>>              <groupId>test</groupId>
> >>>>              <artifactId>test-ejb</artifactId>
> >>>>            </ejbModule>
> >>>>          </modules>
> >>>>        </configuration>
> >>>>      </plugin>
> >>>>    </plugins>
> >>>>  </build>
> >>>></project>
> >>>>
> >>>>
> >>>>Stephane Nicoll schrieb:
> >>>>
> >>>>
> >>>>>If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
> >>>>>
> >>>>>Regards,
> >>>>>Stéphane
> >>>>>
> >>>>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi,
> >>>>>>
> >>>>>>currently the maven-ear-plugin doesn't support ejb3 modules because
> it
> >>>>>>expects artifacts of type *.ejb. For my local use I created a new
> >>>>>>Ejb3Module class with the only difference to EjbModule.java that the
> >>>>>>getType() method returns "ejb3".
> >>>>>>
> >>>>>>If that solution is ok for you I will create a patch and submit it
> to
> >>>>>>jira.
> >>>>>>
> >>>>>>-Tim
> >>>>>>
>
> >>>>>>---------------------------------------------------------------------
> >>>>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>>>>>For additional commands, e-mail: dev-help@maven.apache.org
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>--
> >>>>>.::You're welcome ::.
> >>>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: dev-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>--
> >>>.::You're welcome ::.
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> >
> >
> > --
> > .::You're welcome ::.
> >
>
>
> --
> Freundliche Grüße / Best Regards
>
> Tim Kettler
> _________________________________________
> Lieterweg 24
> 58285 Gevelsberg
> Tel.: +49 2332 149814
> Fax: +49 2332 149814
> e-mail: tim.kettler@tk-ai.de
> Internet :  http://www.tk-ai.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by Tim Kettler <ti...@tk-ai.de>.
When I delete the plugin configuration from the pom the type detection 
works as expected and the build succeeds. But nevertheless when 
specifying a configuration the type of 'ejb' is hardcoded to EjbModule.java.

What is the correct way to fix this? Is the solution proposed in my 
first mail ok. I'm willing to supply a patch for this.

-Tim

Stephane Nicoll schrieb:
> Indeed.
> 
> BTW, you don't need to specify the
> 
>           <modules>
>             <ejbModule>
>               <groupId>test</groupId>
>               <artifactId>test-ejb</artifactId>
>              </ejbModule>
> 
> This section is used only if you need to configure the way the module needs
> to be handled by the plugin.
> 
> Stéphane
> 
> On 11/30/05, John Casey <jd...@yahoo.com> wrote:
> 
>>isn't the type already specified in the dependency listed below?
>>
>>Stephane Nicoll wrote:
>>
>>>You need to provide a type for each dependencies. We have discussed this
>>>many times on the user list.
>>>
>>>Cheers,
>>>Stéphane
>>>
>>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>>>
>>>
>>>>Thanks for the quick replies. It's for M2.
>>>>
>>>>Ok, I pulled the latest trunks from the following locations:
>>>>
>>>>https://svn.apache.org/reos/asf/maven/components/trunk
>>>>https://svn.apache.org/reos/asf/maven/plugins/trunk
>>>>https://svn.apache.org/reos/asf/maven/sandbox/plugins
>>>>
>>>>I then bootstrapped the maven core (see my separate mail for this) and
>>>>did an 'mvn install' in the plugins and sandbox directories.
>>>>
>>>>
>>>>When building my project I get the following error:
>>>>
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
>>>>[INFO]    task-segment: [package]
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[INFO] [ear:generate-application-xml]
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[ERROR] BUILD FAILURE
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[INFO] For more information, run Maven with the -e switch
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>[INFO] Total time: 4 seconds
>>>>[INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
>>>>[INFO] Final Memory: 4M/7M
>>>>[INFO]
>>>>
>>
>>>>----------------------------------------------------------------------------
>>>>
>>>>
>>>>The problem is, that it treats the ejb module as ejb and not ejb3. This
>>>>is the corresponding pom.xml:
>>>>
>>>><project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>http://maven.apache.org/maven-v4_0_0.xsd">
>>>>
>>>>  <modelVersion>4.0.0</modelVersion>
>>>>
>>>>  <parent>
>>>>    <groupId>test</groupId>
>>>>    <artifactId>test-project</artifactId>
>>>>    <version>1.0-SNAPSHOT</version>
>>>>  </parent>
>>>>
>>>>  <groupId>test</groupId>
>>>>  <artifactId>test-ear</artifactId>
>>>>  <version>1.0-SNAPSHOT</version>
>>>>
>>>>  <packaging>ear</packaging>
>>>>
>>>>  <dependencies>
>>>>
>>>>    <dependency>
>>>>      <groupId>test</groupId>
>>>>      <artifactId>test-ejb</artifactId>
>>>>      <version>1.0-SNAPSHOT</version>
>>>>      <type>ejb3</type>
>>>>    </dependency>
>>>>
>>>>  </dependencies>
>>>>
>>>>  <build>
>>>>    <plugins>
>>>>      <plugin>
>>>>        <groupId>org.apache.maven.plugins</groupId>
>>>>        <artifactId>maven-ear-plugin</artifactId>
>>>>        <configuration>
>>>>          <modules>
>>>>            <ejbModule>
>>>>              <groupId>test</groupId>
>>>>              <artifactId>test-ejb</artifactId>
>>>>            </ejbModule>
>>>>          </modules>
>>>>        </configuration>
>>>>      </plugin>
>>>>    </plugins>
>>>>  </build>
>>>></project>
>>>>
>>>>
>>>>Stephane Nicoll schrieb:
>>>>
>>>>
>>>>>If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
>>>>>
>>>>>Regards,
>>>>>Stéphane
>>>>>
>>>>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>currently the maven-ear-plugin doesn't support ejb3 modules because it
>>>>>>expects artifacts of type *.ejb. For my local use I created a new
>>>>>>Ejb3Module class with the only difference to EjbModule.java that the
>>>>>>getType() method returns "ejb3".
>>>>>>
>>>>>>If that solution is ok for you I will create a patch and submit it to
>>>>>>jira.
>>>>>>
>>>>>>-Tim
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>>>For additional commands, e-mail: dev-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>.::You're welcome ::.
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>.::You're welcome ::.
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
> 
> 
> 
> --
> .::You're welcome ::.
> 


-- 
Freundliche Grüße / Best Regards

Tim Kettler
_________________________________________
Lieterweg 24
58285 Gevelsberg
Tel.: +49 2332 149814
Fax: +49 2332 149814
e-mail: tim.kettler@tk-ai.de
Internet :  http://www.tk-ai.de


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
Indeed.

BTW, you don't need to specify the

          <modules>
            <ejbModule>
              <groupId>test</groupId>
              <artifactId>test-ejb</artifactId>
             </ejbModule>

This section is used only if you need to configure the way the module needs
to be handled by the plugin.

Stéphane

On 11/30/05, John Casey <jd...@yahoo.com> wrote:
>
> isn't the type already specified in the dependency listed below?
>
> Stephane Nicoll wrote:
> > You need to provide a type for each dependencies. We have discussed this
> > many times on the user list.
> >
> > Cheers,
> > Stéphane
> >
> > On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> >
> >>Thanks for the quick replies. It's for M2.
> >>
> >>Ok, I pulled the latest trunks from the following locations:
> >>
> >>https://svn.apache.org/reos/asf/maven/components/trunk
> >>https://svn.apache.org/reos/asf/maven/plugins/trunk
> >>https://svn.apache.org/reos/asf/maven/sandbox/plugins
> >>
> >>I then bootstrapped the maven core (see my separate mail for this) and
> >>did an 'mvn install' in the plugins and sandbox directories.
> >>
> >>
> >>When building my project I get the following error:
> >>
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
> >>[INFO]    task-segment: [package]
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[INFO] [ear:generate-application-xml]
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[ERROR] BUILD FAILURE
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[INFO] For more information, run Maven with the -e switch
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>[INFO] Total time: 4 seconds
> >>[INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
> >>[INFO] Final Memory: 4M/7M
> >>[INFO]
> >>
>
> >>----------------------------------------------------------------------------
> >>
> >>
> >>The problem is, that it treats the ejb module as ejb and not ejb3. This
> >>is the corresponding pom.xml:
> >>
> >><project xmlns="http://maven.apache.org/POM/4.0.0"
> >>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >>http://maven.apache.org/maven-v4_0_0.xsd">
> >>
> >>   <modelVersion>4.0.0</modelVersion>
> >>
> >>   <parent>
> >>     <groupId>test</groupId>
> >>     <artifactId>test-project</artifactId>
> >>     <version>1.0-SNAPSHOT</version>
> >>   </parent>
> >>
> >>   <groupId>test</groupId>
> >>   <artifactId>test-ear</artifactId>
> >>   <version>1.0-SNAPSHOT</version>
> >>
> >>   <packaging>ear</packaging>
> >>
> >>   <dependencies>
> >>
> >>     <dependency>
> >>       <groupId>test</groupId>
> >>       <artifactId>test-ejb</artifactId>
> >>       <version>1.0-SNAPSHOT</version>
> >>       <type>ejb3</type>
> >>     </dependency>
> >>
> >>   </dependencies>
> >>
> >>   <build>
> >>     <plugins>
> >>       <plugin>
> >>         <groupId>org.apache.maven.plugins</groupId>
> >>         <artifactId>maven-ear-plugin</artifactId>
> >>         <configuration>
> >>           <modules>
> >>             <ejbModule>
> >>               <groupId>test</groupId>
> >>               <artifactId>test-ejb</artifactId>
> >>             </ejbModule>
> >>           </modules>
> >>         </configuration>
> >>       </plugin>
> >>     </plugins>
> >>   </build>
> >></project>
> >>
> >>
> >>Stephane Nicoll schrieb:
> >>
> >>>If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
> >>>
> >>>Regards,
> >>>Stéphane
> >>>
> >>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>currently the maven-ear-plugin doesn't support ejb3 modules because it
> >>>>expects artifacts of type *.ejb. For my local use I created a new
> >>>>Ejb3Module class with the only difference to EjbModule.java that the
> >>>>getType() method returns "ejb3".
> >>>>
> >>>>If that solution is ok for you I will create a patch and submit it to
> >>>>jira.
> >>>>
> >>>>-Tim
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: dev-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>--
> >>>.::You're welcome ::.
> >>>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> >
> >
> > --
> > .::You're welcome ::.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by John Casey <jd...@yahoo.com>.
isn't the type already specified in the dependency listed below?

Stephane Nicoll wrote:
> You need to provide a type for each dependencies. We have discussed this
> many times on the user list.
> 
> Cheers,
> Stéphane
> 
> On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> 
>>Thanks for the quick replies. It's for M2.
>>
>>Ok, I pulled the latest trunks from the following locations:
>>
>>https://svn.apache.org/reos/asf/maven/components/trunk
>>https://svn.apache.org/reos/asf/maven/plugins/trunk
>>https://svn.apache.org/reos/asf/maven/sandbox/plugins
>>
>>I then bootstrapped the maven core (see my separate mail for this) and
>>did an 'mvn install' in the plugins and sandbox directories.
>>
>>
>>When building my project I get the following error:
>>
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
>>[INFO]    task-segment: [package]
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[INFO] [ear:generate-application-xml]
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[ERROR] BUILD FAILURE
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[INFO] For more information, run Maven with the -e switch
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>[INFO] Total time: 4 seconds
>>[INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
>>[INFO] Final Memory: 4M/7M
>>[INFO]
>>
>>----------------------------------------------------------------------------
>>
>>
>>The problem is, that it treats the ejb module as ejb and not ejb3. This
>>is the corresponding pom.xml:
>>
>><project xmlns="http://maven.apache.org/POM/4.0.0"
>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>http://maven.apache.org/maven-v4_0_0.xsd">
>>
>>   <modelVersion>4.0.0</modelVersion>
>>
>>   <parent>
>>     <groupId>test</groupId>
>>     <artifactId>test-project</artifactId>
>>     <version>1.0-SNAPSHOT</version>
>>   </parent>
>>
>>   <groupId>test</groupId>
>>   <artifactId>test-ear</artifactId>
>>   <version>1.0-SNAPSHOT</version>
>>
>>   <packaging>ear</packaging>
>>
>>   <dependencies>
>>
>>     <dependency>
>>       <groupId>test</groupId>
>>       <artifactId>test-ejb</artifactId>
>>       <version>1.0-SNAPSHOT</version>
>>       <type>ejb3</type>
>>     </dependency>
>>
>>   </dependencies>
>>
>>   <build>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.apache.maven.plugins</groupId>
>>         <artifactId>maven-ear-plugin</artifactId>
>>         <configuration>
>>           <modules>
>>             <ejbModule>
>>               <groupId>test</groupId>
>>               <artifactId>test-ejb</artifactId>
>>             </ejbModule>
>>           </modules>
>>         </configuration>
>>       </plugin>
>>     </plugins>
>>   </build>
>></project>
>>
>>
>>Stephane Nicoll schrieb:
>>
>>>If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
>>>
>>>Regards,
>>>Stéphane
>>>
>>>On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>currently the maven-ear-plugin doesn't support ejb3 modules because it
>>>>expects artifacts of type *.ejb. For my local use I created a new
>>>>Ejb3Module class with the only difference to EjbModule.java that the
>>>>getType() method returns "ejb3".
>>>>
>>>>If that solution is ok for you I will create a patch and submit it to
>>>>jira.
>>>>
>>>>-Tim
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>.::You're welcome ::.
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
> 
> 
> 
> --
> .::You're welcome ::.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
You need to provide a type for each dependencies. We have discussed this
many times on the user list.

Cheers,
Stéphane

On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>
> Thanks for the quick replies. It's for M2.
>
> Ok, I pulled the latest trunks from the following locations:
>
> https://svn.apache.org/reos/asf/maven/components/trunk
> https://svn.apache.org/reos/asf/maven/plugins/trunk
> https://svn.apache.org/reos/asf/maven/sandbox/plugins
>
> I then bootstrapped the maven core (see my separate mail for this) and
> did an 'mvn install' in the plugins and sandbox directories.
>
>
> When building my project I get the following error:
>
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
> [INFO]    task-segment: [package]
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] [ear:generate-application-xml]
> [INFO]
>
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
> [INFO] Final Memory: 4M/7M
> [INFO]
>
> ----------------------------------------------------------------------------
>
>
> The problem is, that it treats the ejb module as ejb and not ejb3. This
> is the corresponding pom.xml:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>
>    <modelVersion>4.0.0</modelVersion>
>
>    <parent>
>      <groupId>test</groupId>
>      <artifactId>test-project</artifactId>
>      <version>1.0-SNAPSHOT</version>
>    </parent>
>
>    <groupId>test</groupId>
>    <artifactId>test-ear</artifactId>
>    <version>1.0-SNAPSHOT</version>
>
>    <packaging>ear</packaging>
>
>    <dependencies>
>
>      <dependency>
>        <groupId>test</groupId>
>        <artifactId>test-ejb</artifactId>
>        <version>1.0-SNAPSHOT</version>
>        <type>ejb3</type>
>      </dependency>
>
>    </dependencies>
>
>    <build>
>      <plugins>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-ear-plugin</artifactId>
>          <configuration>
>            <modules>
>              <ejbModule>
>                <groupId>test</groupId>
>                <artifactId>test-ejb</artifactId>
>              </ejbModule>
>            </modules>
>          </configuration>
>        </plugin>
>      </plugins>
>    </build>
> </project>
>
>
> Stephane Nicoll schrieb:
> > If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
> >
> > Regards,
> > Stéphane
> >
> > On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> >
> >>Hi,
> >>
> >>currently the maven-ear-plugin doesn't support ejb3 modules because it
> >>expects artifacts of type *.ejb. For my local use I created a new
> >>Ejb3Module class with the only difference to EjbModule.java that the
> >>getType() method returns "ejb3".
> >>
> >>If that solution is ok for you I will create a patch and submit it to
> >>jira.
> >>
> >>-Tim
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >
> >
> >
> > --
> > .::You're welcome ::.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
.::You're welcome ::.

Re: maven-ear-plugin

Posted by Tim Kettler <ti...@udo.edu>.
Thanks for the quick replies. It's for M2.

Ok, I pulled the latest trunks from the following locations:

https://svn.apache.org/reos/asf/maven/components/trunk
https://svn.apache.org/reos/asf/maven/plugins/trunk
https://svn.apache.org/reos/asf/maven/sandbox/plugins

I then bootstrapped the maven core (see my separate mail for this) and 
did an 'mvn install' in the plugins and sandbox directories.


When building my project I get the following error:

[INFO]
----------------------------------------------------------------------------
[INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT
[INFO]    task-segment: [package]
[INFO]
----------------------------------------------------------------------------
[INFO] [ear:generate-application-xml]
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project.
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Nov 30 13:21:59 CET 2005
[INFO] Final Memory: 4M/7M
[INFO]
----------------------------------------------------------------------------


The problem is, that it treats the ejb module as ejb and not ejb3. This 
is the corresponding pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>

   <parent>
     <groupId>test</groupId>
     <artifactId>test-project</artifactId>
     <version>1.0-SNAPSHOT</version>
   </parent>

   <groupId>test</groupId>
   <artifactId>test-ear</artifactId>
   <version>1.0-SNAPSHOT</version>

   <packaging>ear</packaging>

   <dependencies>

     <dependency>
       <groupId>test</groupId>
       <artifactId>test-ejb</artifactId>
       <version>1.0-SNAPSHOT</version>
       <type>ejb3</type>
     </dependency>

   </dependencies>

   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-ear-plugin</artifactId>
         <configuration>
           <modules>
             <ejbModule>
               <groupId>test</groupId>
               <artifactId>test-ejb</artifactId>
             </ejbModule>
           </modules>
         </configuration>
       </plugin>
     </plugins>
   </build>
</project>


Stephane Nicoll schrieb:
> If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.
> 
> Regards,
> Stéphane
> 
> On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
> 
>>Hi,
>>
>>currently the maven-ear-plugin doesn't support ejb3 modules because it
>>expects artifacts of type *.ejb. For my local use I created a new
>>Ejb3Module class with the only difference to EjbModule.java that the
>>getType() method returns "ejb3".
>>
>>If that solution is ok for you I will create a patch and submit it to
>>jira.
>>
>>-Tim
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
> 
> 
> 
> --
> .::You're welcome ::.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-ear-plugin

Posted by Stephane Nicoll <st...@gmail.com>.
If M2: It's fixed in SVN, you need to rebuild M2 ear plugin.

Regards,
Stéphane

On 11/30/05, Tim Kettler <ti...@udo.edu> wrote:
>
> Hi,
>
> currently the maven-ear-plugin doesn't support ejb3 modules because it
> expects artifacts of type *.ejb. For my local use I created a new
> Ejb3Module class with the only difference to EjbModule.java that the
> getType() method returns "ejb3".
>
> If that solution is ok for you I will create a patch and submit it to
> jira.
>
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
.::You're welcome ::.