[ http://jira.codehaus.org/browse/MEAR-33?page=all ]

Ian Springer reopened MEAR-33:
------------------------------

             
I just build 2.3-SNAPSHOT and tried this out. I added the following setting to 
my ear-plugin config:

<unpackTypes>ejb,war,sar</unpackTypes> 

But when I run mvn install, I get the following error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] No Archiver found for EAR modules

Embedded error: No such archiver: 'sar'.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: No Archiver found for EA
R modules
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: No Archiver found for
 EAR modules
        at org.apache.maven.plugin.ear.EarMojo.execute(EarMojo.java:208)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        ... 16 more
Caused by: org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No such
 archiver: 'sar'.
        at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArch
iver(DefaultArchiverManager.java:80)
        at org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArch
iver(DefaultArchiverManager.java:114)
        at org.apache.maven.plugin.ear.EarMojo.unpack(EarMojo.java:382)
        at org.apache.maven.plugin.ear.EarMojo.execute(EarMojo.java:189)
        ... 18 more


It looks like the plexus-archiver needs to be updated to grok the sar extension.


> add option to include modules in EAR in exploded (i.e. directory) form, 
> rather than as in jar form
> --------------------------------------------------------------------------------------------------
>
>                 Key: MEAR-33
>                 URL: http://jira.codehaus.org/browse/MEAR-33
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: Ian Springer
>         Assigned To: Stephane Nicoll
>             Fix For: 2.3
>
>         Attachments: MEAR-33.patch
>
>
> In JBoss, and perhaps other app servers, modules can be packaged in an EAR as 
> directories. For example:
> my.ear/
>   my.war/
>   service1.sar/
>   service2.sar/
> Please add an option on the ear plugin that allows you to specify that 
> modules should be packaged in exploded form.

-- 
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

        

Reply via email to