I think you need to use the 'maven-par-plugin' (in the mojo project, at http://mojo.codehaus.org/)
However, AFAIK its not released yet. On 11/17/05, Bruno Aranda <[EMAIL PROTECTED]> wrote: > Hi all, > > I am doing my first steps with maven... I have a multi-module setup > that involves the creation of jars, wars, pars and an ear with > everything inside. I've been told to use a plugin to create the par > file [1]. However, when the par is set as a dependency in the pom.xml > file to create the ear, a jar (with the same name of the par) is > included in the ear instead. I do not know anything about the maven > insights so I am not able right now to modify the code in order to see > what fails now, although I could do an ant task to rename again the > jar file to par inside the ear. But that will be the last solution... > I've seen that there is also a maven-par-plugin in the sandbox and > I've tried to use it. Then I got this exception: Cannot find lifecycle > mapping for packaging: 'par'. > I've compared the two plugins and I've seen than the plugin from JIRA > contains a components.xml file, so I've copied that file to the > sandbox plugin and I've installed it again (yeah, you now, trial and > error). The lifecycle seems ok now, but I keep getting this exception > > org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling PAR > ... > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling > PAR > at org.apache.maven.plugin.par.ParMojo.execute(ParMojo.java:161) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) > ... 16 more > Caused by: java.lang.NullPointerException > at org.apache.maven.plugin.par.ParMojo.execute(ParMojo.java:151) > ... 18 more > > Any tips will be appreciated, > > Thanks! > > Bruno > > [1] http://jira.codehaus.org/browse/MOJO-98 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]