[ 
http://jira.codehaus.org/browse/MEJB-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165468#action_165468
 ] 

Dennis Lundberg commented on MEJB-28:
-------------------------------------

I had a look at this and I get the following error message:
{noformat}
Error assembling EJB: META-INF/ejb-jar.xml is required for ejbVersion 2.x
{noformat}

Here's the configuration snippet I used:
{code:xml}
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ejb-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <outputDirectory>${project.build.directory}/jar</outputDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>
{code}

The reason for the error is that the EJB Plugin searches for resources (in this 
case the exb-jar.xml) in <outputDirectory>. But the file is not there. It is in 
the outputDirectory specified for the Resources Plugin. This needs to be 
rewritten in order to fix this issue.

> outputDirectory is not created before packaging
> -----------------------------------------------
>
>                 Key: MEJB-28
>                 URL: http://jira.codehaus.org/browse/MEJB-28
>             Project: Maven 2.x Ejb Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Ron Piterman
>            Priority: Minor
>
> When using the jar plugin, outputDirectory is being cerated prior to creating 
> the jar.
> The ejb plugin however fails if specifying an outputDirectory which does not 
> exist -
> So, specifying something like ${project.build.directory}/jar will always fail 
> after a clean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to