<?xml version="1.0" encoding="UTF-8"?>
<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>com.github.albfernandez.test-jsf</groupId>
	<artifactId>parent</artifactId>
	<version>10.0.0</version>
	<name>JSF Test Framework</name>
	<packaging>pom</packaging>

	<description>
        JSF Test Framework
    </description>
	<url>https://github.com/albfernandez/jsf-test</url>
    <licenses>
        <license>
            <name>GNU Lesser General Public License, Version 2.1</name>
            <distribution>repo</distribution>
            <url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>RichFaces committers</name>
        </developer>
    </developers>

	<scm>
		<connection>scm:git:git://github.com/albfernandez/jsf-test.git</connection>
		<developerConnection>scm:git:git@github.com:albfernandez/jsf-test.git</developerConnection>
		<url>https://github.com/albfernandez/jsf-test/</url>
	</scm>

	<properties>
		<!-- maven-compiler-plugin -->
		<!-- Overide jboss-parent default version -->
		<maven.compiler.target>11</maven.compiler.target>
		<maven.compiler.source>11</maven.compiler.source>

		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

	<modules>
		<module>mock</module>
		<module>jsf-mockito</module>
		<module>stage</module>
		<module>jetty</module>
		<module>jsf-test-htmlunit</module>
		<module>scriptunit</module>
		<module>jsf-test</module>
	</modules>
	

    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/albfernandez/richfaces/issues</url>
    </issueManagement>
	
	<build>
		<defaultGoal>package</defaultGoal>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.13.0</version>
					<configuration>
						<source>${maven.compiler.source}</source>
						<target>${maven.compiler.target}</target>
						<release>${maven.compiler.target}</release>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.3.1</version>
				<executions>
		          <execution>
		            <id>attach-sources</id>
		            <goals>
		              <goal>jar-no-fork</goal>
		            </goals>
		          </execution>
		        </executions>				
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.10.0</version>
				<configuration>
					<source>8</source>
					<quiet>true</quiet>
					<additionalJOption>-Xdoclint:none</additionalJOption>
				</configuration>
			</plugin>			
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>jsf_ri</id>
			<activation>
				<property>
					<name>jsf_profile</name>
					<value>jsfri</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
				    <groupId>jakarta.platform</groupId>
				    <artifactId>jakarta.jakartaee-web-api</artifactId>
				    <version>10.0.0</version>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>jsf_jboss</id>
			<activation>
				<property>
					<name>jsf_profile</name>
					<value>jboss</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.jboss.spec.javax.faces</groupId>
					<artifactId>jboss-jsf-api_2.1_spec</artifactId>
					<version>2.2.6.Final</version>
					<scope>provided</scope>
				</dependency>
				<dependency>
					<groupId>com.sun.faces</groupId>
					<artifactId>jsf-impl</artifactId>
					<version>2.2.6-jbossorg-4</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		 <profile>
            <id>myfaces</id>
            <activation>
                <property>
                    <name>!jsf_profile</name>
                </property>
            </activation>
            <properties>
                <arquillian.richfaces.jsfProvider>myfaces</arquillian.richfaces.jsfProvider>
                <arquillian.richfaces.jsfImplementation>org.apache.myfaces.core:myfaces-impl</arquillian.richfaces.jsfImplementation>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-api</artifactId>
                    <version>4.0.2</version>
                    <scope>compile</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.myfaces.core</groupId>
                    <artifactId>myfaces-impl</artifactId>
                    <version>4.0.2</version>
                </dependency>
            </dependencies>
        </profile>
		<profile>
			<id>sign</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>3.2.7</version>
						<configuration>
							<keyname>${gpg.keyname}</keyname>
							<passphraseServerId>${gpg.keyname}</passphraseServerId>
						</configuration>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.7.0</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>		
			</build>		
		</profile>
		
        
        <profile>
	        <id>only-eclipse</id>
			<activation>
			  <property>
			    <name>m2e.version</name>
			  </property>
			</activation>
			<build>
			
			        <pluginManagement>
            <plugins>
            
            	<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.codehaus.modello</groupId>
										<artifactId>modello-maven-plugin</artifactId>
										<versionRange>[1.0.2,)</versionRange>
										<goals>
											<goal>java</goal>
											<goal>xpp3-reader</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
            </plugins>
        </pluginManagement>
		
			</build>
		</profile>
		
	</profiles>

	<dependencyManagement>
		<dependencies>

			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.13.2</version>
			</dependency>

			<dependency>
				<groupId>org.testng</groupId>
				<artifactId>testng</artifactId>
				<version>7.10.2</version>
				<exclusions>
					<exclusion>
						<groupId>junit</groupId>
						<artifactId>junit</artifactId>
					</exclusion>
				</exclusions>
			</dependency>

			<dependency>
				<groupId>jakarta.inject</groupId>
				<artifactId>jakarta.inject-api</artifactId>
				<version>2.0.1</version>
			</dependency>

			<dependency>
				<groupId>jakarta.annotation</groupId>
				<artifactId>jakarta.annotation-api</artifactId>
				<version>3.0.0</version>
			</dependency>

			<dependency>
				<groupId>jakarta.persistence</groupId>
				<artifactId>jakarta.persistence-api</artifactId>
				<version>3.2.0</version>
			</dependency>
			<dependency>
				<groupId>jakarta.servlet</groupId>
				<artifactId>jakarta.servlet-api</artifactId>
				<version>6.1.0</version>
			</dependency>
			<dependency>
		    	<groupId>jakarta.websocket</groupId>
		    	<artifactId>jakarta.websocket-client-api</artifactId>
		    	<version>2.2.0</version>
			</dependency>
			<dependency>
		    	<groupId>jakarta.websocket</groupId>
		    	<artifactId>jakarta.websocket-api</artifactId>
		    	<version>2.2.0</version>
			</dependency>
			<dependency>
			    <groupId>jakarta.enterprise</groupId>
			    <artifactId>jakarta.enterprise.cdi-api</artifactId>
			    <version>4.1.0</version>
			</dependency>
			<!--MZ
			<dependency>
				<groupId>org.glassfish</groupId>
				<artifactId>javax.servlet</artifactId>
				<version>3.1.1</version>
			</dependency>
			<dependency>
				<groupId>javax.servlet.jsp</groupId>
				<artifactId>jsp-api</artifactId>
				<version>2.2</version>
			</dependency>
			-->
			<dependency>
				<groupId>jakarta.transaction</groupId>
				<artifactId>jakarta.transaction-api</artifactId>
				<version>2.0.1</version>
			</dependency>

			<dependency>
				<groupId>jakarta.el</groupId>
				<artifactId>jakarta.el-api</artifactId>
				<version>5.0.1</version>
			</dependency>
			<dependency>
		    	<groupId>org.glassfish</groupId>
		    	<artifactId>jakarta.el</artifactId>
		    	<version>4.0.2</version>
			</dependency>
			
			
			<!--MZ
			<dependency>
				<groupId>com.github.albfernandez</groupId>
				<artifactId>jboss-el</artifactId>
				<version>1.1.1</version>
			</dependency>
			-->

			<dependency>
				<groupId>org.htmlunit</groupId>
				<artifactId>htmlunit</artifactId>
				<version>3.11.0</version>
			</dependency>
			<dependency>
				<groupId>org.htmlunit</groupId>
				<artifactId>htmlunit-core-js</artifactId>
				<version>3.11.0</version>
			</dependency>
			<dependency>
				<groupId>commons-httpclient</groupId>
				<artifactId>commons-httpclient</artifactId>
				<version>3.1</version>
			</dependency>
			<dependency>
				<groupId>net.sourceforge.cssparser</groupId>
				<artifactId>cssparser</artifactId>
				<version>0.9.30</version>
			</dependency>
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>2.16.1</version>
			</dependency>
			<dependency>
				<groupId>commons-lang</groupId>
				<artifactId>commons-lang</artifactId>
				<version>2.6</version>
			</dependency>
			<dependency>
				<groupId>commons-collections</groupId>
				<artifactId>commons-collections</artifactId>
				<version>3.2.2</version>
			</dependency>
			<dependency>
				<groupId>xml-apis</groupId>
				<artifactId>xml-apis</artifactId>
				<version>1.4.01</version>
			</dependency>

			<dependency>
				<groupId>xalan</groupId>
				<artifactId>xalan</artifactId>
				<version>2.7.3</version>
				<exclusions>
					<exclusion>
						<groupId>xml-apis</groupId>
						<artifactId>xml-apis</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
			    <groupId>xalan</groupId>
			    <artifactId>serializer</artifactId>
			    <version>2.7.3</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty</groupId>
				<artifactId>jetty-server</artifactId>
				<version>12.0.14</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty</groupId>
				<artifactId>jetty-start</artifactId>
				<version>12.0.14</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty.ee10</groupId>
				<artifactId>jetty-ee10-webapp</artifactId>
				<version>12.0.14</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty.ee10</groupId>
				<artifactId>jetty-ee10-cdi</artifactId>
				<version>12.0.14</version>
			</dependency>
		    <dependency>
			    <groupId>org.jboss.weld.module</groupId>
			    <artifactId>weld-web</artifactId>
			    <version>5.1.3.Final</version>
			</dependency>
		    <dependency>
			    <groupId>org.jboss.weld.module</groupId>
			    <artifactId>weld-jsf</artifactId>
			    <version>5.1.3.Final</version>
			</dependency>
			<dependency>
		      <groupId>org.jboss.weld.servlet</groupId>
		      <artifactId>weld-servlet-core</artifactId>
		      <version>5.1.3.Final</version>
		    </dependency>
			<dependency>
				<groupId>org.eclipse.jetty.ee10</groupId>
				<artifactId>jetty-ee10-servlet</artifactId>
				<version>12.0.14</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty.ee10</groupId>
				<artifactId>jetty-ee10-servlets</artifactId>
				<version>12.0.14</version>
			</dependency>
			<dependency>
      			<groupId>org.eclipse.jetty.ee10</groupId>
      			<artifactId>jetty-ee10-apache-jsp</artifactId>
      			<version>12.0.14</version>
    		</dependency>
    		<dependency>
      			<groupId>org.eclipse.jetty</groupId>
      			<artifactId>jetty-slf4j-impl</artifactId>
      			<version>12.0.14</version>
    		</dependency>
		</dependencies>
	</dependencyManagement>
</project>
