You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2021/04/18 12:27:34 UTC

Create a web app using maven and tomeeplume7.1.4

Hi all.
I m a newbie into maven .
Please i would create a web app using tomeeplume7.1.4 (that use
eclipse-link).
I tried to search a maven archetype and i founded only the archetype that
use hibernate with tomee8 or that use openjpa for tomeeplus.

Finally i search a pom.xml with dependencies setted for create a web app
taht will run on tomeeplume7.1.4 .
I would  that with maven goal package i can create the war that will run on
tomeeplume 7.1.4 that use jsf mojarra  and eclipse-link  jpa.

Please exist or you can send me a pom.xml with dependencies
for create  the web app and next send to a tomee remote?


Please help me.
Thank you.
Mauro



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: Create a web app using maven and tomeeplume7.1.4

Posted by mauro2java2011 <ma...@gmail.com>.
Please do you have a example with thus pom.xml on a github repo ?




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: Create a web app using maven and tomeeplume7.1.4

Posted by Gilberto Caetano de Andrade <gi...@gmail.com>.
I use both maven plugins, with the embedded one I'm productive and keep it running in a console while editing in NetBeans 12. With the default one I build a fatjar and deploy quickly.

The embedded one:
            <plugin>
                <groupId>org.apache.tomee.maven</groupId>
                <artifactId>tomee-embedded-maven-plugin</artifactId>
                <version>${tomee-embedded-maven-plugin.version}</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>tomee-embedded</artifactId>
                        <version>${tomee-embedded-maven-plugin.version}</version>
                        <exclusions>
                            <exclusion>
                                <groupId>org.apache.myfaces.core</groupId>
                                <artifactId>myfaces-api</artifactId>
                            </exclusion>
                            <exclusion>
                                <groupId>org.apache.myfaces.core</groupId>
                                <artifactId>myfaces-impl</artifactId>
                            </exclusion>
                            <exclusion>
                                <groupId>commons-beanutils</groupId>
                                <artifactId>commons-beanutils-core</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                    <dependency>
                        <groupId>commons-beanutils</groupId>
                        <artifactId>commons-beanutils</artifactId>
                        <version>1.9.3</version>
                    </dependency>
                    <dependency>
                        <groupId>org.glassfish</groupId>
                        <artifactId>javax.faces</artifactId>
                        <version>${faces.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>tomee-mojarra</artifactId>
                        <version>${tomee-embedded-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>openejb-jpa-integration</artifactId>
                        <version>${tomee-embedded-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>openejb-core-eclipselink</artifactId>
                        <version>${tomee-embedded-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-validator</artifactId>
                        <version>${hibernate-validator.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jboss.logging</groupId>
                        <artifactId>jboss-logging</artifactId>
                        <version>3.3.0.Final</version>
                    </dependency>
                </dependencies>
            </plugin>

The default one:

            <plugin>
                <groupId>org.apache.tomee.maven</groupId>
                <artifactId>tomee-maven-plugin</artifactId>
                <version>${tomee-maven-plugin.version}</version>
                <configuration>
                    <execFile>${project.build.directory}/${project.artifactId}-${project.version}-tomee-7.1.0.jar</execFile>
                    <tomeeVersion>${tomee-maven-plugin.version}</tomeeVersion>
                    <tomeeClassifier>webprofile</tomeeClassifier>
                    <zip>false</zip>
                    <args>-Dcom.sun.management.jmxremote.port=11223 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false</args>
                    <systemVariables>
                        <file.encoding>UTF-8</file.encoding>
                    </systemVariables>
                    <libs>
                        <!-- jpa -->
                        <lib>org.eclipse.persistence:eclipselink:${eclipselink.version}</lib>
                        <lib>org.apache.tomee:openejb-core-eclipselink:${tomee-maven-plugin.version}</lib>
                        <!-- jsf -->
                        <lib>org.glassfish:javax.faces:${faces.version}</lib>
                        <lib>org.apache.tomee:tomee-mojarra:${tomee-maven-plugin.version}</lib>
                        <!-- remove unused -->
                        <lib>remove:openjpa</lib>
                        <lib>remove:myfaces</lib>
                    </libs>
                    <reloadOnUpdate>false</reloadOnUpdate>
                    <synchronization>
                        <extensions>
                            <extension>.class</extension>
                        </extensions>
                        <updateOnlyExtensions>
                            <updateOnlyExtension>.xhtml</updateOnlyExtension>
                            <updateOnlyExtension>.html</updateOnlyExtension>
                            <updateOnlyExtension>.js</updateOnlyExtension>
                            <updateOnlyExtension>.css</updateOnlyExtension>
                        </updateOnlyExtensions>
                    </synchronization>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>openejb-core</artifactId>
                        <version>${tomee-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.glassfish</groupId>
                        <artifactId>javax.faces</artifactId>
                        <version>${faces.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>tomee-mojarra</artifactId>
                        <version>${tomee-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>openejb-jpa-integration</artifactId>
                        <version>${tomee-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>openejb-core-eclipselink</artifactId>
                        <version>${tomee-maven-plugin.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-validator</artifactId>
                        <version>${hibernate-validator.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jboss.logging</groupId>
                        <artifactId>jboss-logging</artifactId>
                        <version>3.3.0.Final</version>
                    </dependency>
                </dependencies>
            </plugin>

This config was made with the help of these incredible guys who maintain this great project.
Regards,

Gilberto


On 2021/04/18 12:27:34, mauro2java2011 <ma...@gmail.com> wrote: 
> Hi all.
> I m a newbie into maven .
> Please i would create a web app using tomeeplume7.1.4 (that use
> eclipse-link).
> I tried to search a maven archetype and i founded only the archetype that
> use hibernate with tomee8 or that use openjpa for tomeeplus.
> 
> Finally i search a pom.xml with dependencies setted for create a web app
> taht will run on tomeeplume7.1.4 .
> I would  that with maven goal package i can create the war that will run on
> tomeeplume 7.1.4 that use jsf mojarra  and eclipse-link  jpa.
> 
> Please exist or you can send me a pom.xml with dependencies
> for create  the web app and next send to a tomee remote?
> 
> 
> Please help me.
> Thank you.
> Mauro
> 
> 
> 
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
>