You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Douglas Lee (JIRA)" <ji...@codehaus.org> on 2008/07/01 22:40:27 UTC

[jira] Commented: (MEAR-48) Remove resourceDir deprecated feature

    [ http://jira.codehaus.org/browse/MEAR-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140121#action_140121 ] 

Douglas Lee commented on MEAR-48:
---------------------------------

Barrie,  not sure if the apache documentation helped you.  It didn't completely help me.  I still had to google and play around a bit.   I was thinking initially that I needed the resourceDir and couldn't understand why it was being deprecated.  But the earSourceDirectory and earSourceIncludes worked for me.  My need was to be able to integrate the use of maven while still using myeclipseide for J2EE ear projects.  Here is the build section from my ear pom.xml.

<build>
  <plugins>
    <plugin>
      <artifactId>maven-ear-plugin</artifactId>
      <configuration>
        <earSourceDirectory>${basedir}</earSourceDirectory>
        <earSourceIncludes>configuration/**,META-INF/**</earSourceIncludes>
        <archive>
          <manifest>
            <addClasspath>true</addClasspath>
          </manifest>
        </archive>
        <generateApplicationXml>false</generateApplicationXml>
        <applicationXML>${basedir}/META-INF/application.xml</applicationXML>
        <modules>
          <webModule>
            <groupId>one.two.three</groupId>
            <artifactId>onetwothree-web</artifactId>
            <contextRoot>/onetwothree</contextRoot>
          </webModule>
        </modules>
        <jboss>
          <version>4</version>
          <unauthenticated-principal>guest</unauthenticated-principal>
          <security-domain>java:/jaas/onetwothree</security-domain>
          <loader-repository>lmlogisticsservices.com:loader=scp-app.ear 
        </jboss>
      </configuration>
    </plugin>
  </plugins>
</build>


The parts that I messed around with were
        <earSourceDirectory>${basedir}</earSourceDirectory>
        <earSourceIncludes>configuration/**,META-INF/**</earSourceIncludes>

Because I let MyEclipse manage the META-INF/application.xml and I keep property files in a configuration directory.  When I did this my mvn package result was this

onetwothree-app-1.0.1-SNAPSHOT/configuration
onetwothree-app-1.0.1-SNAPSHOT/configuration/propfileone.properties
onetwothree-app-1.0.1-SNAPSHOT/configuration/propfiletwo.properties
onetwothree-app-1.0.1-SNAPSHOT/configuration/propfilethree.properties
onetwothree-app-1.0.1-SNAPSHOT/META-INF/application.xml
onetwothree-app-1.0.1-SNAPSHOT/META-INF/jboss-app.xml
onetwothree-app-1.0.1-SNAPSHOT/META-INF/MANIFEST.MF
onetwothree-app-1.0.1-SNAPSHOT/onetwothree-web-1.0.1-SNAPSHOT.war


Thus ends my trail of frustration.

> Remove resourceDir deprecated feature
> -------------------------------------
>
>                 Key: MEAR-48
>                 URL: http://jira.codehaus.org/browse/MEAR-48
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Task
>    Affects Versions: 2.3
>            Reporter: Stephane Nicoll
>            Assignee: Stephane Nicoll
>            Priority: Minor
>             Fix For: 2.3.2
>
>
> resourceDir is deprecated for a while now so it should be removed.

-- 
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