Re: axistools-maven-plugin, namespace mapping and axis 1.2.1

2008-03-19 Thread Rémy Sanlaville
Hi,

For information, I think I found the solution.
It seems that it comes from the issue
http://jira.codehaus.org/browse/MNG-2972.  It is fixed with maven 2.0.9.

Rémy


axistools-maven-plugin, namespace mapping and axis 1.2.1

2008-03-14 Thread Rémy Sanlaville
Hi,

I try to use the axistools-maven-plugin with namespace mapping and axis
1.2.1 :

- axistools-maven-plugin:1.0 : uses axis 1.2.1 but does not handle namespace
mapping,
- axistools-maven-plugin:1.1 : I am able to configure the namespace mapping
but it uses axis 1.4 and it's not possible to change the axis dependency to
1.2.1 (cf. [1]).
- axistools-maven-plugin:1.2-SNAPSHOT : in order to be able to change the
axis version, Nicolas De Loof change the groupId org.apache.axis to axis
(cf. [1])

Unfortunately, even if I use this configuration it still does not work (I am
using maven 2.0.7) :
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaxistools-maven-plugin/artifactId
version1.2-SNAPSHOT/version
dependencies
dependency
groupIdaxis/groupId
artifactIdaxis/artifactId
version1.2.1/version
/dependency
/dependencies
executions
execution
idgenerate-sources/id
phasegenerate-sources/phase
goals
goalwsdl2java/goal
/goals
configuration
serverSidetrue/serverSide
useEmittertrue/useEmitter
mappings
mapping
namespacemy-namespace/namespace
targetPackagemytarget/targetPackage
/mapping
/mappings
wrapArraysfalse/wrapArrays
/configuration
/execution
/executions
/plugin

The build is successful but axistools-maven-plugin still use axis 1.4 as we
can see in the following trace :

[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.1)
[DEBUG]   axis:axis:jar:1.4:runtime (not setting scope to: compile; local
scope runtime wins)
[WARNING]
Artifact axis:axis:jar:1.4:runtime retains local scope 'runtime'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the
local scope.

[DEBUG]   axis:axis:jar:1.2.1:compile (removed - nearer found: 1.4)
[DEBUG] Configuring mojo '
org.codehaus.mojo:axistools-maven-plugin:1.2-SNAPSHOT:wsdl2java' --

I don't know what I can do now.

Rémy

[1]
http://archive.mojo.codehaus.org/scm/[EMAIL PROTECTED]