Skip to content

Commit 94e3b93

Browse files
committed
simplify poms, created 2 poms for the extra jars. (see readme.txt in trunk ), removed reporting except for checkstyle which only checks for license headers that are missing/different from the generic one. ('mvn site' will generate the report)
1 parent 73653e2 commit 94e3b93

7 files changed

+125
-190
lines changed

checkstyle-headercheck.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
3+
4+
<!--
5+
This configuration file was written by the eclipse-cs plugin configuration editor
6+
-->
7+
<!--
8+
Checkstyle-Configuration: Local Checkstyle Config
9+
Description: none
10+
-->
11+
<module name="Checker">
12+
<property name="severity" value="warning" />
13+
<module name="Header">
14+
<property name="headerFile" value="${checkstyle.header.file}" />
15+
<property name="ignoreLines" value="1,2,3,4,5,6,7" />
16+
<property name="fileExtensions" value="java" />
17+
</module>
18+
</module>

checkstyle-reasonable.xml

-116
This file was deleted.

itext-asian.pom

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.itextpdf</groupId>
6+
<artifactId>itext-asian</artifactId>
7+
<packaging>jar</packaging>
8+
<name>iText, a Free Java-PDF library</name>
9+
<version>5.0.7-SNAPSHOT</version>
10+
<description>iText, a free Java-PDF library</description>
11+
<!-- General Info -->
12+
<url>http://www.itextpdf.com/</url>
13+
<licenses>
14+
<license>
15+
<name>GNU Affero General Public License v3</name>
16+
<url>http://www.fsf.org/licensing/licenses/agpl-3.0.html</url>
17+
</license>
18+
</licenses>
19+
<scm>
20+
<connection>scm:svn:http://itext.svn.sourceforge.net/svnroot/itext/trunk/itext</connection>
21+
<url>http://itext.svn.sourceforge.net/viewvc/itext</url>
22+
</scm>
23+
24+
<!-- Build -->
25+
<build>
26+
<filters>
27+
</filters>
28+
<resources>
29+
<resource>
30+
<directory>src/main/resources</directory>
31+
<includes>
32+
<include>**/*.cmap</include>
33+
<include>**/*.properties</include>
34+
<include>**/cmap_info.txt</include>
35+
</includes>
36+
</resource>
37+
</resources>
38+
<sourceDirectory>src/main/resources</sourceDirectory>
39+
<testSourceDirectory>src/main/resources</testSourceDirectory>
40+
<finalName>itext-asian</finalName>
41+
</build>
42+
<!-- Profiles - default, release -->
43+
<properties>
44+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45+
</properties>
46+
47+
</project>

