Hi Tim,

Thanks a lot for help. This is exactly I need.

I was also getting the same ejb-jar.xml error when I was trying to use 
Ejb plugin. you have already explained that.

So now I am using ejb3 plugin. But when I try to install the par plugin.
It complains. I am getting the following error. I also try changing
pom.xml to point to the available maven-archiver. But It fails too.

/Nidhi

[INFO] Failed to resolve artifact.
required artifacts missing:
  org.apache.maven:maven-archiver:jar:2.1-SNAPSHOT
for the artifact:
  org.apache.maven.plugins:maven-par-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required
artifacts missi
ng:org.apache.maven:maven-archiver:jar:2.1-SNAPSHOT
for the
artifact:org.apache.maven.plugins:maven-par-plugin:maven-plugin:2.1-SNAP
SHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:548)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:472)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)



-----Original Message-----
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 11:53 AM
To: Maven Users List
Subject: Re: ejb3 plugin

Tim Kettler schrieb:
> Hi Nidhi,
> 
> you can checkout the maven-ejb3-plugin vie svn from the maven sandbox
at:
> 
>
http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-ejb3-plugin
> 
> you then probably also want the maven-par-plugin from:
> 
> http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-par-plugin
> 
> Once you have the plugins on your harddrive you can install them to
your 
> local repository by executing 'mvn install' in the project root 
> directories.
> 
> There is an attached zip file (test-prj.zip) at 
> http://jira.codehaus.org/browse/MNG-1723 which contains a very 
> minimalistic test project with an EJB3 project and an EAR project that

> packages the EJB file. You can use that as an starting point for your 
> project.
> 
> However, according to the latest draft of the spec (see section 6.2 of

> ejb-3_0-pfd-spec-persistence.pdf and chapter 19 of 
> ejb-3_0-pfd-spec-ejbcore.pdf)
> Enterprise Beans are packaged in plain Jar files (not .ejb3 and .par).

> So if you use an EJB3 implementation that implements the latest spec 
> (like the one from JBoss) you can use the 'standard' maven-ejb-plugin.

> The only problem with this is that the plugin enforces the presence of

> an 'ejb-jar.xml' file which is not needed with EJB3 if you use 
> annotations. I submitted a patch for the plugin 
> (http://jira.codehaus.org/browse/MEJB-6) to make the 'ejb-jar.xml' 
> optional but i don't know if this will be applyed in the near furure.

...applied in the near future.

Grmmph.

> 
> -Tim
> 
> Nidhi Tuli schrieb:
>> Hi,
>>
>> I just started working on Maven 2 and trying to build my EJB3 project
>> using maven2. Any ideas what plug-in should I use? In one of the
>> articles I am advised to do ejb3 on the jar file which I created. The
>> package for that is suggested to be "maven-ejb3-plugin" with groupId
of
>> goal bindings "org.apache.maven.plugins". But I am not able to find
this
>> plugin?
>>
>> Any suggestions?
>>
>> Thanks
>> Nidhi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to