You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frank Griffin (JIRA)" <ji...@codehaus.org> on 2011/01/04 19:58:58 UTC

[jira] Commented: (MEAR-136) does not honor directory navigation

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

Frank Griffin commented on MEAR-136:
------------------------------------

Somehow, my XML snippet above got munged.  The ending part of the "ejbSourceIncludes" value is actually "/**,**" (two asterisks in each case).

> <ejbSourceIncludes> does not honor directory navigation
> -------------------------------------------------------
>
>                 Key: MEAR-136
>                 URL: http://jira.codehaus.org/browse/MEAR-136
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4.2
>         Environment: Linux
>            Reporter: Frank Griffin
>            Priority: Minor
>
> Background:
> [ftg@ftgme2 application]$ pwd
> /home/ftg/PSS/PSSEJBEARProject/src/main/application
> [ftg@ftgme2 application]$ ls
> derby-ds.xml
> ...
> [ftg@ftgme2 application]$ pwd
> /home/ftg/dvd/dvd-ear/src/main/application
> [ftg@ftgme2 application]$ ls
> derby-ds.x
> "dvd-ear" inherits from "PSSEJBEARProject".  PSSEJBEARProject contains:
> ****************************************************
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <version>2.4.2</version>
>         <configuration>
>           <!--
>             Generate an application.xml file.
>           -->
>           <generateApplicationXml>true</generateApplicationXml>
>           <!--
>             JARs which should be included in this EAR.  Everyone
>             gets common-java, and ejb-ejb.
>           -->
>           <modules>
>             <jarModule>
>               <groupId>org.profsoftsvcs</groupId>
>               <artifactId>ejb-ejb</artifactId>
>               <includeInApplicationXml>false</includeInApplicationXml>
>             </jarModule>
>             <jarModule>
>               <groupId>org.profsoftsvcs</groupId>
>               <artifactId>common-java</artifactId>
>               <includeInApplicationXml>false</includeInApplicationXml>
>             </jarModule>
>           </modules>
>           <!--
>             We want to keep the JBoss DataSource descriptors in one
>             place, and include them here.  Since the paths below will
>             be interpreted relative to our child's basedir, we must
>             play games with parent directories.
>           -->
>           <earSourceIncludes>../../../../../PSS/PSSEJBEARProject/src/main/application/**,**</earSourceIncludes>
>           <!--
>             The JBoss-specific configuration.  Including this for
>             other application servers won't hurt.
>           -->
>           <jboss>
>             <version>5</version>
>             <!--
>               The DataSources that should be specific to this EAR.
>               These will not be visible to other applications in the
>               container, and prevent any dependency on our EAR's part
>               on global DataSources configured for the entire container.
>             -->
>             <data-sources>
>               <data-source>derby-ds.xml</data-source>
>             </data-sources>
>           </jboss>
>         </configuration>
>       </plugin>
> ****************************************************
> dvd-ear contains:
> ****************************************************
>       <!--
>         Additions and overrides for the generation of the EAR file.
>       -->
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ear-plugin</artifactId>
>         <configuration>
>           <!--
>             Specify our EJB JARFile.
>           -->
>           <modules>
>             <ejbModule>
>               <groupId>org.profsoftsvcs</groupId>
>               <artifactId>dvd-ejb</artifactId>
>             </ejbModule>
>           </modules>
>         </configuration>
>       </plugin>
> ****************************************************
> The problem is that in the resulting EAR file, the root contains derby-ds.x (from the default ejbSourceDirectory - /home/ftg/dvd/dvd-ear/src/main/application) but not derby-ds.xml from /home/ftg/PSS/PSSEJBEARProject/src/main/application.

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