[ 
https://issues.apache.org/jira/browse/MEJB-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17966061#comment-17966061
 ] 

Olivier Lamy commented on MEJB-20:
----------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-ejb-plugin#64|https://github.com/apache/maven-ejb-plugin/issues/64].
 

> Custom manifestEntries broken
> -----------------------------
>
>                 Key: MEJB-20
>                 URL: https://issues.apache.org/jira/browse/MEJB-20
>             Project: Maven EJB Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows XP, JDK 5, maven 2.0.4
>            Reporter: Legolas Greenleaf
>            Priority: Major
>             Fix For: 2.1
>
>
> I need to add custom entries to the manifest of my EJB jar.
> I have added the following to the pom:
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ejb-plugin</artifactId>
>         <configuration>
>           <archive>
>             <manifestEntries>
>               <MY-CUSTOM-ENTRY>Custom manifest entry</MY-CUSTOM-ENTRY>
>             </manifestEntries>
>           </archive>
>           <generateClient>true</generateClient>
>           <clientExcludes>
>              <clientExclude>META-INF/ejb-jar.xml</clientExclude>
>           </clientExcludes>
>           <ejbVersion>2.1</ejbVersion>
>         </configuration>
>       </plugin>
> maven reports the following error:
> There was a problem creating the EJB archive: The attribute "MY-CUSTOM-ENTRY" 
> may not occur more than once in the same section
> But the attribute is added only once.
> This does work when setting the version attribute of the ejb plugin to 2.0, 
> but then my client jar contains the ejb-jar.xml.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to