> -----Original Message-----
> From: Dion Gillard [mailto:[EMAIL PROTECTED] 
> Sent: 07 August 2006 17:28
> To: Maven Users List
> Subject: Re: [m2] ant run plugin
> 
> On 8/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador
> > > Sent: 07 August 2006 16:49
> > > To: Maven Users List
> > > Subject: Re: [m2] ant run plugin
> > >
> > > I do it like this. I create a websphere classpath and 
> then use it in 
> > > the <taskdef> This example, which I use, sets up things for the 
> > > websphere end point enabler for use with web services.
> > >
> > > was.install.root is the folder where websphere is installed.
> > > In my case that is c:\Program 
> Files\IBM\WebSphere\AppServer but it 
> > > just serves to get me to the jars I need. I figures out 
> the list by 
> > > trial and error, adding jars when a class wasn't found.
> > >
> >
> >
> > I figured taskdef classpath out finally myself.
> >
> > The next question I have is, where can I find the official 
> list of Maven
> > 2.0
> > POM Properties. This should really be listed
> > in the PDF Book BTW "Better Build with Maven"
> >
> > Embedded error: Unable to parse setupCmdLine: 
> null\bin\setupCmdLine.bat
> > (The sys
> > tem cannot find the path specified)
> >
> > Ever seen this error above?
> 
> Yes. Sometimes the was ant tasks *must* be run using ws_ant instead of
> just Ant, as ws_ant sets up the environment.
>


The solution I found on the
http://ecommunity.groupintelligence.com/websphere/forums/archive/index.p
hp/t-452.html
was there is a bug in the WAS Libraries themselves. Sheesh!!!

So I did this

% mvn install -Duser.install.root="C:\Program
Files\IBM\WebSphere\AppServer"

to kick start the wsEjbDeploy. So finally I get some output. 

So I have choices:

1) Define a system property for M2 at the command line.
2) Find out if M2 can define property in the POM
3) How do you configure the mvn antrun plugin to run "ws_ant" instead of
normal "ant"?

 
> >
> > >     <path id="was.classpath">
> > >         <fileset dir="${was.install.root}/lib">
> > >             <include name="wsanttasks.jar" />
> > >             <include name="webservices.jar" />
> > >             <include name="j2ee.jar" />
> > >             <include name="ffdc.jar" />
> > >             <include name="wsdl4j.jar" />
> > >             <include name="bootstrap.jar" />
> > >             <include name="commons-logging-api.jar" />
> > >             <include name="commons-discovery.jar" />
> > >             <include name="ras.jar" />
> > >             <include name="wsexception.jar" />
> > >             <include name="emf.jar" />
> > >             <include name="classloader.jar" />
> > >             <include name="*.jar" />
> > >         </fileset>
> > >         <fileset dir="${was.install.root}/java/jre/lib">
> > >             <include name="xml.jar" />
> > >         </fileset>
> > >     </path>
> > >
> > >     <taskdef name="EndpointEnablerTask" classname="
> > > com.ibm.websphere.ant.tasks.endptEnabler">
> > >         <classpath refid="was.classpath" />
> > >     </taskdef>
> > >
> > > -- Lee
> > >
> > > On 8/7/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Maven does not invoke Ant from Ant's installed directory.
> > > Instead it
> > > > downloads the Ant libs to the Maven repo and uses them directly.
> > > >
> > > > You will need to install your WS lib in the Maven repo and
> > > specify it
> > > > as a <dep> on the Ant plugin, so that Maven includes it
> > > when running
> > > > your Ant commands.
> > > >
> > > > Wayne
> > > >
==////==

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to