You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2008/08/03 17:51:27 UTC
[jira] Updated: (MEAR-70) loader-repository node for jboss
configuration
[ http://jira.codehaus.org/browse/MEAR-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll updated MEAR-70:
--------------------------------
Patch Submitted: (was: [Yes])
> loader-repository node for jboss configuration
> ----------------------------------------------
>
> Key: MEAR-70
> URL: http://jira.codehaus.org/browse/MEAR-70
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.3.1
> Reporter: Mark Kettner
>
> I added the patch MEAR-50.patch to the 2.3 version of the maven-ear-plugin. However, after the patch I still couldn't generate a correct jboss-app.xml file when the pom.xml contained the following definition:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.3.1</version>
> <configuration>
> <jboss>
> <version>4</version>
> <loader-repository>
> nl.ictu.spg.bsn:loader=afslagbsn
> <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
> </loader-repository>
> </jboss>
> </configuration>
> </plugin>
> </plugins>
> </build>
> This is because in the file AbstractEarMojo the
> final String loaderRepository = jboss.getChild( JbossConfiguration.LOADER_REPOSITORY ).getValue();
> is null when a subtag is added to the loaderRepository tag.
> This can be solved by changing the definition in the pom.xml file to the following:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.3.1</version>
> <configuration>
> <jboss>
> <version>4</version>
> <loader-repository><![CDATA[
> nl.ictu.spg.bsn:loader=afslagbsn
> <loader-repository-config>java2ParentDelegation=false</loader-repository-config>]]>
> </loader-repository>
> </jboss>
> </configuration>
> </plugin>
> </plugins>
> </build>
> and change the "write" method in the JbossAppXmlWriter class to the following:
> // classloader repository
> if ( jbossConfiguration.getLoaderRepository() != null )
> {
> writer.startElement( JbossConfiguration.LOADER_REPOSITORY );
> writer.writeMarkup( jbossConfiguration.getLoaderRepository() );
> writer.endElement();
> }
--
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