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

Adam Barry edited comment on MEJB-28 at 11/7/09 2:44 AM:
---------------------------------------------------------

As a workaround I used the following antrun plugin task:
{code:xml}
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <phase>process-classes</phase>
      <configuration>
        <tasks>
          <copydir src="${project.build.outputDirectory}"
                   
dest="${project.build.directory}/${project.build.finalName}-exploded.jar"/>
        </tasks>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin>
{code}


      was (Author: ajbarry):
    As a workaround I used the following antrun plugin task:
{code:xml}
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <phase>process-classes</phase>
      <configuration>
        <tasks>
          <copydir src="${project.build.outputDirectory}"
                   
dest="${project.build.directory}/${project.build.finalName}-exploded.jar"/>
        </tasks>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin>
{code:xml}

  
> 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