<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>com.googlecode.jmcnet</groupId>
	<artifactId>jmcnet-libCommun</artifactId>
	<version>1.8</version>
	<packaging>jar</packaging>
	<name>JMCNet librairie commune</name>
	<description>This project aim's to provide J2EE reusable components :
- flex integration : FlexAcegiLoginCommand, ServiceLoggerPresentation, SpringFactory,
- FOP formatter : FopFormatter,
- Spring and Acegi for JUnit : SpringBaseTestCase, AcegiBaseTestCase,
- Servlet : RedirectDisconnectedSessionFilter,
- utilit classes : ConvertCharset, CriptoUtilit, FileData, FormatUtilit, Time, TimeHHMM, TimeHHMMSS,
- Expression parser et evaluator : see jmcnet.libcommun.utilit.evaluator,
- Mail utilit : see jmcnet.libcommun.utilit.mail</description>
	<url>http://code.google.com/p/jmcnet/</url>
	<scm>
    	<connection>scm:svn:https://jmcnet.googlecode.com/svn/trunk/</connection>
    	<developerConnection>scm:svn:https://jmcnet.googlecode.com/svn/trunk/</developerConnection>
    	<url>https://jmcnet.googlecode.com/svn</url>
  	</scm>
  	<licenses>
        <license>
            <name>The JMCNet LibCommun Project</name>
            <url>licenses/LICENSE.txt</url>
            <distribution>repo</distribution>
            <comments>JMCNet LibCommun runs under a LGPL license</comments>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>jmcollin</id>
            <name>Jean-Marc Collin</name>
            <email>jmcollin92@hotmail.com</email>
            <organization>JMCNet</organization>
            <roles>
                <role>Developer</role>
                <role>Documentation</role>
                <role>Project Admin</role>
                <role>Release Manager</role>
            </roles>
            <timezone>1</timezone>
        </developer>
    </developers>
	<dependencies>
		<!--  JMC pour mise en place de la security -->
		<dependency>
			<groupId>org.acegisecurity</groupId>
			<artifactId>acegi-security</artifactId>
			<version>1.0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring</artifactId>
			<version>2.0.6</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.12</version>
			<scope>provided</scope>
		</dependency>
		<!-- Ajouté par JMC le 15-11-2006 pour FOP -->
		<dependency>
			<groupId>fop</groupId>
			<artifactId>fop</artifactId>
			<version>0.20.5</version>
			<scope>provided</scope>
		</dependency>
		<!--  Ajout pour JAXB 2.0 -->
			<dependency>
				<groupId>javax.xml.bind</groupId>
				<artifactId>jaxb-api</artifactId>
				<version>2.0</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>com.sun.xml.bind</groupId>
				<artifactId>jaxb-impl</artifactId>
				<version>2.0.2</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>javax.xml.bind</groupId>
				<artifactId>jsr173_api</artifactId>
				<version>1.0</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>javax.activation</groupId>
				<artifactId>activation</artifactId>
				<version>1.1</version>
				<scope>provided</scope>
			</dependency>
		<!-- Fin d'ajout par JMC pour JAXB -->
		<!-- Ajouté le 15/04/2007 pour javax.mail -->
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4</version>
			<scope>provided</scope>
		</dependency>
		<!-- Fin d'ajout -->
		<!-- Ajouté le 13/01/2008 pour mise en commun filtre servlet -->
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.4</version>
			<scope>provided</scope>
		</dependency>
		<!--  Ajouté pour JMCNetDS -->
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
			<version>1.7.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
			<version>3.1</version>
			<scope>provided</scope>
		</dependency>
		<!--  JMC 01/08/09 changé car ne marche plus !! -->
		<dependency>
    		<groupId>org.ostermiller</groupId>
    		<artifactId>utils</artifactId>
    		<version>1.07.00</version>
		</dependency> 
		<!--  Ajouté pour AcegiLoginCommand (flex - BlazeDS) -->
		<!--  Deplacé
		<dependency>
			<groupId>flex</groupId>
			<artifactId>flex-messaging-common</artifactId>
			<version>0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>flex</groupId>
			<artifactId>flex-messaging-core</artifactId>
			<version>0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>flex</groupId>
			<artifactId>flex-messaging-opt</artifactId>
			<version>0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>flex</groupId>
			<artifactId>flex-messaging-proxy</artifactId>
			<version>0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>flex</groupId>
			<artifactId>flex-messaging-remoting</artifactId>
			<version>0.1</version>
			<scope>provided</scope>
		</dependency>
		-->
		<!--  01/11/2009 - Modifié car deplacé dans Maven -->
		<!-- les dépendances BlazeDs-->
        <dependency>
            <groupId>com.adobe.flex.compiler</groupId>
            <artifactId>flex-messaging-common</artifactId>
            <version>3.3.0.4852</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.adobe.blazeds</groupId>
            <artifactId>blazeds-remoting</artifactId>
            <version>3.2.0.3978</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.adobe.blazeds</groupId>
            <artifactId>blazeds-core</artifactId>
            <version>3.2.0.3978</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.adobe.blazeds</groupId>
            <artifactId>blazeds-opt</artifactId>
            <version>3.2.0.3978</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.adobe.blazeds</groupId>
            <artifactId>blazeds-proxy</artifactId>
            <version>3.2.0.3978</version>
            <scope>provided</scope>
        </dependency>
        <!-- Les dépendances spring-flex -->       
        <dependency>
          <groupId>org.springframework.flex</groupId>
          <artifactId>spring-flex</artifactId>
          <version>1.0.0.RELEASE</version>
          <scope>provided</scope>
        </dependency>
        <!-- 01/11/2009 - Fin de modif blazeds -->
		
	</dependencies>
	<build>
		<defaultGoal>install</defaultGoal>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>2.2</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<configuration>
						<source>1.6</source>
						<target>1.6</target>
					</configuration>
				</plugin>
				<!--  JMC pour mise en place tests unitaires -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.2</version>
				</plugin>
				<!--  JMC pour construction du jar -->
				<plugin>
        			<groupId>org.apache.maven.plugins</groupId>
        			<artifactId>maven-jar-plugin</artifactId>
        				<configuration>
          					<archive>
            					<manifest>
              						<addClasspath>true</addClasspath>
            					</manifest>
          					</archive>
        				</configuration>
        		</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			 <!--  JMC 23/08 correction pour Xjc -->
			 <plugin>
		        <groupId>org.codehaus.mojo</groupId>
		        <artifactId>jaxb2-maven-plugin</artifactId>
		        <version>1.2</version>
		        <executions>
		          <execution>
		            <goals>
		              <goal>xjc</goal>
		            </goals>
		          </execution>
		        </executions>
		        <configuration>
		        	<schemaDirectory>src/main/resources/xml</schemaDirectory>
					<outputDirectory>src/genXml</outputDirectory>
					<clearOutputDir>true</clearOutputDir>
					<verbose>false</verbose>
		        </configuration>
		      </plugin>
		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-release-plugin</artifactId>
		        <version>2.0</version>
		        <configuration>
		        	<releaseProfiles>release-sign-artifacts</releaseProfiles>
		          	<tagBase>https://jmcnet.googlecode.com/svn/tags</tagBase>
		        </configuration>
		      </plugin>		      
		</plugins>
		<resources>
			<!-- Ajout JMC pour que les ressources soient inclues dans le jar -->
			<resource>
				<directory>src/main/resources</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
	</build>
	<distributionManagement>
        <snapshotRepository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>http://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
	      <id>sonatype-nexus-staging</id>
	      <name>Nexus Release Repository</name>
	      <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
	    </repository>
    </distributionManagement>
    <profiles>
	    <profile>
	      <id>release-sign-artifacts</id>
	      <activation>
	        <property>
	          <name>performRelease</name>
	          <value>true</value>
	        </property>
	      </activation>
	      <build>
	        <plugins>
	          <plugin>
	            <groupId>org.apache.maven.plugins</groupId>
	            <artifactId>maven-gpg-plugin</artifactId>
	            <version>1.0-alpha-4</version>
	            <executions>
	              <execution>
	                <id>sign-artifacts</id>
	                <phase>verify</phase>
	                <goals>
	                  <goal>sign</goal>
	                </goals>
	              </execution>
	            </executions>
	          </plugin>
	        </plugins>
	      </build>
	    </profile>
    </profiles>
</project>
