You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paulo Silva (JIRA)" <ji...@codehaus.org> on 2011/06/07 21:39:22 UTC
[jira] Commented: (MWAR-193) Plugin does not handle Axis2 MAR files
[ http://jira.codehaus.org/browse/MWAR-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=269756#action_269756 ]
Paulo Silva commented on MWAR-193:
----------------------------------
I did some testing and I found a problem when we have a webapp that uses axis2 at client side + server side. If you deploy the mar files to WEB-INF/modules/ only the server side will work. But if you instead deploy them to WEB-INF/lib/ then both sides will work (client side + server side). I did this test with axis2 v1.5.
To solve this problem I had to patch ArtifactsPackagingTask.java to force the deployement of mar files to WEB-INF/lib/.
I think it would be a good pattern to always deploy artifact dependencies to the lib folder... Maybe there are a few exceptions, but I don't think axis2 mar files are one of them... And IMHO those kind of exceptions should be handled by configuration, when needed.
Can anyone check this out?
Thanks in advance.
> Plugin does not handle Axis2 MAR files
> --------------------------------------
>
> Key: MWAR-193
> URL: http://jira.codehaus.org/browse/MWAR-193
> Project: Maven 2.x WAR Plugin
> Issue Type: Improvement
> Affects Versions: 2.1-beta-1
> Environment: Linux 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC 2009 i686 GNU/Linux
> java version "1.5.0_15"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
> Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
> Reporter: johan lindquist
> Assignee: Stephane Nicoll
> Priority: Minor
> Fix For: 2.1.1
>
> Attachments: ArtifactsPackagingTask.java, ArtifactsPackagingTask.java
>
>
> When adding a dependency on (for example) Axis2 addressing module (addressing-1.41.mar), the war plugin will not place this into the final WAR file (in WEB-INF/modules). For Axis2 AAR files, this does work however (it is placed in WEB-INF/services), which seem to point to a small inconsistency.
> This is the debug output from the plugin (validation in ArtifactsPackagingTask class):
> [DEBUG] Processing: addressing-1.41.mar
> [DEBUG] Artifact of type[mar] is not supported, ignoring[org.apache.axis2:addressing:mar:1.41:runtime]
--
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