tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berner Martin <Martin.Ber...@qualitasag.ch>
Subject AW: maven dependencys to several TomEE/Tomcat suplied Librarys
Date Mon, 21 Oct 2013 08:06:31 GMT
That's Correct. But for the Moment I need to get a working pom with all the needed Dependencies.
Afterword (when we have further Time) we plan to cat the Dependencies to the Implementations
wherever it is Possible.

Is there A Dependency which gives me org.apache.tomee.catalina.realm?

Freundliche Grüsse
Berner Martin



-----Ursprüngliche Nachricht-----
Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Gesendet: Montag, 21. Oktober 2013 09:59
An: users@tomee.apache.org
Betreff: Re: maven dependencys to several TomEE/Tomcat suplied Librarys

That's true but one goal of JavaEE is to not be tied to the impls. For tomcat realm it is
ok but for others it can be a pain. Typically you'll need to maintain your pom for each upgrade
of server version

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/10/21 Berner Martin <Martin.Berner@qualitasag.ch>

> Hi Romain,
> No this Dependency I already added. But that's not enough.
> We use the ContextDatabaseRealm which is in the 
> org.apache.tomee.catalina.realm - Package. This is not Part of javaee-api.
> Also there are some dependencis to tomcat provided Jars such as 
> tomcat-catalina and tomcat-coyote which I included by this:
>     <dependency>
>       <groupId>org.apache.tomcat</groupId>
>       <artifactId>tomcat-catalina</artifactId>
>       <version>${tomcat.version}</version>
>       <scope>provided</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.tomcat</groupId>
>       <artifactId>tomcat-coyote</artifactId>
>       <version>${tomcat.version}</version>
>       <scope>provided</scope>
>     </dependency>
> I'm nearly sure that there are better ways to do that.
>
> My Current Dependencys aer the following and I'm sure that dies didn't 
> even match all used Librarys..
>
>   <dependencies>
>     <!-- Tomcat Realm -->
>     <dependency>
>       <groupId>org.apache.tomcat</groupId>
>       <artifactId>tomcat-catalina</artifactId>
>       <version>${tomcat.version}</version>
>       <scope>provided</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.tomcat</groupId>
>       <artifactId>tomcat-coyote</artifactId>
>       <version>${tomcat.version}</version>
>       <scope>provided</scope>
>     </dependency>
>
>     <!-- Commons Collections -->
>     <dependency>
>       <groupId>commons-collections</groupId>
>       <artifactId>commons-collections</artifactId>
>       <version>3.2.1</version>
>       <scope>provided</scope>
>     </dependency>
>
>     <!-- Commons lang -->
>     <dependency>
>       <groupId>org.apache.commons</groupId>
>       <artifactId>commons-lang3</artifactId>
>       <version>3.1</version>
>       <scope>provided</scope>
>     </dependency>
>
>     <!-- Prettyfaces -->
>     <dependency>
>         <groupId>com.ocpsoft</groupId>
>         <artifactId>prettyfaces-jsf2</artifactId>
>         <version>3.3.3</version>
>     </dependency>
>
>     <!-- JEE6 API -->
>     <dependency>
>         <groupId>org.apache.openejb</groupId>
>         <artifactId>javaee-api</artifactId>
>         <version>6.0-5</version>
>         <scope>provided</scope>
>     </dependency>
>
>     <!-- Myfaces-CODI -->
>                 <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.core</groupId>
>                     <artifactId>myfaces-extcdi-core-api</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.core</groupId>
>                     <artifactId>myfaces-extcdi-core-impl</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>
> <artifactId>myfaces-extcdi-jsf20-module-api</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>compile</scope>
>                 </dependency>
>                  <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>
> <artifactId>myfaces-extcdi-jsf20-module-impl</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>runtime</scope>
>                 </dependency>
>                 <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>
> <artifactId>myfaces-extcdi-message-module-api</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>
> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>
> <artifactId>myfaces-extcdi-message-module-impl</artifactId>
>                     <version>${codi.version}</version>
>                     <scope>runtime</scope>
>                 </dependency>
>     <dependency>
>         <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>         <artifactId>myfaces-extcdi-jpa1-module-api</artifactId>
>         <version>${codi.version}</version>
>         <scope>compile</scope>
>     </dependency>
>     <dependency>
>         <groupId>org.apache.myfaces.extensions.cdi.modules</groupId>
>         <artifactId>myfaces-extcdi-jpa1-module-impl</artifactId>
>         <version>${codi.version}</version>
>         <scope>compile</scope>
>     </dependency>
>
>     <!-- jCIFS -->
>     <dependency>
>         <groupId>org.samba.jcifs</groupId>
>         <artifactId>jcifs</artifactId>
>         <version>1.3.3</version>
>         <scope>compile</scope>
>     </dependency>
>
>                 <!-- Primefaces -->
>     <dependency>
>         <groupId>org.primefaces.extensions</groupId>
>         <artifactId>primefaces-extensions</artifactId>
>         <version>0.6.1</version>
>         <scope>runtime</scope>
>     </dependency>
>     <dependency>
>         <groupId>org.primefaces</groupId>
>         <artifactId>primefaces</artifactId>
>         <version>3.5</version>
>     </dependency>
>
>                 <dependency>
>                    <groupId>org.eclipse.persistence</groupId>
>                    <artifactId>eclipselink</artifactId>
>                    <version>2.4.2</version>
>                    <scope>compile</scope>
>                 </dependency>
>
>
>     <dependency>
>        <groupId>com.sun.faces</groupId>
>        <artifactId>jsf-api</artifactId>
>        <version>2.1.10</version>
>        <scope>provided</scope>
>     </dependency>
>     <dependency>
>        <groupId>com.sun.faces</groupId>
>        <artifactId>jsf-impl</artifactId>
>        <version>2.1.10</version>
>        <scope>provided</scope>
>     </dependency>
>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>
> Best Regards
> Berner Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Gesendet: Montag, 21. Oktober 2013 09:16
> An: users@tomee.apache.org
> Betreff: Re: maven dependencys to several TomEE/Tomcat suplied 
> Librarys
>
> Hi
>
> is it what you want or do you simply want to add
> org.apache.openejb:javaee-api:6.0-5 as provided?
>
> we have plenty of war sample here
> http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/ , all uses 
> maven
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/10/21 Berner Martin <Martin.Berner@qualitasag.ch>
>
> > Hi,
> > I try to convert a WebApp-Project to Maven.
> > Until now, we create the WAR in Eclipse by simply do "Export".
> > Because there are several Libs we used from TomEE, Maven didn't find it.
> > In Eclipse they are present by configuring the Runtime (TomEE).
> > Is there a Simple dependency to configure all the Libs provided by TomEE?
> >
> > Best Regards
> > Martin Berner
> >
> >
>

Mime
View raw message