[ http://jira.codehaus.org/browse/MEJB-20?page=all ]
Dennis Lundberg closed MEJB-20. ------------------------------- Resolution: Fixed Fix Version/s: 2.1 This was fixed when maven-archiver was updated to version 2.2. I have tried the configuration that the reporter supplied and it works correctly using the latest SNAPSHOT of the plugin. > Custom manifestEntries broken > ----------------------------- > > Key: MEJB-20 > URL: http://jira.codehaus.org/browse/MEJB-20 > Project: Maven 2.x Ejb Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: Windows XP, JDK 5, maven 2.0.4 > Reporter: Legolas Greenleaf > 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 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