Hello,
my 2 cents here
On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:
Hi
I'm trying to adapt my old ant project to maven.
My application was a web service with the following structure:
+---classes
+---etc
¦ +---xml
¦ +---wsdl
+---src
In etc/xml/ I use to have mappings needed to generate a wsdl and the
wsdl file is generated in wsdl directory.
My question is: which is the "best practices structure" in Maven for
such kind of apps ?
i think Better Builds With Maven has an example of a WebSErvice projeect
The second question is how to call wsdl generation task from Maven.
mm this is entirely up to you :)
personally, i am deploying on jboss and i m using wstools task (Jboss
specific). For that, i am calling it via maven-antrun-plugin.. below is
sample
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>antTask</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools
">
<classpath refid="maven.dependency.classpath"/>
<classpath>
<fileset dir="${jboss.libdir}\client">
<include name="activation.jar"/>
<include name="javassist.jar"/>
<include name="jboss-common-client.jar"/>
<include name="jbossretro-rt.jar"/>
<include name="jboss-backport-concurrent.jar"/>
<include name="jbossws-client.jar"/>
<include name="jboss-xml-binding.jar"/>
<include name="concurrent.jar"/>
<include name="log4j.jar"/>
<include name="mail.jar"/>
<include name="wsdl4j.jar"/>
</fileset>
<fileset dir="${jboss.libdir}\lib\endorsed">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<echo message="********** Running jboss ws **************"/>
<wstools dest="${project.build.outputDirectory}/META-INF"
config="${workspace.dir
}/middleware/ngenMiddleware/jboss/wstools-messenger-config.xml"/>
Also, my web services client application is outside this project but
depends of it. Should I include it inside the ws project ?
And finally, it´s posible to run maven inside Eclipse ? I´ve seen
Maven docs instructions but may be they are so old or something else
because I can found "location" option in external tools and can't
finish to configure it.
yes it is.. there's a maven guide for eclipse.. i m using it with WTP..but i
feel more comfortable to run mvn from commandline...
hth
marco
Thanks in advance
J
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]