<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
	license agreements. See the NOTICE file distributed with this work for additional 
	information regarding copyright ownership. The ASF licenses this file to 
	You under the Apache License, Version 2.0 (the "License"); you may not use 
	this file except in compliance with the License. You may obtain a copy of 
	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
	by applicable law or agreed to in writing, software distributed under the 
	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
	OF ANY KIND, either express or implied. See the License for the specific 
	language governing permissions and limitations under the License. -->

<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.github.albfernandez</groupId>
	<artifactId>log4j</artifactId>
	<packaging>bundle</packaging>
	<name>Apache Log4j</name>
	<version>1.2.18.ayg03</version>
	<description>Apache Log4j 1.2</description>
	<url>https://github.com/albfernandez/log4j/</url>
	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/albfernandez/log4j/issues</url>
	</issueManagement>
	<inceptionYear>1999</inceptionYear>

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
    <scm>
        <connection>scm:git:git@github.com:albfernandez/log4j.git</connection>
        <developerConnection>scm:git:git@github.com:albfernandez/log4j.git</developerConnection>
        <url>git@github.com:albfernandez/log4j.git</url>
    </scm>
	<developers>
		<developer>
			<name>Alberto Fernández</name>
			<email>infjaf@gmail.com</email>
			<organization>Alberto Fernández</organization>
			<organizationUrl>https://github.com/albfernandez/</organizationUrl>
		</developer>
	</developers>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>3.1.0</version>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.1</version>

				<configuration>
					<workingDirectory>tests</workingDirectory>
					<reportFormat>plain</reportFormat>
					<forkCount>1</forkCount>
					<reuseForks>false</reuseForks>
					<skip>false</skip>
					<includes>
						<include>org/apache/log4j/LevelTest.java</include>
						<include>org/apache/log4j/PriorityTest.java</include>
						<include>org/apache/log4j/CategoryTest.java</include>
						<include>org/apache/log4j/FileAppenderTest.java</include>
						<include>org/apache/log4j/LogManagerTest.java</include>
						<include>org/apache/log4j/helpers.LogLogTest.java</include>
						<include>org/apache/log4j/LayoutTest.java</include>
						<include>org/apache/log4j/helpers.DateLayoutTest.java</include>
						<include>org/apache/log4j/TTCCLayoutTest.java</include>
						<include>org/apache/log4j/xml.XMLLayoutTest.java</include>
						<include>org/apache/log4j/HTMLLayoutTest.java</include>
						<include>org/apache/log4j/PatternLayoutTest.java</include>
						<include>org/apache/log4j/spi.LoggingEventTest.java</include>
						<include>org/apache/log4j/spi.ThrowableInformationTest.java</include>
						<include>org/apache/log4j/spi.LocationInfoTest.java</include>
						<include>org/apache/log4j/PropertyConfiguratorTest.java</include>
						<include>org/apache/log4j/MinimumTestCase.java</include>
						<include>org/apache/log4j/LoggerTestCase.java</include>
						<include>org/apache/log4j/PatternLayoutTestCase.java</include>
						<include>org/apache/log4j/HierarchyThresholdTestCase.java</include>
						<include>org/apache/log4j/xml/DOMTestCase.java</include>
						<include>org/apache/log4j/xml/CustomLevelTestCase.java</include>
						<include>org/apache/log4j/customLogger/XLoggerTestCase.java</include>
						<!-- DefaultInit -->
						<!-- SocketServer -->
						<include>org/apache/log4j/xml/XMLLayoutTestCase.java</include>
						<include>org/apache/log4j/xml/AsyncAppenderTestCase.java</include>
						<include>org/apache/log4j/varia/LevelMatchFilterTestCase.java</include>
						<include>org/apache/log4j/helpers/BoundedFIFOTestCase.java</include>
						<include>org/apache/log4j/helpers/CyclicBufferTestCase.java</include>
						<include>org/apache/log4j/helpers/PatternParserTestCase.java</include>
						<include>org/apache/log4j/or/ORTestCase.java</include>
						<include>org/apache/log4j/DRFATestCase.java</include>
						<include>org/apache/log4j/RFATestCase.java</include>
						<include>org/apache/log4j/varia/ERFATestCase.java</include>
						<include>org/apache/log4j/net/SyslogAppenderTest</include>
						<include>org/apache/log4j/net/SocketAppenderTest</include>
					</includes>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.0</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<encoding>UTF-8</encoding>
					<compilerArguments>
					  <Xmaxerrs>1000</Xmaxerrs>
					  <Xmaxwarns>1000</Xmaxwarns>
					  <Xlint/>
					  <Xlint:-rawtypes/>
					  <Xlint:-unchecked/>
					  <Averbose>true</Averbose>
					</compilerArguments>
					<showWarnings>true</showWarnings>
					<showDeprecation>true</showDeprecation>					
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.1.0</version>
				<configuration>
					<archive>
						<manifestSections>
							<manifestSection>
								<name>org/apache/log4j/</name>
								<manifestEntries>
									<DynamicImport-Package>*</DynamicImport-Package>
									<Implementation-Title>log4j</Implementation-Title>
									<Implementation-Version>${project.version}</Implementation-Version>
									<Implementation-Vendor>"Apache Software Foundation"</Implementation-Vendor>
								</manifestEntries>
							</manifestSection>
						</manifestSections>
					</archive>
				</configuration>
			</plugin>
			<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</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.6</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.6.8</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.0.1</version>
				<configuration>
					<docfilessubdirs>true</docfilessubdirs>
					<encoding>UTF-8</encoding>
					<additionalJOptions>
				        <additionalJOption>-Xdoclint:none</additionalJOption>
				     </additionalJOptions>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>jar</goal>
							<goal>javadoc</goal>
						</goals>
					</execution>
					<execution>
						<id>site</id>
						<phase>pre-site</phase>
						<goals>
							<goal>javadoc</goal>
						</goals>
					</execution>
				</executions>
			</plugin>


			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>5.1.3</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>
						<Export-Package>org.apache.log4j.*;version=${project.version};-noimport:=true</Export-Package>
						<Import-Package>
							javax.mail.*;resolution:=optional,
							*
						</Import-Package>
						<Bundle-DocURL>http://logging.apache.org/log4j/1.2</Bundle-DocURL>
						<Eclipse-BuddyPolicy>registered</Eclipse-BuddyPolicy>
						<Bundle-RequiredExecutionEnvironment>J2SE-1.4</Bundle-RequiredExecutionEnvironment>
					</instructions>
				</configuration>
			</plugin>

		</plugins>
		<testSourceDirectory>tests/src/java</testSourceDirectory>
		<testResources>
			<testResource>
				<directory>tests/resources</directory>
			</testResource>
		</testResources>
	</build>

	<dependencies>
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4.3</version>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>javaee-api</artifactId>
			<version>5.0-2</version>
			<type>jar</type>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>oro</groupId>
			<artifactId>oro</artifactId>
			<version>2.0.8</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.13.2</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
</project>

