if the schema changes.. the encompassing wsdl would change
the service classes would need to be re'gened
an example of schema encompassed in a wsdl:
ping-modified.wsdl contents:
<types>
<s:schema>
<s:import
namespace="http://xmlsoap.org/Ping"
schemaLocation="ping-mod.xsd" />
</s:schema>
any change in ping-mod.xsd would trigger new service classes to be gen'ed from
the ping-modified.wsdl as in this abbreviated lifecycle
WSDL2Java -d xmlbeans -ss -sd -t java -g ping-modified.wsdl
your java files
change <property name="classes" value="${build}/classes"/> to
<property name="classes" value="${build}/target/classes"/>
ant compile.src //you now have the necessary class files in
${build}/target/classes
--if you trust the build.xml jar facility run
ant jar.all
--if your trust mvn package to acquire the target classes and the
service.xml,web.xml run
//fill in the proper details to specify groupId and version attributes
mvn -DgroupId=? -DartifactId=configure -Dversion=? package //to repackage
configure.jar
mvn -DgroupId=? -DartifactId=configure -Dversion-? install //install the
package into the local repository
does this approximate your understanding of the lifecycle implementation?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 26 Aug 2009 17:47:43 -0700
> From: [email protected]
> To: [email protected]
> Subject: Re: maven xmlbeans problem
>
>
> How can I create the first module? Do you mean I run the command "mvn
> install" on the configure.jar file?
> If so, every time the xsd file changed, I have to install the cnofigure.jar
> file manually.
>
> Nicolas Duminil wrote:
> >
> > You have to have a main pom having two modules: the first one installs
> > your configure.jar as an artefact in your local repository. The second one
> > is the one you've showed, to which you add a dependency to the previous
> > generated artefact.
> >
> > Nicolas
> >
>
> --
> View this message in context:
> http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25164219.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009