Hi,

I've been trying to switch an existing build process from ant to maven to become more familiar with maven. The project's final artifact is an EAR that includes several other archives, which is why I went for a multi-module setup where each archive is inside its own module.

Basically everything works fine, except for one module that gives me headaches. One contained archive is a JBoss Hibernate archive (.har) (basically a .jar with additional Hibernate resource files, which JBoss deploys without further configuration). I'm using the jboss-packaging-maven-plugin from org.codehaus.mojo to create the .har and add the module as a dependency to all other modules that rely on the contained classes.

The problem I had was that maven would change the filename extension during install. The maintainer of the jboss-packaging-maven-plugin kindly put me on track and provided me with updated patches to http://jira.codehaus.org/browse/MOJO-449 . However, I fear that I'm also suffering from http://jira.codehaus.org/browse/MNG-1682 . MNG-1682 basically states that custom artifact handlers don't work with multi-module setups.

Can somebody give me some hints for a work-around? I have tried to take the .har module out of its parent pom and install it as a standalone module. Unfortunately it doesn't get added to the classpath and makes compilation of the modules that depend on it fail.

Another idea I have considered is to build the .har as a .jar. Building the problem should then be easy, except that I would have to rename the artifact in the generated EAR. Is there an easy way to rename the .jar to .har before or after it gets added to the EAR?

Any input welcome,
Erich

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to