You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Oles <os...@lohika.odessa.ua> on 2005/11/29 14:19:05 UTC

wsdeploy tasks in maven?

Gentlemen!
I make war file by ant tasks:

   *  <target name="make-raw-war">
       <war destfile="${build}/raw-tms.war" 
webxml="${webapp}/WEB-INF/web.xml">
           <lib dir="${lib}" />
           <classes dir="${build}" />
           <classes dir="${config}" />
           <webinf dir="${webapp}/WEB-INF" />                  </war>
   </target>*

 *  <target name="cook-war">
       <wsdeploy inWarFile="${build}/raw-tms.war" 
outWarFile="${target}/tms.war" verbose="false">
            <classpath refid="main-classpath"/>
        </wsdeploy>          </target>
*I get a sbn.war on output.
But I should make this file corresponding to maven layout because  it 
should be accessible for ear assembly in the future.
So, it should be something  like sbn-1.1.1.jar and lie at com.corp.sbn.
What can I do
1.Do this tasks by maven
2.Do this tasks by ant on compile phase - but how then to pack into 
com.corp.sbn and make pom.xml and  everything else.
3.?????????

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: wsdeploy tasks in maven?

Posted by Dion Gillard <di...@gmail.com>.
Is this Maven 1 or 2?

If it's Maven 1, use the WAR plugin to make the WAR and deploy using
the WAS plugin:
http://maven-plugins.sourceforge.net/maven-was5-plugin/



On 11/30/05, Oles <os...@lohika.odessa.ua> wrote:
> Gentlemen!
> I make war file by ant tasks:
>
>    *  <target name="make-raw-war">
>        <war destfile="${build}/raw-tms.war"
> webxml="${webapp}/WEB-INF/web.xml">
>            <lib dir="${lib}" />
>            <classes dir="${build}" />
>            <classes dir="${config}" />
>            <webinf dir="${webapp}/WEB-INF" />                  </war>
>    </target>*
>
>  *  <target name="cook-war">
>        <wsdeploy inWarFile="${build}/raw-tms.war"
> outWarFile="${target}/tms.war" verbose="false">
>             <classpath refid="main-classpath"/>
>         </wsdeploy>          </target>
> *I get a sbn.war on output.
> But I should make this file corresponding to maven layout because  it
> should be accessible for ear assembly in the future.
> So, it should be something  like sbn-1.1.1.jar and lie at com.corp.sbn.
> What can I do
> 1.Do this tasks by maven
> 2.Do this tasks by ant on compile phase - but how then to pack into
> com.corp.sbn and make pom.xml and  everything else.
> 3.?????????
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org