Merge pull request #39 from davebenson/javadoc-fixes
[lwes-java/github-mirror.git] / pom.xml
blob2eb7eb30d6b47cee3ffa1ad1c07553d8da4f8e10
1 <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">
2   <modelVersion>4.0.0</modelVersion>
3   <groupId>org.lwes</groupId>
4   <artifactId>lwes-java</artifactId>
5   <packaging>jar</packaging>
6   <version>2.2.1</version>
7   <name>lwes-java</name>
8   <description>Lightweight event system, java implementation</description>
9   <url>http://lwes.org</url>
10   <organization>
11     <name>LWES</name>
12   </organization>
14   <licenses>
15     <license>
16       <name>BSD</name>
17       <url>https://github.com/lwes/lwes-java/blob/master/LICENSE</url>
18       <distribution>repo</distribution>
19     </license>
20   </licenses>
22   <properties>
23     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24     <lwes.java.home>/usr/share/lwes-java</lwes.java.home>
25   </properties>
27   <scm>
28     <connection>scm:git:git@github.com:lwes/lwes-java.git</connection>
29     <developerConnection>scm:git:git@github.com:lwes/lwes-java.git</developerConnection>
30     <url>https://github.com/lwes/lwes-java</url>
31   </scm>
33   <developers>
34     <developer>
35       <id>lwes-team</id>
36       <name>LWES Development Team</name>
37       <email>lwes-devel@sourceforge.net</email>
38     </developer>
39   </developers>
41   <dependencies>
42     <dependency>
43       <groupId>junit</groupId>
44       <artifactId>junit</artifactId>
45       <version>4.4</version>
46       <scope>test</scope>
47     </dependency>
48     <dependency>
49       <groupId>commons-codec</groupId>
50       <artifactId>commons-codec</artifactId>
51       <version>1.3</version>
52       <scope>test</scope>
53     </dependency>
54     <dependency>
55       <groupId>commons-logging</groupId>
56       <artifactId>commons-logging</artifactId>
57       <version>1.1.1</version>
58     </dependency>
59     <dependency>
60       <groupId>net.java.dev.javacc</groupId>
61       <artifactId>javacc</artifactId>
62       <version>7.0.0</version>
63       <scope>compile</scope>
64     </dependency>
65     <dependency>
66       <groupId>args4j</groupId>
67       <artifactId>args4j</artifactId>
68       <version>2.0.16</version>
69     </dependency>
70     <dependency>
71       <groupId>org.apache.commons</groupId>
72       <artifactId>commons-lang3</artifactId>
73       <version>3.1</version>
74     </dependency>
75     <dependency>
76       <groupId>log4j</groupId>
77       <artifactId>log4j</artifactId>
78       <version>1.2.15</version>
79       <exclusions>
80         <exclusion>
81           <groupId>com.sun.jmx</groupId>
82           <artifactId>jmxri</artifactId>
83         </exclusion>
84         <exclusion>
85           <groupId>com.sun.jdmk</groupId>
86           <artifactId>jmxtools</artifactId>
87         </exclusion>
88         <exclusion>
89           <groupId>javax.jms</groupId>
90           <artifactId>jms</artifactId>
91         </exclusion>
92         <exclusion>
93           <groupId>javax.mail</groupId>
94           <artifactId>mail</artifactId>
95         </exclusion>
96         <exclusion>
97           <groupId>javax.activation</groupId>
98           <artifactId>activation</artifactId>
99         </exclusion>
100       </exclusions>
101     </dependency>
102   </dependencies>
104   <distributionManagement>
105     <snapshotRepository>
106       <id>ossrh</id>
107       <url>https://oss.sonatype.org/content/repositories/snapshots</url>
108     </snapshotRepository>
109   </distributionManagement>
111   <build>
112     <resources>
113       <resource>
114         <directory>src/main/resources</directory>
115         <filtering>true</filtering>
116       </resource>
117     </resources>
118     <plugins>
119       <plugin>
120         <artifactId>maven-assembly-plugin</artifactId>
121         <version>2.3</version>
122         <configuration>
123           <descriptors>
124             <descriptor>src/main/assembly/dist.xml</descriptor>
125           </descriptors>
126         </configuration>
127       </plugin>
128       <plugin>
129         <groupId>org.codehaus.mojo</groupId>
130         <artifactId>javacc-maven-plugin</artifactId>
131         <version>2.6</version>
132         <executions>
133           <execution>
134             <id>javacc</id>
135             <goals>
136               <goal>javacc</goal>
137             </goals>
138             <configuration/>
139           </execution>
140         </executions>
141       </plugin>
142       <plugin>
143         <groupId>org.apache.maven.plugins</groupId>
144         <artifactId>maven-resources-plugin</artifactId>
145         <version>2.5</version>
146         <configuration>
147           <encoding>UTF-8</encoding>
148         </configuration>
149       </plugin>
150       <plugin>
151         <groupId>org.apache.maven.plugins</groupId>
152         <artifactId>maven-jar-plugin</artifactId>
153         <version>2.4</version>
154         <configuration>
155           <excludes>
156             <exclude>*.xml</exclude>
157           </excludes>
158         </configuration>
159       </plugin>
160       <plugin>
161         <artifactId>maven-compiler-plugin</artifactId>
162         <version>2.3.2</version>
163         <configuration>
164           <source>1.5</source>
165           <target>1.5</target>
166         </configuration>
167       </plugin>
168       <plugin>
169         <artifactId>maven-surefire-plugin</artifactId>
170         <version>2.3</version>
171       </plugin>
172       <plugin>
173         <groupId>org.apache.maven.plugins</groupId>
174         <artifactId>maven-shade-plugin</artifactId>
175         <version>2.0</version>
176         <executions>
177           <execution>
178             <phase>package</phase>
179             <goals>
180               <goal>shade</goal>
181             </goals>
182             <configuration>
183               <shadedArtifactAttached>true</shadedArtifactAttached>
184               <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
185             </configuration>
186           </execution>
187         </executions>
188       </plugin>
189       <plugin>
190         <groupId>com.google.code.maven-replacer-plugin</groupId>
191         <artifactId>maven-replacer-plugin</artifactId>
192         <version>1.3.2</version>
193         <executions>
194           <execution>
195             <phase>compile</phase>
196             <goals>
197               <goal>replace</goal>
198             </goals>
199           </execution>
200         </executions>
201         <configuration>
202           <includes>
203             <include>target/generated-sources/javacc/org/lwes/db/*.java</include>
204           </includes>
205           <regex>true</regex>
206           <regexFlags>
207             <regexFlag>MULTILINE</regexFlag>
208           </regexFlags>
209           <replacements>
210             <replacement>
211               <token>^public class</token>
212               <value>@SuppressWarnings("all") public class</value>
213             </replacement>
214           </replacements>
215         </configuration>
216       </plugin>
217       <!-- optionally build an RPM for some of the utilities -->
218       <plugin>
219         <groupId>org.codehaus.mojo</groupId>
220         <artifactId>rpm-maven-plugin</artifactId>
221         <version>2.1-alpha-1</version>
222         <configuration>
223           <summary>Lightweight event system, java implementation</summary>
224           <group>Org/Lwes</group>
225           <requires>
226             <require>jdk &gt;= 1.6.0</require>
227           </requires>
228           <mappings>
229             <mapping>
230               <directory>${lwes.java.home}/bin</directory>
231               <filemode>755</filemode>
232               <username>root</username>
233               <groupname>root</groupname>
234               <sources>
235                 <source>
236                   <location>src/main/bin</location>
237                 </source>
238               </sources>
239             </mapping>
240             <mapping>
241               <directory>${lwes.java.home}/lib</directory>
242               <filemode>755</filemode>
243               <username>root</username>
244               <groupname>root</groupname>
245               <artifact>
246                 <classifiers>
247                   <classifier>jar-with-dependencies</classifier>
248                 </classifiers>
249               </artifact>
250             </mapping>
251             <mapping>
252               <directory>${lwes.java.home}/conf</directory>
253               <filemode>755</filemode>
254               <username>root</username>
255               <groupname>root</groupname>
256               <sources>
257                 <source>
258                   <location>src/main/resources/log4j.xml</location>
259                 </source>
260               </sources>
261             </mapping>
262             <mapping>
263               <directory>/etc/profile.d</directory>
264               <filemode>755</filemode>
265               <username>root</username>
266               <groupname>root</groupname>
267               <sources>
268                 <source>
269                   <location>target/classes/lwes-java.sh</location>
270                 </source>
271               </sources>
272             </mapping>
273           </mappings>
274         </configuration>
275       </plugin>
276       <plugin>
277         <groupId>org.sonatype.plugins</groupId>
278         <artifactId>nexus-staging-maven-plugin</artifactId>
279         <version>1.6.3</version>
280         <extensions>true</extensions>
281         <configuration>
282            <serverId>ossrh</serverId>
283            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
284            <autoReleaseAfterClose>true</autoReleaseAfterClose>
285         </configuration>
286       </plugin>
287     </plugins>
288   </build>
290   <profiles>
291     <profile>
292       <id>release</id>
293       <build>
294         <plugins>
295           <plugin>
296             <groupId>org.apache.maven.plugins</groupId>
297             <artifactId>maven-source-plugin</artifactId>
298             <version>2.2.1</version>
299             <executions>
300               <execution>
301                 <id>attach-sources</id>
302                 <goals>
303                   <goal>jar-no-fork</goal>
304                 </goals>
305               </execution>
306             </executions>
307           </plugin>
308           <plugin>
309             <groupId>org.apache.maven.plugins</groupId>
310             <artifactId>maven-javadoc-plugin</artifactId>
311             <version>3.0.1</version>
312             <configuration>
313               <doclint>none</doclint>
314             </configuration>
315             <executions>
316               <execution>
317                 <id>attach-javadocs</id>
318                 <goals>
319                   <goal>jar</goal>
320                 </goals>
321               </execution>
322             </executions>
323           </plugin>
324           <plugin>
325             <groupId>org.apache.maven.plugins</groupId>
326             <artifactId>maven-gpg-plugin</artifactId>
327             <version>1.5</version>
328             <executions>
329               <execution>
330                 <id>sign-artifacts</id>
331                 <phase>verify</phase>
332                 <goals>
333                   <goal>sign</goal>
334                 </goals>
335               </execution>
336             </executions>
337           </plugin>
338         </plugins>
339       </build>
340     </profile>
341   </profiles>
342 </project>