[ http://jira.codehaus.org/browse/MEAR-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250424#action_250424 ]
Frank Griffin commented on MEAR-136: ------------------------------------ Ah, much nicer, thanks. > <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: > {noformat} > [...@ftgme2 application]$ pwd > /home/ftg/PSS/PSSEJBEARProject/src/main/application > [...@ftgme2 application]$ ls > derby-ds.xml > ... > [...@ftgme2 application]$ pwd > /home/ftg/dvd/dvd-ear/src/main/application > [...@ftgme2 application]$ ls > derby-ds.x > {noformat} > "dvd-ear" inherits from "PSSEJBEARProject". PSSEJBEARProject contains: > {code:xml} > <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> > {code} > dvd-ear contains: > {code:xml} > <!-- > 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> > {code} > 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