<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>
  <!-- The Basics -->
  <parent>
	<groupId>io.sf.carte</groupId>
	<artifactId>css4j-dist</artifactId>
	<version>0.31</version>
  </parent>
  <groupId>io.sf.carte</groupId>
  <artifactId>css4j</artifactId>
  <packaging>jar</packaging>
  <dependencies>
    <dependency>
		<groupId>io.sf.jclf</groupId>
		<artifactId>jclf</artifactId>
		<version>[4.0.0,5.0)</version>
		<type>jar</type>
		<scope>compile</scope>
		<optional>false</optional>
    </dependency>
	<dependency>
		<groupId>commons-codec</groupId>
		<artifactId>commons-codec</artifactId>
		<version>[1.10,)</version>
		<scope>compile</scope>
		<optional>false</optional>
	</dependency>
	<dependency>
		<groupId>org.w3c.css</groupId>
		<artifactId>sac</artifactId>
		<version>1.3</version>
		<scope>compile</scope>
		<optional>false</optional>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>[1.7.25,)</version>
		<scope>compile</scope>
		<optional>false</optional>
	</dependency>
 	<!-- https://mvnrepository.com/artifact/nu.validator.htmlparser/htmlparser -->
	<dependency>
		<groupId>nu.validator.htmlparser</groupId>
		<artifactId>htmlparser</artifactId>
		<version>1.4</version>
		<scope>test</scope>
		<optional>false</optional>
	</dependency>
  </dependencies>
  <!-- Build Settings -->
  <build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-source-plugin</artifactId>
			<version>3.0.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-compiler-plugin</artifactId>
			<version>3.6.1</version>
			<executions>
				<execution>
				  <id>default-testCompile</id>
				  <configuration>
					<testExcludes>io/sf/carte/doc/AllTests.java</testExcludes>
				  </configuration>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>2.10.4</version>
			<configuration>
				<overview>${project.basedir}/src/overview.html</overview>
				<quiet>true</quiet>
			</configuration>
			<executions>
				<execution>
					<id>attach-javadocs</id>
					<goals>
						<goal>jar</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<version>3.0.2</version>
			<configuration>
			<archive>
				<addMavenDescriptor>false</addMavenDescriptor>
			</archive>
			</configuration>
			<executions>
				<execution>
				  <goals>
					<goal>test-jar</goal>
				  </goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
	<resources>
		<resource>
			<directory>${project.build.sourceDirectory}</directory>
			<excludes>
				<exclude>**/*.java</exclude>
				<exclude>overview.html</exclude>
			</excludes>
		</resource>
		<resource>
			<directory>${project.basedir}</directory>
			<includes>
				<include>LICENSE.txt</include>
				<include>LICENSES.txt</include>
			</includes>
		</resource>
	</resources>
	<testResources>
		<testResource>
			<directory>${project.basedir}/junit</directory>
			<excludes>
				<exclude>**/*.java</exclude>
			</excludes>
		</testResource>
	</testResources>
  </build>
  <reporting>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>2.10.4</version>
			<configuration>
			  <reportOutputDirectory>${project.build.directory}/doc</reportOutputDirectory>
			  <destDir>api</destDir>
			</configuration>
			<reportSets>
				<reportSet>
					<id>default</id>
					<reports>
					  <report>javadoc</report>
					</reports>
				</reportSet>
			</reportSets>
		</plugin>
	</plugins>
  </reporting>
  <scm>
  	<connection>scm:git:git://git.code.sf.net/p/carte/css4j</connection>
	<url>https://sourceforge.net/p/carte/css4j/ci/master/tree/</url>
  </scm>
</project>
