Archive

Posts Tagged ‘configuration’

Configuration Maven2 : ready for Java EE6 (JSF 2.0, EJB 3.1, Servlet 3.0 et Glassfish 3.0.1)

Je démarre mon nouveau projet perso et je compte utiliser Java EE 6.

J’utilise Netbeans 6.9 comme IDE mais j’aime aussi utiliser Maven2 pour compiler/builder et intégrer mes projets dans Hudson et Sonar.

Je vous livre ici mon pom.xml configuré pour utiliser les dépendances JSF, EJB, Servlet, … ça vous évitera de perdre du temps à chercher les repositories, les numéros de version et les dépendances adéquates.

</pre>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.kaddath.apps</groupId>
<artifactId>fluxx</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>Fluxx</name>
<url>http://www.fluxx.fr.cn/</url>

<properties>
<junit-version>4.7</junit-version>
<eclipselink-version>2.0.0</eclipselink-version>
<glassfish-version>3.0.1</glassfish-version>
<jsf-version>2.0</jsf-version>
<rome-version>0.9</rome-version>
<log4j-version>1.2.14</log4j-version>
<commons-lang-version>2.3</commons-lang-version>
</properties>

<scm>
<connection>scm:svn:https://kaddath.googlecode.com/svn/trunk/fluxx_netbeans/</connection>
<developerConnection>scm:svn:https://kaddath.googlecode.com/svn/trunk/fluxx_netbeans/</developerConnection>
<url>http://code.google.com/p/kaddath/source/browse/#svn/trunk/fluxx_netbeans</url>
</scm>

<dependencies>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${jsf-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>rome</groupId>
<artifactId>rome</artifactId>
<version>${rome-version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons-lang-version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j-version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>${eclipselink-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>${eclipselink-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.ejb</artifactId>
<version>${glassfish-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<testSourceDirectory>${basedir}/test</testSourceDirectory>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${basedir}/web/WEB-INF/web.xml</webXml>
<warName>fluxx</warName>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>glassfish-maven-repository.dev.java.net</id>
<name>GlassFish Maven Repository</name>
<url>http://download.java.net/maven/glassfish</url>
</repository>
<repository>
<id>EclipseLink Repo</id>
<name>Eclipse maven repository http://eclipse.ialto.org/rt/eclipselink/maven.repo/</name>
<url>http://mirror.csclub.uwaterloo.ca/eclipse/rt/eclipselink/maven.repo/</url>
</repository>
</repositories>
</project>
<pre>
Publicités
Catégories :outil Étiquettes : , ,