You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/05/03 12:52:02 UTC

Re: Deployment of war file using JBOSS

Hello,
  easy way to copy your file with maven2 is that you write an antrun 'task'
in your pom.xml....
i
hth
 marco

On 4/28/06, Vincent Massol <vm...@pivolis.com> wrote:
>
> Anshuman,
>
> BTW you didn't answer my question:
>
> "It would be nice to understand why you are confused as this is not good
> and
> I'd like to improve the site as much as possible. Let us know and also
> please do not hesitate to use the Cargo mailing list
> (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted by
> the
> Maven team."
>
> Could you please let me know what's confusing and how we could improve it
> please?
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > Sent: vendredi 28 avril 2006 08:50
> > To: 'Maven Users List'
> > Subject: RE: Deployment of war file using JBOSS
> >
> > Hi Anshuman,
> >
> > > -----Original Message-----
> > > From: Anshuman Srivastava [mailto:anshuman2205@gmail.com]
> > > Sent: vendredi 28 avril 2006 06:37
> > > To: Maven Users List
> > > Subject: Re: Deployment of war file using JBOSS
> > >
> > > Hi Vincent
> > > Thanks for your concern.My problem is that I have already installed
> > > jboss-4.0.4 so I dont need to install it from a zip file.Where do I
> need
> > > to
> > > put this entry --
> > >
> > >  <configuration>
> > >   <!-- Container configuration -->
> > >   <container>
> > >     <containerId>jboss4x</containerId>
> > >     <home>c:/boss-4.0.4</home>
> > >   </container>
> > >
> > >  <!-- Deployer configuration -->
> > >   <deployer>
> > >     <type>local</type>
> > >     <deployables>
> > >       <deployable>
> > >         <groupId>active.DMS</groupId>
> > >         <artifactId>DMS</artifactId>
> > >         <type>war</type>
> > >         <properties>
> > >           <context></context>
> > >         </properties>
> > >         <pingURL></pingURL>
> > >       </deployable>
> > >     </deployables>
> > >   </deployer>
> > >   </configuration>
> > > I tried to put it after </build>,before <build>, between <build> and
> > > </build> but everytime it is giving me error that -"Reason: Parse
> error
> > > reading POM. Reason: Unrecognised tag: 'configuration' (position:
> > > START_TAG
> > > seen ...</dependencies>\r\n\t <configuration>... @163:18)"
> > >
> > > I believe that i need to put some plugin entry for jboss-4.0.4and
> > > distribution management section for deployment.
> >
> > Nope. You're configuring the cargo plugin and thusn, as usual, you need
> to
> > put that plugin config in <build> as shown on the link I gave you:
> > http://cargo.codehaus.org/Maven2+plugin :-)
> >
> > [snip]
> >
> > -Vincent
>
>
>
>
>
>
> ___________________________________________________________________________
> Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde
> entier à partir de 0,012 €/minute !
> Téléchargez sur http://fr.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Deployment of war file using JBOSS

Posted by Pete <pe...@gmail.com>.
Use the JBoss plugin

http://mojo.codehaus.org/jboss-maven-plugin/harddeploy-mojo.html

this copies the war/ear file to the jboss deploy


On 03/05/06, thenew05@gmail.com <th...@gmail.com> wrote:
>
> The simplest way would be to copy the war to the jboss deploy directory.
>
> If your Jboss server is on the same server as your build machines you can
> just do an <outputDirectory /> to your jboss deploy directory.
>
>        <plugin>
>         <artifactId>maven-war-plugin</artifactId>
>         <configuration>
>          <warSourceDirectory>${basedir}/Web/</warSourceDirectory>
>          <webXml>${basedir}/Web/WEB-INF/web.xml</webXml>
> *          <outputDirectory>${war.deploy}</outputDirectory>*
>         </configuration>
>        </plugin>
>
>
> On 5/3/06, Marco Mistroni <mm...@gmail.com> wrote:
> >
> > Hello,
> > easy way to copy your file with maven2 is that you write an antrun
> 'task'
> > in your pom.xml....
> > i
> > hth
> > marco
> >
> > On 4/28/06, Vincent Massol <vm...@pivolis.com> wrote:
> > >
> > > Anshuman,
> > >
> > > BTW you didn't answer my question:
> > >
> > > "It would be nice to understand why you are confused as this is not
> good
> > > and
> > > I'd like to improve the site as much as possible. Let us know and also
> > > please do not hesitate to use the Cargo mailing list
> > > (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted
> by
> > > the
> > > Maven team."
> > >
> > > Could you please let me know what's confusing and how we could improve
> > it
> > > please?
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > -----Original Message-----
> > > > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > > > Sent: vendredi 28 avril 2006 08:50
> > > > To: 'Maven Users List'
> > > > Subject: RE: Deployment of war file using JBOSS
> > > >
> > > > Hi Anshuman,
> > > >
> > > > > -----Original Message-----
> > > > > From: Anshuman Srivastava [mailto:anshuman2205@gmail.com]
> > > > > Sent: vendredi 28 avril 2006 06:37
> > > > > To: Maven Users List
> > > > > Subject: Re: Deployment of war file using JBOSS
> > > > >
> > > > > Hi Vincent
> > > > > Thanks for your concern.My problem is that I have already
> installed
> > > > > jboss-4.0.4 so I dont need to install it from a zip file.Where do
> I
> > > need
> > > > > to
> > > > > put this entry --
> > > > >
> > > > >  <configuration>
> > > > >   <!-- Container configuration -->
> > > > >   <container>
> > > > >     <containerId>jboss4x</containerId>
> > > > >     <home>c:/boss-4.0.4</home>
> > > > >   </container>
> > > > >
> > > > >  <!-- Deployer configuration -->
> > > > >   <deployer>
> > > > >     <type>local</type>
> > > > >     <deployables>
> > > > >       <deployable>
> > > > >         <groupId>active.DMS</groupId>
> > > > >         <artifactId>DMS</artifactId>
> > > > >         <type>war</type>
> > > > >         <properties>
> > > > >           <context></context>
> > > > >         </properties>
> > > > >         <pingURL></pingURL>
> > > > >       </deployable>
> > > > >     </deployables>
> > > > >   </deployer>
> > > > >   </configuration>
> > > > > I tried to put it after </build>,before <build>, between <build>
> and
> > > > > </build> but everytime it is giving me error that -"Reason: Parse
> > > error
> > > > > reading POM. Reason: Unrecognised tag: 'configuration' (position:
> > > > > START_TAG
> > > > > seen ...</dependencies>\r\n\t <configuration>... @163:18)"
> > > > >
> > > > > I believe that i need to put some plugin entry for jboss-4.0.4and
> > > > > distribution management section for deployment.
> > > >
> > > > Nope. You're configuring the cargo plugin and thusn, as usual, you
> > need
> > > to
> > > > put that plugin config in <build> as shown on the link I gave you:
> > > > http://cargo.codehaus.org/Maven2+plugin :-)
> > > >
> > > > [snip]
> > > >
> > > > -Vincent
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________________________
> > > Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le
> monde
> > > entier à partir de 0,012 €/minute !
> > > Téléchargez sur http://fr.messenger.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
>
>

Re: Deployment of war file using JBOSS

Posted by th...@gmail.com.
The simplest way would be to copy the war to the jboss deploy directory.

If your Jboss server is on the same server as your build machines you can
just do an <outputDirectory /> to your jboss deploy directory.

        <plugin>
         <artifactId>maven-war-plugin</artifactId>
         <configuration>
          <warSourceDirectory>${basedir}/Web/</warSourceDirectory>
          <webXml>${basedir}/Web/WEB-INF/web.xml</webXml>
*          <outputDirectory>${war.deploy}</outputDirectory>*
         </configuration>
        </plugin>


On 5/3/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> Hello,
> easy way to copy your file with maven2 is that you write an antrun 'task'
> in your pom.xml....
> i
> hth
> marco
>
> On 4/28/06, Vincent Massol <vm...@pivolis.com> wrote:
> >
> > Anshuman,
> >
> > BTW you didn't answer my question:
> >
> > "It would be nice to understand why you are confused as this is not good
> > and
> > I'd like to improve the site as much as possible. Let us know and also
> > please do not hesitate to use the Cargo mailing list
> > (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted by
> > the
> > Maven team."
> >
> > Could you please let me know what's confusing and how we could improve
> it
> > please?
> >
> > Thanks
> > -Vincent
> >
> > > -----Original Message-----
> > > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > > Sent: vendredi 28 avril 2006 08:50
> > > To: 'Maven Users List'
> > > Subject: RE: Deployment of war file using JBOSS
> > >
> > > Hi Anshuman,
> > >
> > > > -----Original Message-----
> > > > From: Anshuman Srivastava [mailto:anshuman2205@gmail.com]
> > > > Sent: vendredi 28 avril 2006 06:37
> > > > To: Maven Users List
> > > > Subject: Re: Deployment of war file using JBOSS
> > > >
> > > > Hi Vincent
> > > > Thanks for your concern.My problem is that I have already installed
> > > > jboss-4.0.4 so I dont need to install it from a zip file.Where do I
> > need
> > > > to
> > > > put this entry --
> > > >
> > > >  <configuration>
> > > >   <!-- Container configuration -->
> > > >   <container>
> > > >     <containerId>jboss4x</containerId>
> > > >     <home>c:/boss-4.0.4</home>
> > > >   </container>
> > > >
> > > >  <!-- Deployer configuration -->
> > > >   <deployer>
> > > >     <type>local</type>
> > > >     <deployables>
> > > >       <deployable>
> > > >         <groupId>active.DMS</groupId>
> > > >         <artifactId>DMS</artifactId>
> > > >         <type>war</type>
> > > >         <properties>
> > > >           <context></context>
> > > >         </properties>
> > > >         <pingURL></pingURL>
> > > >       </deployable>
> > > >     </deployables>
> > > >   </deployer>
> > > >   </configuration>
> > > > I tried to put it after </build>,before <build>, between <build> and
> > > > </build> but everytime it is giving me error that -"Reason: Parse
> > error
> > > > reading POM. Reason: Unrecognised tag: 'configuration' (position:
> > > > START_TAG
> > > > seen ...</dependencies>\r\n\t <configuration>... @163:18)"
> > > >
> > > > I believe that i need to put some plugin entry for jboss-4.0.4and
> > > > distribution management section for deployment.
> > >
> > > Nope. You're configuring the cargo plugin and thusn, as usual, you
> need
> > to
> > > put that plugin config in <build> as shown on the link I gave you:
> > > http://cargo.codehaus.org/Maven2+plugin :-)
> > >
> > > [snip]
> > >
> > > -Vincent
> >
> >
> >
> >
> >
> >
> >
> ___________________________________________________________________________
> > Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde
> > entier à partir de 0,012 €/minute !
> > Téléchargez sur http://fr.messenger.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>