POM文件内容: |
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ini4j</groupId>
<artifactId>ini4j</artifactId>
<version>0.5.0</version>
<name>ini4j</name>
<description>Java API for handling configuration files in Windows .ini format. The library includes its own Map based API, Java Preferences API and Java Beans API for handling .ini files. Additionally, the library includes a feature rich (variable/macro substitution, multiply property values, etc) java.util.Properties replacement.</description>
<packaging>jar</packaging>
<url>http://www.ini4j.org</url>
<scm>
<connection>scm:svn:https://ini4j.svn.sourceforge.net/svnroot/ini4j/tags/ini4j-0.5.0</connection>
<developerConnection>scm:svn:https://ini4j.svn.sourceforge.net/svnroot/ini4j/tags/ini4j-0.5.0</developerConnection>
</scm>
<distributionManagement>
<repository>
<id>ini4j-release</id>
<name>[ini4j] releases on SourceForge</name>
<url>scp://shell.sourceforge.net/home/groups/i/in/ini4j/repository/release</url>
</repository>
<snapshotRepository>
<id>ini4j-snapshot</id>
<name>[ini4j] snapshots on SourceForge</name>
<url>scp://shell.sourceforge.net/home/groups/i/in/ini4j/repository/snapshot</url>
</snapshotRepository>
<site>
<id>ini4j-site</id>
<name>[ini4j] site on SourceForge</name>
<url>scp://shell.sourceforge.net/home/groups/i/in/ini4j/htdocs</url>
</site>
</distributionManagement>
<issueManagement>
<system>sourceforge</system>
<url>http://sourceforge.net/tracker2/?group_id=129580</url>
</issueManagement>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ivan</id>
<name>Ivan Szkiba</name>
<email>szkiba at SourceForge</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>-1</timezone>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jetty</groupId>
<artifactId>jetty</artifactId>
<version>4.2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>2.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>2.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<upload.url>scp://shell.sourceforge.net/incoming/s/sz/szkiba/uploads</upload.url>
</properties>
<profiles>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>os.family</name>
<value>windows</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release-candidate</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
<failOnViolation>true</failOnViolation>
<consoleOutput>true</consoleOutput>
<encoding>UTF-8</encoding>
<skip>${check.skip}</skip>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<dependencies>
<dependency>
<groupId>pmd</groupId>
<artifactId>pmd-jdk14</artifactId>
<version>4.2.5</version>
</dependency>
</dependencies>
<configuration>
<failOnViolation>true</failOnViolation>
<rulesets>
<ruleset>${basedir}/src/conf/pmd.xml</ruleset>
</rulesets>
<skip>${check.skip}</skip>
<verbose>true</verbose>
<sourceEncoding>UTF-8</sourceEncoding>
<targetJdk>1.5</targetJdk>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
<!-- <goal>cpd-check</goal> -->
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>retrotranslator-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>translate-project</goal>
</goals>
<configuration>
<classifier>jdk14</classifier>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<templateDirectory>src/changes</templateDirectory>
<templateEncoding>UTF-8</templateEncoding>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
<executions>
<execution>
<id>releasenotes</id>
<goals>
<goal>announcement-generate</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<template>ReleaseNotes.vm</template>
</configuration>
</execution>
<execution>
<id>changelog</id>
<goals>
<goal>announcement-generate</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<template>ChangeLog.vm</template>
</configuration>
</execution>
<execution>
<id>sitemap-create</id>
<goals>
<goal>announcement-generate</goal>
</goals>
<phase>pre-site</phase>
<configuration>
<template>sitemap.vm</template>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>sitemap-copy</id>
<goals>
<goal>run</goal>
</goals>
<phase>pre-site</phase>
<configuration>
<tasks>
<property name="dir" value="${basedir}/target/generated-site/resources" />
<mkdir dir="${dir}" />
<copy file="target/sitemap.vm" tofile="${dir}/sitemap.xml" />
<gzip src="${dir}/sitemap.xml" destfile="${dir}/sitemap.xml.gz" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
<compilerArgument>-Xlint</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>java.util.prefs.PreferencesFactory</name>
<value>org.ini4j.IniPreferencesFactory</value>
</property>
<property>
<name>org.ini4j.prefs.user</name>
<value>org/ini4j/sample/dwarfs.ini</value>
</property>
<property>
<name>org.ini4j.prefs.system</name>
<value>org/ini4j/sample/dwarfs.ini</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>zip</id>
<phase>deploy</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
<descriptor>src/main/assembly/bin.xml</descriptor>
<descriptor>src/main/assembly/all.xml</descriptor>
</descriptors>
<attach>false</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<executions>
<execution>
<id>upload</id>
<goals>
<goal>upload</goal>
</goals>
<phase>deploy</phase>
<configuration>
<serverId>ini4j-upload</serverId>
<fromDir>${project.build.directory}</fromDir>
<includes>${project.build.finalName}-src*,${project.build.finalName}-bin*,${project.build.finalName}-all*</includes>
<url>${upload.url}</url>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0</version>
<configuration>
<generatedSiteDirectory>${basedir}/target/generated-site</generatedSiteDirectory>
</configuration>
</plugin>
<plugin>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.4.0</version>
<inherited>true</inherited>
<configuration>
<aggregate>true</aggregate>
<encoding>UTF-8</encoding>
<useDefaultExcludes>true</useDefaultExcludes>
<header>NOTICE.txt</header>
<excludes>
<exclude>**/META-INF/services/**</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.apt</exclude>
<exclude>**/*.reg</exclude>
<exclude>**/.htaccess</exclude>
</excludes>
<mapping>
<java>SLASHSTAR_STYLE</java>
<css>SLASHSTAR_STYLE</css>
<js>SLASHSTAR_STYLE</js>
<ini>SEMICOLON_STYLE</ini>
<opt>SCRIPT_STYLE</opt>
</mapping>
<useDefaultMapping>true</useDefaultMapping>
</configuration>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<testResources>
<testResource>
<directory>src/test/java</directory>
<includes>
<include>**/*.ini</include>
<include>**/*.opt</include>
<include>**/*.reg</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<configuration>
<inputEncoding>UTF-8</inputEncoding>
<linkJavadoc>true</linkJavadoc>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<charset>UTF-8</charset>
<encoding>ISO-8859-1</encoding>
<quiet>true</quiet>
<noqualifier>java.*</noqualifier>
<links>
<link>http://java.sun.com/javase/6/docs/api/</link>
</links>
<keywords>true</keywords>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<tags>
<tag>TODO</tag>
<tag>FIXME</tag>
<tag>XXX</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<configuration>
<templateEncoding>UTF-8</templateEncoding>
<issueLinkTemplate>http://sourceforge.net/tracker2/?func=detail&atid=715133&group_id=129580&aid=%ISSUE%</issueLinkTemplate>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>changes-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>summary</report>
<report>issue-tracking</report>
<report>license</report>
<report>project-team</report>
<report>dependencies</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>
|