You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2015/12/12 20:52:46 UTC
[jira] [Commented] (MEJB-82) Ability to add additional files to the
META-INF directory
[ https://issues.apache.org/jira/browse/MEJB-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054592#comment-15054592 ]
Karl Heinz Marbaise commented on MEJB-82:
-----------------------------------------
So you can use the following layout to achieve what you like:
{code}
src/
└── main
├── conf
│ ├── first
│ │ └── META-INF
│ │ └── ejb-jar.xml
│ ├── second
│ │ └── META-INF
│ │ └── ejb-jar.xml
│ └── third
│ └── META-INF
│ └── ejb-jar.xml
└── resources
└── META-INF
└── ejb-jar.xml
{code}
using the following pom file:
{code:xml}
<plugins>
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>first</id>
<goals>
<goal>ejb</goal>
</goals>
<configuration>
<sourceDirectory>src/main/conf/first</sourceDirectory>
<classifier>first</classifier>
</configuration>
</execution>
<execution>
<id>second</id>
<goals>
<goal>ejb</goal>
</goals>
<configuration>
<sourceDirectory>src/main/conf/second</sourceDirectory>
<classifier>second</classifier>
</configuration>
</execution>
<execution>
<id>third</id>
<goals>
<goal>ejb</goal>
</goals>
<configuration>
<sourceDirectory>src/main/conf/third</sourceDirectory>
<classifier>third</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
{code}
> Ability to add additional files to the META-INF directory
> ---------------------------------------------------------
>
> Key: MEJB-82
> URL: https://issues.apache.org/jira/browse/MEJB-82
> Project: Maven EJB Plugin
> Issue Type: Improvement
> Affects Versions: 2.5
> Reporter: Alexandre Alvarez
> Assignee: Karl Heinz Marbaise
>
> Currently it is possible to specify the ejb-jar.xml to use via the ejbJar property. However, some containers require additional configuration files (i.e. weblogic-ejb-jar.xml), so it would be helpful to be able to specify a META-INF folder (with filters) to package.
> <metaInf>
> <include>projA/META-INF/ejb-jar.xml</include>
> <include>projA/META-INF/weblogic-ejb-jar.xml</include>
> </metaInf>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)