itext-asiancmaps.pom

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.itextpdf</groupId>
6+
<artifactId>itext-asiancmaps</artifactId>
7+
<packaging>jar</packaging>
8+
<name>iTextAsianCmaps</name>
9+
<version>5.0.7-SNAPSHOT</version>
10+
<description>iTextAsianCmaps for use in conjunction with iText, a free Java-PDF library</description>
11+
<!-- General Info -->
12+
<url>http://www.itextpdf.com/</url>
13+
<licenses>
14+
<license>
15+
<name>GNU Affero General Public License v3</name>
16+
<url>http://www.fsf.org/licensing/licenses/agpl-3.0.html</url>
17+
</license>
18+
</licenses>
19+
<scm>
20+
<connection>scm:svn:http://itext.svn.sourceforge.net/svnroot/itext/trunk/itext</connection>
21+
<url>http://itext.svn.sourceforge.net/viewvc/itext</url>
22+
</scm>
23+
24+
<!-- Build -->
25+
<build>
26+
<filters>
27+
</filters>
28+
<resources>
29+
<resource>
30+
<directory>src/main/resources</directory>
31+
<includes>
32+
<include>com/itextpdf/text/pdf/fonts/cmaps/**</include>
33+
</includes>
34+
</resource>
35+
</resources>
36+
<sourceDirectory>src/main/resources</sourceDirectory>
37+
<testSourceDirectory>src/main/resources</testSourceDirectory>
38+
<finalName>itext-asian</finalName>
39+
</build>
40+
<!-- Profiles - default, release -->
41+
<properties>
42+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43+
</properties>
44+
45+
</project>

license.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* $Id: license.txt 4645 2011-01-06 15:16:40Z redlab_b $
2+
* $Id: Anchor.java 4784 2011-03-15 08:33:00Z blowagie $
33
*
4-
* This file is part of the iText project.
5-
* Copyright (c) 1998-2009 1T3XT BVBA
4+
* This file is part of the iText (R) project.
5+
* Copyright (c) 1998-2011 1T3XT BVBA
66
* Authors: Bruno Lowagie, Paulo Soares, et al.
77
*
88
* This program is free software; you can redistribute it and/or modify
@@ -27,8 +27,8 @@
2727
* Section 5 of the GNU Affero General Public License.
2828
*
2929
* In accordance with Section 7(b) of the GNU Affero General Public License,
30-
* you must retain the producer line in every PDF that is created or manipulated
31-
* using iText.
30+
* a covered work must retain the producer line in every PDF that is created
31+
* or manipulated using iText.
3232
*
3333
* You can be released from the requirements of the license by purchasing
3434
* a commercial license. Buying such a license is mandatory as soon as you

pom.xml

+4-69
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4-
>
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
54
<modelVersion>4.0.0</modelVersion>
65
<groupId>com.itextpdf</groupId>
76
<artifactId>itextpdf</artifactId>
@@ -74,7 +73,7 @@
7473
<connection>scm:svn:http://itext.svn.sourceforge.net/svnroot/itext/trunk/itext</connection>
7574
<url>http://itext.svn.sourceforge.net/viewvc/itext</url>
7675
</scm>
77-
76+
7877
<!-- Build -->
7978
<build>
8079
<resources>
@@ -109,28 +108,9 @@
109108
</activation>
110109
</profile>
111110
<profile>
112-
<id>release</id>
111+
<id>all</id>
113112
<build>
114113
<plugins>
115-
<plugin>
116-
<groupId>org.apache.maven.plugins</groupId>
117-
<artifactId>maven-antrun-plugin</artifactId>
118-
<version>1.6</version>
119-
<executions>
120-
<execution>
121-
<phase>package</phase>
122-
<configuration>
123-
<target>
124-
<jar jarfile="target/iTextAsian.jar" basedir="src/main/resources" includes="**/*.cmap,**/*.properties,**/cmap_info.txt" />
125-
<jar jarfile="target/iTextAsianCmaps.jar" basedir="src/main/resources" includes="com/itextpdf/text/pdf/fonts/cmaps/**" />
126-
</target>
127-
</configuration>
128-
<goals>
129-
<goal>run</goal>
130-
</goals>
131-
</execution>
132-
</executions>
133-
</plugin>
134114
<plugin>
135115
<groupId>org.apache.maven.plugins</groupId>
136116
<artifactId>maven-javadoc-plugin</artifactId>
@@ -178,65 +158,20 @@
178158
<scope>test</scope>
179159
</dependency>
180160
</dependencies>
181-
<!-- Reporting -->
182161
<reporting>
183162
<plugins>
184-
<plugin>
185-
<groupId>org.codehaus.mojo</groupId>
186-
<artifactId>cobertura-maven-plugin</artifactId>
187-
<version>2.4</version>
188-
<configuration>
189-
<formats>
190-
<format>html</format>
191-
<format>xml</format>
192-
</formats>
193-
</configuration>
194-
</plugin>
195-
<plugin>
196-
<groupId>org.codehaus.mojo</groupId>
197-
<artifactId>findbugs-maven-plugin</artifactId>
198-
<version>2.0.1</version>
199-
<configuration>
200-
<findbugsXmlOutput>true</findbugsXmlOutput>
201-
<!-- Optional directory to put findbugs xml report <findbugsXmlOutputDirectory>target/site</findbugsXmlOutputDirectory> -->
202-
</configuration>
203-
</plugin>
204-
<plugin>
205-
<groupId>org.apache.maven.plugins</groupId>
206-
<artifactId>maven-pmd-plugin</artifactId>
207-
<version>2.5</version>
208-
<configuration>
209-
<linkXref>true</linkXref>
210-
<sourceEncoding>utf-8</sourceEncoding>
211-
<minimumTokens>100</minimumTokens>
212-
<targetJdk>1.5</targetJdk>
213-
<excludes>
214-
<exclude>**/*Bean.java</exclude>
215-
<exclude>**/generated/*.java</exclude>
216-
</excludes>
217-
<excludeRoots>
218-
<excludeRoot>target/generated-sources/stubs</excludeRoot>
219-
</excludeRoots>
220-
</configuration>
221-
</plugin>
222163
<plugin>
223164
<groupId>org.apache.maven.plugins</groupId>
224165
<artifactId>maven-checkstyle-plugin</artifactId>
225166
<version>2.6</version>
226167
<configuration>
227-
<configLocation>checkstyle-reasonable.xml</configLocation>
168+
<configLocation>checkstyle-headercheck.xml</configLocation>
228169
</configuration>
229170
</plugin>
230-
<plugin>
231-
<groupId>org.apache.maven.plugins</groupId>
232-
<artifactId>maven-javadoc-plugin</artifactId>
233-
<version>2.7</version>
234-
</plugin>
235171
</plugins>
236172
</reporting>
237173
<properties>
238174
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
239175
<checkstyle.header.file>license.txt</checkstyle.header.file>
240176
</properties>
241-
242177
</project>

readme.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To build iText, maven must be installed. ( http://maven.apache.org/ )
2+
Running install without a profile will generate the itextpdf jar. (mvn install)
3+
When using the profile 'all' also the source and javadoc jars will be generated.( mvn install -P all )
4+
If you are in need of the asian font jars. You can run one of the following commands:
5+
mvn clean install -f itext-asian.pom
6+
mvn clean install -f itext-asiancmaps.pom

0 commit comments

Comments
 (0)