You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by JW...@lis.state.oh.us on 2005/06/21 16:39:18 UTC
EJB src directory structure
Hello all,
For Maven 2, do the EJB jar descriptors need to be placed in a different
directory than src/ejb/META-INF?
Here's my error:
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error assembling EJB
at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:129)
...
Caused by: org.codehaus.plexus.archiver.ArchiverException:
c:\java\eclipse\workspace\lis-directory-manager\target\classes\META-INF\ejb-
jar.xml isn't a file.
at
org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:
143)
at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:104)
... 14 more
Now, of course, I don't have anything in the target directory, because I
assume that's where the build is supposed to copy the ejb-jar.xml file to...
Any wisdom from the experienced (i.e. - been using M2 for a month) users out
there? :-)
Joel
Re: EJB src directory structure
Posted by Nathaniel Stoddard <na...@gmail.com>.
I never used Maven 1, or whatever versions they are ... but for Maven
2, I have my ejb-jar.xml file in /src/main/resources/META-INF and it
works just fine.
On 6/21/05, JWiegman@lis.state.oh.us <JW...@lis.state.oh.us> wrote:
> Hello all,
>
>
>
> For Maven 2, do the EJB jar descriptors need to be placed in a different
> directory than src/ejb/META-INF?
>
>
>
> Here's my error:
>
>
>
> [ERROR] Cause:
>
> org.apache.maven.plugin.MojoExecutionException: Error assembling EJB
>
> at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:129)
>
> ...
>
> Caused by: org.codehaus.plexus.archiver.ArchiverException:
> c:\java\eclipse\workspace\lis-directory-manager\target\classes\META-INF\ejb-
> jar.xml isn't a file.
>
> at
> org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:
> 143)
>
> at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:104)
>
> ... 14 more
>
>
>
> Now, of course, I don't have anything in the target directory, because I
> assume that's where the build is supposed to copy the ejb-jar.xml file to...
>
>
>
> Any wisdom from the experienced (i.e. - been using M2 for a month) users out
> there? :-)
>
>
>
> Joel
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org