You could try using the jboss-maven-plugin, like this:

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jboss-maven-plugin</artifactId>
        <configuration>
                <jbossHome>/path/to/jboss</jbossHome>
        </configuration>
</plugin>

And then run one of its goals (deploy / harddeploy)

Roland



On Tuesday 30 May 2006 21:02, Wayne Fay wrote:
> Unfortunately I don't use JBoss, so I'm not much help. My OC4J samples
> won't give you any useful info!
>
> Wayne
>
> On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:
> > Hi Wayne!
> > I´m using Jboss4.0.2  can you help how can i configure my build.xml.
> > I followed what you said abou packing with maven and deploy with and
> > worried how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples and
> > i couldn´t success yet...
> > Can you help me send me a build.xml example ????
> > my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> >        <plugin>
> >         <artifactId>maven-antrun-plugin</artifactId>
> >         <executions>
> >           <execution>
> >             <phase>compile</phase>
> >             <configuration>
> >               <tasks>
> >                      <echo message="Efetuando o deploy..."/>
> >                      <ant antfile="build.xml" target="deploy"
> > inheritAll="true"/>
> >                      <echo message="Deploy complete"/>
> >               </tasks>
> >             </configuration>
> >             <goals>
> >               <goal>run</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >        </plugin>
> > ....
> >
> >
> > my build.xml
> >
> > <project name="buildDeploy">
> >    <target name="deploy">
> >         <scp file="/target/App.ear" todir="
> > [EMAIL PROTECTED]:/opt/jboss-4.0.1sp1/server/default" password="xxx"/>
> >     </target>
> > </project>
> >
> >
> > what Am i doing wrong????
> >
> > Regards,
> >
> > Leo
> >
> > 2006/5/30, Wayne Fay <[EMAIL PROTECTED]>:
> > > I don't know what app servers you guys are running, but we have
> > > discussed most of them on this list at some point I'm sure, esp JBoss,
> > > Tomcat, etc.
> > >
> > > Search the Maven User list archive at Nabble for "deploy <your app
> > > server here>" and you're bound to find examples.
> > >
> > > Wayne
> > >
> > > On 5/30/06, Leo L < [EMAIL PROTECTED]> wrote:
> > > > Hi Chandrika and Kennye!
> > > >
> > > > I have the same problem and your conversation helps a lot, but any of
> > >
> > > you
> > >
> > > > has a build.xml and a pom.xml configuration to deploy an
> > > > application????
> > > >
> > > >
> > > > So i can see how to deploy my app..
> > > >
> > > > Regards,
> > > > Leo
> > > >
> > > > 2006/5/30, Chandrika <[EMAIL PROTECTED]>:
> > > > > Thanks for your reply...
> > > > > I m able to invoke ant form maven:)))
> > > > > --
> > > > > View this message in context:
> > >
> > > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t169
> > >8478.html#a4625037
> > >
> > > > > Sent from the Maven - Users forum at Nabble.com
> > > > > <http://nabble.com/>.
> > > > >
> > > > >
> > > > > -------------------------------------------------------------------
> > > > >-- To unsubscribe, e-mail: [EMAIL PROTECTED] For
> > > > > additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to