|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
3 |
| - <modelVersion>4.0.0</modelVersion> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
4 | 4 |
|
5 |
| - <parent> |
6 |
| - <groupId>org.locationtech.udig</groupId> |
7 |
| - <artifactId>pom-libs.parent</artifactId> |
8 |
| - <version>0.0.2</version> |
9 |
| - <relativePath>../../pom-libs.xml</relativePath> |
10 |
| - </parent> |
| 5 | + <parent> |
| 6 | + <groupId>org.locationtech.udig</groupId> |
| 7 | + <artifactId>pom-libs.parent</artifactId> |
| 8 | + <version>0.0.2</version> |
| 9 | + <relativePath>../../pom-libs.xml</relativePath> |
| 10 | + </parent> |
11 | 11 |
|
12 |
| - <!-- This script was created to automagically download the external libs |
| 12 | + <!-- This script was created to automagically download the external libs |
13 | 13 | required for this plugin to build and export correctly.
|
14 | 14 |
|
15 | 15 | To download the required libraries, use:
|
|
20 | 20 | - refresh this project in Eclipse;
|
21 | 21 | - verify the classpath (Manfiest Runtime tab) references the libs
|
22 | 22 | - ensure the lib versions in the classpath are also correct. -->
|
23 |
| - |
24 |
| - <artifactId>pom-libs.download.net.sf.opencsv</artifactId> |
25 |
| - <name>OpenCSV Download</name> |
26 |
| - |
27 |
| - <packaging>pom</packaging> |
28 | 23 |
|
29 |
| - <properties> |
30 |
| - <lib.dir>${basedir}/lib</lib.dir> |
31 |
| - <lib.source.dir>${basedir}/lib-src</lib.source.dir> |
32 |
| - </properties> |
| 24 | + <artifactId>pom-libs.download.net.sf.opencsv</artifactId> |
33 | 25 |
|
34 |
| - <developers> |
35 |
| - <developer> |
36 |
| - <id>Sev</id> |
37 |
| - <name>Severin</name> |
38 |
| - <email>djseverin@gmail.com</email> |
39 |
| - <roles> |
40 |
| - <role>developer</role> |
41 |
| - </roles> |
42 |
| - <timezone>+10</timezone> |
43 |
| - </developer> |
44 |
| - <developer> |
45 |
| - <id>fgdrf</id> |
46 |
| - <name>Frank Gasdorf</name> |
47 |
| - <email>fgdrf@users.sourceforge.net</email> |
48 |
| - <roles> |
49 |
| - <role>developer</role> |
50 |
| - </roles> |
51 |
| - <timezone>+1</timezone> |
52 |
| - </developer> |
53 |
| - </developers> |
| 26 | + <packaging>pom</packaging> |
| 27 | + <name>OpenCSV Download</name> |
54 | 28 |
|
55 |
| - <dependencies> |
56 |
| - <!-- OpenCSV Downloads --> |
57 |
| - <dependency> |
58 |
| - <groupId>net.sf.opencsv</groupId> |
59 |
| - <artifactId>opencsv</artifactId> |
60 |
| - <version>2.3</version> |
61 |
| - </dependency> |
62 |
| - </dependencies> |
| 29 | + <developers> |
| 30 | + <developer> |
| 31 | + <id>Sev</id> |
| 32 | + <name>Severin</name> |
| 33 | + <email>djseverin@gmail.com</email> |
| 34 | + <roles> |
| 35 | + <role>developer</role> |
| 36 | + </roles> |
| 37 | + <timezone>+10</timezone> |
| 38 | + </developer> |
| 39 | + <developer> |
| 40 | + <id>fgdrf</id> |
| 41 | + <name>Frank Gasdorf</name> |
| 42 | + <email>fgdrf@users.sourceforge.net</email> |
| 43 | + <roles> |
| 44 | + <role>developer</role> |
| 45 | + </roles> |
| 46 | + <timezone>+1</timezone> |
| 47 | + </developer> |
| 48 | + </developers> |
| 49 | + |
| 50 | + <properties> |
| 51 | + <lib.dir>${basedir}/lib</lib.dir> |
| 52 | + <lib.source.dir>${basedir}/lib-src</lib.source.dir> |
| 53 | + </properties> |
| 54 | + |
| 55 | + <dependencies> |
| 56 | + <!-- OpenCSV Downloads --> |
| 57 | + <dependency> |
| 58 | + <groupId>net.sf.opencsv</groupId> |
| 59 | + <artifactId>opencsv</artifactId> |
| 60 | + <version>2.3</version> |
| 61 | + </dependency> |
| 62 | + </dependencies> |
| 63 | + |
| 64 | + <build> |
| 65 | + <plugins> |
| 66 | + <plugin> |
| 67 | + <groupId>org.apache.maven.plugins</groupId> |
| 68 | + <artifactId>maven-clean-plugin</artifactId> |
| 69 | + <configuration> |
| 70 | + <filesets> |
| 71 | + <fileset> |
| 72 | + <directory>${lib.dir}</directory> |
| 73 | + <includes> |
| 74 | + <include>*.*</include> |
| 75 | + </includes> |
| 76 | + <followSymlinks>false</followSymlinks> |
| 77 | + </fileset> |
| 78 | + <fileset> |
| 79 | + <directory>${lib.source.dir}</directory> |
| 80 | + <includes> |
| 81 | + <include>*.*</include> |
| 82 | + </includes> |
| 83 | + <followSymlinks>false</followSymlinks> |
| 84 | + </fileset> |
| 85 | + </filesets> |
| 86 | + </configuration> |
| 87 | + </plugin> |
| 88 | + |
| 89 | + <plugin> |
| 90 | + <groupId>org.apache.maven.plugins</groupId> |
| 91 | + <artifactId>maven-dependency-plugin</artifactId> |
| 92 | + <executions> |
| 93 | + <execution> |
| 94 | + <id>copy-dependencies</id> |
| 95 | + <phase>validate</phase> |
| 96 | + <goals> |
| 97 | + <goal>copy-dependencies</goal> |
| 98 | + </goals> |
| 99 | + <configuration> |
| 100 | + <outputDirectory>${lib.dir}</outputDirectory> |
| 101 | + <overWriteReleases>false</overWriteReleases> |
| 102 | + <overWriteSnapshots>false</overWriteSnapshots> |
| 103 | + <overWriteIfNewer>true</overWriteIfNewer> |
| 104 | + <excludeScope>provided</excludeScope> |
| 105 | + </configuration> |
| 106 | + </execution> |
| 107 | + <execution> |
| 108 | + <id>copy-dependencies-sources</id> |
| 109 | + <phase>validate</phase> |
| 110 | + <goals> |
| 111 | + <goal>copy-dependencies</goal> |
| 112 | + </goals> |
| 113 | + <configuration> |
| 114 | + <classifier>sources</classifier> |
| 115 | + <outputDirectory>${lib.source.dir}</outputDirectory> |
| 116 | + <overWriteReleases>false</overWriteReleases> |
| 117 | + <overWriteSnapshots>false</overWriteSnapshots> |
| 118 | + <overWriteIfNewer>true</overWriteIfNewer> |
| 119 | + <excludeScope>provided</excludeScope> |
| 120 | + <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact> |
| 121 | + </configuration> |
| 122 | + </execution> |
| 123 | + </executions> |
| 124 | + </plugin> |
| 125 | + |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-antrun-plugin</artifactId> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>remove-lib-timestamp</id> |
| 132 | + <phase>compile</phase> |
| 133 | + <goals> |
| 134 | + <goal>run</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <target> |
| 138 | + <macrodef name="remove-lib-timestamp"> |
| 139 | + <attribute name="lib-dir"></attribute> |
| 140 | + <sequential> |
| 141 | + <move includeemptydirs="false" todir="@{lib-dir}"> |
| 142 | + <fileset dir="@{lib-dir}"> |
| 143 | + <include name="**/*.jar"></include> |
| 144 | + </fileset> |
| 145 | + <!-- YYYYMMDD.HHIISS-increment --> |
| 146 | + <regexpmapper from="(.*?)-([\\\d]{8}(\.[\\\d]{6})?-[\\\d]+)((-sources)?\.jar)$$" handledirsep="yes" to="\1-SNAPSHOT\4"></regexpmapper> |
| 147 | + </move> |
| 148 | + </sequential> |
| 149 | + </macrodef> |
| 150 | + |
| 151 | + <remove-lib-timestamp lib-dir="${lib.dir}"></remove-lib-timestamp> |
| 152 | + <remove-lib-timestamp lib-dir="${lib.source.dir}"></remove-lib-timestamp> |
| 153 | + </target> |
| 154 | + </configuration> |
| 155 | + </execution> |
| 156 | + </executions> |
| 157 | + </plugin> |
| 158 | + </plugins> |
| 159 | + </build> |
63 | 160 |
|
64 |
| - <build> |
65 |
| - <plugins> |
66 |
| - <plugin> |
67 |
| - <groupId>org.apache.maven.plugins</groupId> |
68 |
| - <artifactId>maven-clean-plugin</artifactId> |
69 |
| - <configuration> |
70 |
| - <filesets> |
71 |
| - <fileset> |
72 |
| - <directory>${lib.dir}</directory> |
73 |
| - <includes> |
74 |
| - <include>*.*</include> |
75 |
| - </includes> |
76 |
| - <followSymlinks>false</followSymlinks> |
77 |
| - </fileset> |
78 |
| - <fileset> |
79 |
| - <directory>${lib.source.dir}</directory> |
80 |
| - <includes> |
81 |
| - <include>*.*</include> |
82 |
| - </includes> |
83 |
| - <followSymlinks>false</followSymlinks> |
84 |
| - </fileset> |
85 |
| - </filesets> |
86 |
| - </configuration> |
87 |
| - </plugin> |
88 |
| - |
89 |
| - <plugin> |
90 |
| - <groupId>org.apache.maven.plugins</groupId> |
91 |
| - <artifactId>maven-dependency-plugin</artifactId> |
92 |
| - <executions> |
93 |
| - <execution> |
94 |
| - <id>copy-dependencies</id> |
95 |
| - <phase>validate</phase> |
96 |
| - <goals> |
97 |
| - <goal>copy-dependencies</goal> |
98 |
| - </goals> |
99 |
| - <configuration> |
100 |
| - <outputDirectory>${lib.dir}</outputDirectory> |
101 |
| - <overWriteReleases>false</overWriteReleases> |
102 |
| - <overWriteSnapshots>false</overWriteSnapshots> |
103 |
| - <overWriteIfNewer>true</overWriteIfNewer> |
104 |
| - <excludeScope>provided</excludeScope> |
105 |
| - </configuration> |
106 |
| - </execution> |
107 |
| - <execution> |
108 |
| - <id>copy-dependencies-sources</id> |
109 |
| - <phase>validate</phase> |
110 |
| - <goals> |
111 |
| - <goal>copy-dependencies</goal> |
112 |
| - </goals> |
113 |
| - <configuration> |
114 |
| - <classifier>sources</classifier> |
115 |
| - <outputDirectory>${lib.source.dir}</outputDirectory> |
116 |
| - <overWriteReleases>false</overWriteReleases> |
117 |
| - <overWriteSnapshots>false</overWriteSnapshots> |
118 |
| - <overWriteIfNewer>true</overWriteIfNewer> |
119 |
| - <excludeScope>provided</excludeScope> |
120 |
| - <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact> |
121 |
| - </configuration> |
122 |
| - </execution> |
123 |
| - </executions> |
124 |
| - </plugin> |
125 |
| - |
126 |
| - <plugin> |
127 |
| - <groupId>org.apache.maven.plugins</groupId> |
128 |
| - <artifactId>maven-antrun-plugin</artifactId> |
129 |
| - <executions> |
130 |
| - <execution> |
131 |
| - <id>remove-lib-timestamp</id> |
132 |
| - <phase>compile</phase> |
133 |
| - <configuration> |
134 |
| - <target> |
135 |
| - <macrodef name="remove-lib-timestamp"> |
136 |
| - <attribute name="lib-dir"/> |
137 |
| - <sequential> |
138 |
| - <move todir="@{lib-dir}" includeemptydirs="false"> |
139 |
| - <fileset dir="@{lib-dir}"> |
140 |
| - <include name="**/*.jar"/> |
141 |
| - </fileset> |
142 |
| - <!-- YYYYMMDD.HHIISS-increment --> |
143 |
| - <regexpmapper handledirsep="yes" |
144 |
| - from="(.*?)-([\\\d]{8}(\.[\\\d]{6})?-[\\\d]+)((-sources)?\.jar)$$" |
145 |
| - to="\1-SNAPSHOT\4"/> |
146 |
| - </move> |
147 |
| - </sequential> |
148 |
| - </macrodef> |
149 |
| - |
150 |
| - <remove-lib-timestamp lib-dir="${lib.dir}"/> |
151 |
| - <remove-lib-timestamp lib-dir="${lib.source.dir}"/> |
152 |
| - </target> |
153 |
| - </configuration> |
154 |
| - <goals> |
155 |
| - <goal>run</goal> |
156 |
| - </goals> |
157 |
| - </execution> |
158 |
| - </executions> |
159 |
| - </plugin> |
160 |
| - </plugins> |
161 |
| - </build> |
162 |
| - |
163 | 161 | </project>
|
0 commit comments