You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Ashley Williams <ag...@mac.com> on 2005/10/05 23:07:31 UTC

jaxme and maven 2

Just seen the jaxme2 pom file in the ibiblio repository here:
http://www.ibiblio.org/maven2/jaxme/jaxme2/0.5/jaxme2-0.5.pom

and it would be great if it could be updated to include a dependency  
section. I plan on writing a simple plugin to launch jaxme as part of  
my maven generate-sources lifecycle and notice that you have  
extensive instructions on how to do this from ant. But is it possible  
to launch from java code?

I did try this with jaxb but...

A - the dependencies were a nightmare
B - I tried to call Driver.main(options) from within my java only to  
find out it does a System.exit() which therefore stops my maven  
install file in its tracks.

Hence I'm trying out jaxme!

Thanks
AW

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: jaxme and maven 2

Posted by Jochen Wiedmann <jo...@gmail.com>.
On 10/10/05, Ashley Williams <ag...@mac.com> wrote:
> Trying to work on a jaxme plugin for maven but I've come across a
> problem where invoking org.apache.ws.jaxme.generator.Main.main()
> calls a System.exit(0) - I confirmed this with jad. Unfortunately
> this stops my java code in its tracks. Is there some workaround where
> I can call the api programmatically without this behaviour?

The call to System.exit() is intentionally.

The suggested use is *not* to use the Main class, but the Generator
class. See the Main class as an example for how to use the Generator
class.


Jochen


--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: jaxme and maven 2

Posted by Jochen Wiedmann <jo...@gmail.com>.
Ashley Williams wrote:

> Just seen the jaxme2 pom file in the ibiblio repository here:
> http://www.ibiblio.org/maven2/jaxme/jaxme2/0.5/jaxme2-0.5.pom

I know nothing about Maven 2. Who created that file? He or she should 
possibly know what to do.


> and it would be great if it could be updated to include a dependency  
> section. I plan on writing a simple plugin to launch jaxme as part of  
> my maven generate-sources lifecycle and notice that you have  extensive 
> instructions on how to do this from ant. But is it possible  to launch 
> from java code?

The dependencies are basically quite the same than when launching from 
Ant, except that the Ant runtime is not required. (It would be easier to 
use the Ant task, though, because the instructions are obvious in that 
case.) Take the class org.apache.ws.jaxme.generator.Main as an example. 
(It is an Ant-independent command line interface.)



Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org