@@ -15,8 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515See the License for the specific language governing permissions and
1616limitations under the License.
1717-->
18- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
19- xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
18+ <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" >
2019 <modelVersion >4.0.0</modelVersion >
2120 <parent >
2221 <groupId >org.apache.commons</groupId >
@@ -25,7 +24,7 @@ limitations under the License.
2524 </parent >
2625 <groupId >org.apache.commons</groupId >
2726 <artifactId >commons-csv</artifactId >
28- <version >1.0 -SNAPSHOT</version >
27+ <version >1.1 -SNAPSHOT</version >
2928 <name >Apache Commons CSV</name >
3029 <url >http://commons.apache.org/proper/commons-csv/</url >
3130 <description >
@@ -43,15 +42,13 @@ CSV files of various types.
4342 <dependency >
4443 <groupId >commons-io</groupId >
4544 <artifactId >commons-io</artifactId >
46- <!-- 2.2 is last version compatible with Java 1.5 -->
47- <version >2.2</version >
45+ <version >2.4</version >
4846 <scope >test</scope >
4947 </dependency >
5048 <dependency >
5149 <groupId >com.h2database</groupId >
5250 <artifactId >h2</artifactId >
53- <!-- 1.3.172 requires Java 1.6 -->
54- <version >1.3.168</version >
51+ <version >1.4.181</version >
5552 <scope >test</scope >
5653 </dependency >
5754 </dependencies >
@@ -96,9 +93,9 @@ CSV files of various types.
9693 </contributors >
9794
9895 <scm >
99- <connection >scm:svn:http://svn.apache.org/repos/asf/commons/proper/csv/trunk </connection >
100- <developerConnection >scm:svn:https://svn.apache.org/repos/asf/commons/proper/csv/trunk </developerConnection >
101- <url >http://svn.apache.org/viewvc/commons/proper/csv/trunk </url >
96+ <connection >scm:svn:http://svn.apache.org/repos/asf/commons/proper/csv/tags/CSV_1.0 </connection >
97+ <developerConnection >scm:svn:https://svn.apache.org/repos/asf/commons/proper/csv/tags/CSV_1.0 </developerConnection >
98+ <url >http://svn.apache.org/viewvc/commons/proper/csv/tags/CSV_1.0 </url >
10299 </scm >
103100
104101 <issueManagement >
@@ -109,13 +106,14 @@ CSV files of various types.
109106 <distributionManagement >
110107 <site >
111108 <id >apache.website</id >
112- <name >Apache Website </name >
113- <url >${commons.deployment.protocol} ://people .apache.org/www/ commons.apache.org/ csv/</url >
109+ <name >Apache Commons Site </name >
110+ <url >scm:svn:https://svn .apache.org/repos/infra/websites/production/ commons/content/proper/commons- csv/</url >
114111 </site >
115112 </distributionManagement >
116113
117114 <properties >
118115 <commons .release.version>1.0</commons .release.version>
116+ <commons .release.desc>(Java 6.0+)</commons .release.desc>
119117 <!-- The RC version used in the staging repository URL. -->
120118 <commons .rc.version>RC1</commons .rc.version>
121119 <commons .componentid>csv</commons .componentid>
@@ -130,6 +128,10 @@ CSV files of various types.
130128
131129 <checkstyle .version>2.12.1</checkstyle .version>
132130 <checkstyle .header.file>${basedir} /LICENSE-header.txt</checkstyle .header.file>
131+
132+ <!-- Override jacoco version from commons parent 34, since it doesn't work with Java 8.
133+ Remove this after commons parent 35 has been released. -->
134+ <commons .jacoco.version>0.7.1.201405082137</commons .jacoco.version>
133135 </properties >
134136
135137 <build >
@@ -164,6 +166,30 @@ CSV files of various types.
164166 <headerLocation >${checkstyle.header.file} </headerLocation >
165167 </configuration >
166168 </plugin >
169+
170+ <!-- We need to add our test data files to rat exclusions -->
171+ <!-- Needed for command-line access, e.g mvn apache-rat:rat and mvn apache-rat:check -->
172+ <plugin >
173+ <groupId >org.apache.rat</groupId >
174+ <artifactId >apache-rat-plugin</artifactId >
175+ <version >${commons.rat.version} </version >
176+ <!-- Should agree with config in reporting section -->
177+ <configuration >
178+ <excludes >
179+ <exclude >src/test/resources/CSVFileParser/bom.csv</exclude >
180+ <exclude >src/test/resources/CSVFileParser/test.csv</exclude >
181+ <exclude >src/test/resources/CSVFileParser/test_default.txt</exclude >
182+ <exclude >src/test/resources/CSVFileParser/test_default_comment.txt</exclude >
183+ <exclude >src/test/resources/CSVFileParser/test_rfc4180.txt</exclude >
184+ <exclude >src/test/resources/CSVFileParser/test_rfc4180_trim.txt</exclude >
185+ <exclude >src/test/resources/CSVFileParser/testCSV85.csv</exclude >
186+ <exclude >src/test/resources/CSVFileParser/testCSV85_default.txt</exclude >
187+ <exclude >src/test/resources/CSVFileParser/testCSV85_ignoreEmpty.txt</exclude >
188+ <exclude >src/test/resources/ferc.gov/contract.txt</exclude >
189+ <exclude >src/test/resources/ferc.gov/transaction.txt</exclude >
190+ </excludes >
191+ </configuration >
192+ </plugin >
167193 </plugins >
168194 </build >
169195
@@ -191,15 +217,15 @@ CSV files of various types.
191217 <plugin >
192218 <groupId >org.apache.maven.plugins</groupId >
193219 <artifactId >maven-pmd-plugin</artifactId >
194- <version >3.1 </version >
220+ <version >3.2 </version >
195221 <configuration >
196222 <targetJdk >${maven.compiler.target} </targetJdk >
197223 </configuration >
198224 </plugin >
199225 <plugin >
200226 <groupId >org.codehaus.mojo</groupId >
201227 <artifactId >findbugs-maven-plugin</artifactId >
202- <version >2.5.4 </version >
228+ <version >3.0.0 </version >
203229 </plugin >
204230 <plugin >
205231 <groupId >org.codehaus.mojo</groupId >
@@ -255,7 +281,77 @@ CSV files of various types.
255281 <artifactId >javancss-maven-plugin</artifactId >
256282 <version >2.0</version >
257283 </plugin >
284+
285+ <!-- We need to add our test data files to rat exclusions -->
286+ <plugin >
287+ <groupId >org.apache.rat</groupId >
288+ <artifactId >apache-rat-plugin</artifactId >
289+ <version >${commons.rat.version} </version >
290+ <!-- Should agree with config in build section -->
291+ <configuration >
292+ <excludes >
293+ <exclude >src/test/resources/CSVFileParser/bom.csv</exclude >
294+ <exclude >src/test/resources/CSVFileParser/test.csv</exclude >
295+ <exclude >src/test/resources/CSVFileParser/test_default.txt</exclude >
296+ <exclude >src/test/resources/CSVFileParser/test_default_comment.txt</exclude >
297+ <exclude >src/test/resources/CSVFileParser/test_rfc4180.txt</exclude >
298+ <exclude >src/test/resources/CSVFileParser/test_rfc4180_trim.txt</exclude >
299+ <exclude >src/test/resources/CSVFileParser/testCSV85.csv</exclude >
300+ <exclude >src/test/resources/CSVFileParser/testCSV85_default.txt</exclude >
301+ <exclude >src/test/resources/CSVFileParser/testCSV85_ignoreEmpty.txt</exclude >
302+ <exclude >src/test/resources/ferc.gov/contract.txt</exclude >
303+ <exclude >src/test/resources/ferc.gov/transaction.txt</exclude >
304+ </excludes >
305+ </configuration >
306+ </plugin >
258307 </plugins >
259308 </reporting >
260309
310+ <profiles >
311+ <profile >
312+ <id >setup-checkout</id >
313+ <activation >
314+ <file >
315+ <missing >site-content</missing >
316+ </file >
317+ </activation >
318+ <build >
319+ <plugins >
320+ <plugin >
321+ <groupId >org.apache.maven.plugins</groupId >
322+ <artifactId >maven-antrun-plugin</artifactId >
323+ <version >1.7</version >
324+ <executions >
325+ <execution >
326+ <id >prepare-checkout</id >
327+ <phase >pre-site</phase >
328+ <goals >
329+ <goal >run</goal >
330+ </goals >
331+ <configuration >
332+ <tasks >
333+ <exec executable =" svn" >
334+ <arg line =" checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
335+ </exec >
336+
337+ <exec executable =" svn" >
338+ <arg line =" update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
339+ </exec >
340+
341+ <pathconvert pathsep =" " property =" dirs" >
342+ <dirset dir =" ${commons.scmPubCheckoutDirectory}" includes =" *" />
343+ </pathconvert >
344+ <exec executable =" svn" >
345+ <arg line =" update --set-depth infinity ${dirs}" />
346+ </exec >
347+ </tasks >
348+ </configuration >
349+ </execution >
350+ </executions >
351+ </plugin >
352+ </plugins >
353+ </build >
354+ </profile >
355+ </profiles >
356+
261357</project >
0 commit comments