Help with Maven Pom.xml

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with Maven Pom.xml

Richard Monson-Haefel
Hi,

I created a Maven pom.xml file that downloads, installs and can run TomEE all-in-one. It works great, but the installation does contain the default Tomcat ROOT files. As a result there is no management page and no default Tomcat page at the root.  What do I need to change to get the pom.xml to include the Tomcat ROOT files and management page?

Here is the pom.xml in line (it's also attached):

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.superbiz</groupId>
  <artifactId>tomee-install</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>TomEE :: Examples :: Install</name>
  <build>
<directory>${project.basedir}</directory>
    <plugins>
        <plugin>
          <groupId>org.apache.tomee.maven</groupId>
          <artifactId>tomee-maven-plugin</artifactId>
          <version>8.0.1-SNAPSHOT</version>
          <configuration>
            <tomeeClassifier>plume</tomeeClassifier>
            <args>-Xmx512m -XX:PermSize=256m</args>
          </configuration>
        </plugin>
    </plugins>
  </build>
</project>

Thanks!


pom.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Help with Maven Pom.xml

Cesar Hernandez
Hi Richard M.
According to TomEE maven plugin official documentation [1] the property
should be: removeDefaultWebapps
Which is true by default.

[1] https://tomee.apache.org/tomee-8.0/docs/developer/tools/maven/tomee.html

El mié., 6 nov. 2019 a las 11:46, Richard Monson-Haefel (<
[hidden email]>) escribió:

> Hi,
>
> I created a Maven pom.xml file that downloads, installs and can run TomEE
> all-in-one. It works great, but the installation does contain the default
> Tomcat ROOT files. As a result there is no management page and no default
> Tomcat page at the root.  What do I need to change to get the pom.xml to
> include the Tomcat ROOT files and management page?
>
> Here is the pom.xml in line (it's also attached):
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.superbiz</groupId>
>   <artifactId>tomee-install</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>TomEE :: Examples :: Install</name>
>   <build>
> <directory>${project.basedir}</directory>
>     <plugins>
>         <plugin>
>           <groupId>org.apache.tomee.maven</groupId>
>           <artifactId>tomee-maven-plugin</artifactId>
>           <version>8.0.1-SNAPSHOT</version>
>           <configuration>
>             <tomeeClassifier>plume</tomeeClassifier>
>             <args>-Xmx512m -XX:PermSize=256m</args>
>           </configuration>
>         </plugin>
>     </plugins>
>   </build>
> </project>
>
> Thanks!
>
> Richard
>
> --
> Richard Monson-Haefel
> https://twitter.com/rmonson
> https://www.linkedin.com/in/monsonhaefel/
>


--
Atentamente:
César Hernández.
Reply | Threaded
Open this post in threaded view
|

Re: Help with Maven Pom.xml

Richard Monson-Haefel
Thanks, Cesar!  I'm not sure how I use that option when running the
command.  I tried

$ mvn tomee:run removeTomeeWebapp=false

Which doesn't work - I'm not sure how I use these plug-in options.
 Any suggestions?


On Wed, Nov 6, 2019 at 2:38 PM Cesar Hernandez <[hidden email]> wrote:

> Hi Richard M.
> According to TomEE maven plugin official documentation [1] the property
> should be: removeDefaultWebapps
> Which is true by default.
>
> [1]
> https://tomee.apache.org/tomee-8.0/docs/developer/tools/maven/tomee.html
>
> El mié., 6 nov. 2019 a las 11:46, Richard Monson-Haefel (<
> [hidden email]>) escribió:
>
> > Hi,
> >
> > I created a Maven pom.xml file that downloads, installs and can run TomEE
> > all-in-one. It works great, but the installation does contain the default
> > Tomcat ROOT files. As a result there is no management page and no default
> > Tomcat page at the root.  What do I need to change to get the pom.xml to
> > include the Tomcat ROOT files and management page?
> >
> > Here is the pom.xml in line (it's also attached):
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance"
> >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>org.superbiz</groupId>
> >   <artifactId>tomee-install</artifactId>
> >   <packaging>jar</packaging>
> >   <version>1.0-SNAPSHOT</version>
> >   <name>TomEE :: Examples :: Install</name>
> >   <build>
> > <directory>${project.basedir}</directory>
> >     <plugins>
> >         <plugin>
> >           <groupId>org.apache.tomee.maven</groupId>
> >           <artifactId>tomee-maven-plugin</artifactId>
> >           <version>8.0.1-SNAPSHOT</version>
> >           <configuration>
> >             <tomeeClassifier>plume</tomeeClassifier>
> >             <args>-Xmx512m -XX:PermSize=256m</args>
> >           </configuration>
> >         </plugin>
> >     </plugins>
> >   </build>
> > </project>
> >
> > Thanks!
> >
> > Richard
> >
> > --
> > Richard Monson-Haefel
> > https://twitter.com/rmonson
> > https://www.linkedin.com/in/monsonhaefel/
> >
>
>
> --
> Atentamente:
> César Hernández.
>


--
Richard Monson-Haefel
https://twitter.com/rmonson
https://www.linkedin.com/in/monsonhaefel/
Reply | Threaded
Open this post in threaded view
|

Re: Help with Maven Pom.xml

Cesar Hernandez
As I understand, you need to add it to the plugin configuration section.
Usually after this xml tag:
https://github.com/apache/tomee/blob/master/examples/moviefun/pom.xml#L108

El mié., 6 nov. 2019 a las 14:44, Richard Monson-Haefel (<
[hidden email]>) escribió:

> Thanks, Cesar!  I'm not sure how I use that option when running the
> command.  I tried
>
> $ mvn tomee:run removeTomeeWebapp=false
>
> Which doesn't work - I'm not sure how I use these plug-in options.
>  Any suggestions?
>
>
> On Wed, Nov 6, 2019 at 2:38 PM Cesar Hernandez <[hidden email]>
> wrote:
>
> > Hi Richard M.
> > According to TomEE maven plugin official documentation [1] the property
> > should be: removeDefaultWebapps
> > Which is true by default.
> >
> > [1]
> > https://tomee.apache.org/tomee-8.0/docs/developer/tools/maven/tomee.html
> >
> > El mié., 6 nov. 2019 a las 11:46, Richard Monson-Haefel (<
> > [hidden email]>) escribió:
> >
> > > Hi,
> > >
> > > I created a Maven pom.xml file that downloads, installs and can run
> TomEE
> > > all-in-one. It works great, but the installation does contain the
> default
> > > Tomcat ROOT files. As a result there is no management page and no
> default
> > > Tomcat page at the root.  What do I need to change to get the pom.xml
> to
> > > include the Tomcat ROOT files and management page?
> > >
> > > Here is the pom.xml in line (it's also attached):
> > >
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance"
> > >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > http://maven.apache.org/maven-v4_0_0.xsd">
> > >   <modelVersion>4.0.0</modelVersion>
> > >   <groupId>org.superbiz</groupId>
> > >   <artifactId>tomee-install</artifactId>
> > >   <packaging>jar</packaging>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <name>TomEE :: Examples :: Install</name>
> > >   <build>
> > > <directory>${project.basedir}</directory>
> > >     <plugins>
> > >         <plugin>
> > >           <groupId>org.apache.tomee.maven</groupId>
> > >           <artifactId>tomee-maven-plugin</artifactId>
> > >           <version>8.0.1-SNAPSHOT</version>
> > >           <configuration>
> > >             <tomeeClassifier>plume</tomeeClassifier>
> > >             <args>-Xmx512m -XX:PermSize=256m</args>
> > >           </configuration>
> > >         </plugin>
> > >     </plugins>
> > >   </build>
> > > </project>
> > >
> > > Thanks!
> > >
> > > Richard
> > >
> > > --
> > > Richard Monson-Haefel
> > > https://twitter.com/rmonson
> > > https://www.linkedin.com/in/monsonhaefel/
> > >
> >
> >
> > --
> > Atentamente:
> > César Hernández.
> >
>
>
> --
> Richard Monson-Haefel
> https://twitter.com/rmonson
> https://www.linkedin.com/in/monsonhaefel/
>


--
Atentamente:
César Hernández.
Reply | Threaded
Open this post in threaded view
|

Re: Help with Maven Pom.xml

Richard Monson-Haefel
Prefect!  That was the answer. Thank you, Cesar!

On Wed, Nov 6, 2019 at 3:26 PM Cesar Hernandez <[hidden email]> wrote:

> As I understand, you need to add it to the plugin configuration section.
> Usually after this xml tag:
> https://github.com/apache/tomee/blob/master/examples/moviefun/pom.xml#L108
>
> El mié., 6 nov. 2019 a las 14:44, Richard Monson-Haefel (<
> [hidden email]>) escribió:
>
> > Thanks, Cesar!  I'm not sure how I use that option when running the
> > command.  I tried
> >
> > $ mvn tomee:run removeTomeeWebapp=false
> >
> > Which doesn't work - I'm not sure how I use these plug-in options.
> >  Any suggestions?
> >
> >
> > On Wed, Nov 6, 2019 at 2:38 PM Cesar Hernandez <[hidden email]>
> > wrote:
> >
> > > Hi Richard M.
> > > According to TomEE maven plugin official documentation [1] the property
> > > should be: removeDefaultWebapps
> > > Which is true by default.
> > >
> > > [1]
> > >
> https://tomee.apache.org/tomee-8.0/docs/developer/tools/maven/tomee.html
> > >
> > > El mié., 6 nov. 2019 a las 11:46, Richard Monson-Haefel (<
> > > [hidden email]>) escribió:
> > >
> > > > Hi,
> > > >
> > > > I created a Maven pom.xml file that downloads, installs and can run
> > TomEE
> > > > all-in-one. It works great, but the installation does contain the
> > default
> > > > Tomcat ROOT files. As a result there is no management page and no
> > default
> > > > Tomcat page at the root.  What do I need to change to get the pom.xml
> > to
> > > > include the Tomcat ROOT files and management page?
> > > >
> > > > Here is the pom.xml in line (it's also attached):
> > > >
> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > > http://www.w3.org/2001/XMLSchema-instance"
> > > >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > http://maven.apache.org/maven-v4_0_0.xsd">
> > > >   <modelVersion>4.0.0</modelVersion>
> > > >   <groupId>org.superbiz</groupId>
> > > >   <artifactId>tomee-install</artifactId>
> > > >   <packaging>jar</packaging>
> > > >   <version>1.0-SNAPSHOT</version>
> > > >   <name>TomEE :: Examples :: Install</name>
> > > >   <build>
> > > > <directory>${project.basedir}</directory>
> > > >     <plugins>
> > > >         <plugin>
> > > >           <groupId>org.apache.tomee.maven</groupId>
> > > >           <artifactId>tomee-maven-plugin</artifactId>
> > > >           <version>8.0.1-SNAPSHOT</version>
> > > >           <configuration>
> > > >             <tomeeClassifier>plume</tomeeClassifier>
> > > >             <args>-Xmx512m -XX:PermSize=256m</args>
> > > >           </configuration>
> > > >         </plugin>
> > > >     </plugins>
> > > >   </build>
> > > > </project>
> > > >
> > > > Thanks!
> > > >
> > > > Richard
> > > >
> > > > --
> > > > Richard Monson-Haefel
> > > > https://twitter.com/rmonson
> > > > https://www.linkedin.com/in/monsonhaefel/
> > > >
> > >
> > >
> > > --
> > > Atentamente:
> > > César Hernández.
> > >
> >
> >
> > --
> > Richard Monson-Haefel
> > https://twitter.com/rmonson
> > https://www.linkedin.com/in/monsonhaefel/
> >
>
>
> --
> Atentamente:
> César Hernández.
>


--
Richard Monson-Haefel
https://twitter.com/rmonson
https://www.linkedin.com/in/monsonhaefel/