a235e33384cd4b801532dd0e301f57ee91fabfca
[xmlrouter] / pom.xml
1 <?xml version="1.0"?>
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/maven-v4_0_0.xsd">
3  
4     <modelVersion>4.0.0</modelVersion>
5     <groupId>org.wamblee.xmlrouter</groupId>
6     <artifactId>xmlrouter-root</artifactId>
7     <packaging>pom</packaging>
8     <version>0.1-SNAPSHOT</version>
9     <name>/xmlrouter</name>
10     <description>A simple XML Router with OSGI support</description>
11     <url>http://wamblee.org</url>
12
13     <licenses>
14         <license>
15             <name>The Apache Software License, Version 2.0</name>
16             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17             <distribution>repo</distribution>
18         </license>
19     </licenses>
20     <scm>
21         <url>https://wamblee.org/viewvc/xmlrouter</url>
22         <connection>scm:svn:https://wamblee.org/svn/public/xmlrouter/trunk</connection>
23         <developerConnection>scm:svn:https://wamblee.org/svn/public/xmlrouter/trunk</developerConnection>
24     </scm>
25     <developers>
26         <developer>
27             <email>erik@wamblee.org</email>
28             <name>Erik Brakkee</name>
29             <url>http://brakkee.org</url>
30         </developer>
31     </developers>
32
33
34     <properties>
35         <wamblee.utils.version>0.5</wamblee.utils.version>
36     </properties>
37
38     <modules>
39         <module>common</module>
40         <module>config</module>
41         <module>publish</module>
42         <module>subscribe</module>
43         <module>impl</module>
44         <module>listener</module>
45     </modules>
46
47     <!-- need to exclude test at release because test depends on an artifact
48          eclipselink) which is not available at maven central --> 
49     <profiles>
50         <profile>
51             <id>release</id>
52             <activation>
53                 <property>
54                     <name>performRelease</name>
55                     <value>true</value>
56                 </property>
57             </activation>
58             <build>
59                 <plugins>
60                     <plugin>
61                         <groupId>org.apache.maven.plugins</groupId>
62                         <artifactId>maven-gpg-plugin</artifactId>
63                         <executions>
64                             <execution>
65                                 <id>sign-artifacts</id>
66                                 <phase>verify</phase>
67                                 <goals>
68                                     <goal>sign</goal>
69                                 </goals>
70                             </execution>
71                         </executions>
72                     </plugin>
73                 </plugins>
74             </build>
75             <distributionManagement>
76                 <repository>
77                     <id>sonatype-nexus-staging</id>
78                     <name>Nexus Release Repository</name>
79                     <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
80                 </repository>
81             </distributionManagement>
82         </profile>
83         <profile>
84             <id>all</id>
85             <activation>
86                 <property>
87                     <name>!performRelease</name>
88                 </property>
89             </activation>
90         </profile>
91     </profiles>
92
93
94     <dependencyManagement>
95         <dependencies>
96             <dependency>
97                             <groupId>org.wamblee</groupId>
98                                 <artifactId>wamblee-support-general</artifactId>
99                                 <version>0.7-SNAPSHOT</version>
100                         </dependency>
101             <dependency>
102                 <groupId>org.wamblee</groupId>
103                 <artifactId>wamblee-test-eclipselink</artifactId>
104                 <version>${wamblee.utils.version}</version>
105                 <scope>test</scope>
106             </dependency>
107             <dependency>
108                 <groupId>org.eclipse.persistence</groupId>
109                 <artifactId>javax.persistence</artifactId>
110                 <version>2.0.0</version>
111             </dependency>
112
113             <dependency>
114                 <groupId>org.eclipse.persistence</groupId>
115                 <artifactId>eclipselink</artifactId>
116                 <version>2.0.2</version>
117             </dependency>
118             <dependency>
119                 <groupId>junit</groupId>
120                 <artifactId>junit</artifactId>
121                 <version>4.7</version>
122                 <scope>test</scope>
123             </dependency>
124             <dependency>
125                 <groupId>org.mockito</groupId>
126                 <artifactId>mockito-all</artifactId>
127                 <version>1.8.0</version>
128                 <scope>test</scope>
129             </dependency>
130
131         </dependencies>
132
133     </dependencyManagement>
134
135
136
137     <build>
138         <plugins>
139             <plugin>
140                 <groupId>org.apache.maven.plugins</groupId>
141                 <artifactId>maven-release-plugin</artifactId>
142                 <version>2.0</version>
143                 <configuration>
144                     <autoVersionSubmodules>true</autoVersionSubmodules>
145                     <goals>javadoc:jar deploy</goals>
146                 </configuration>
147             </plugin>
148             <plugin>
149                 <groupId>org.apache.maven.plugins</groupId>
150                 <artifactId>maven-compiler-plugin</artifactId>
151                 <version>2.3.2</version>
152                 <configuration>
153                     <source>1.6</source>
154                     <target>1.6</target>
155                 </configuration>
156             </plugin>
157
158             <plugin>
159                 <groupId>org.apache.maven.plugins</groupId>
160                 <artifactId>maven-checkstyle-plugin</artifactId>
161                 <version>2.5</version>
162                 <dependencies>
163                     <dependency>
164                         <groupId>org.wamblee</groupId>
165                         <artifactId>wamblee-code-style</artifactId>
166                         <version>1.0</version>
167                     </dependency>
168                 </dependencies>
169             </plugin>
170
171
172             <plugin>
173                 <groupId>org.apache.maven.plugins</groupId>
174                 <artifactId>maven-surefire-plugin</artifactId>
175                 <version>2.7.1</version>
176                 <configuration>
177                     <includes>
178                         <include>**/*Test.java</include>
179                     </includes>
180                 </configuration>
181             </plugin>
182
183             <!--
184                                 Make sure other projects can use (or the test support and test
185                                 classes from the projects it uses. To use a dependence on a test
186                                 library of a project, an additinoal dependence must be added with
187                                 <type>test-jar</type>
188                         -->
189
190             <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-jar-plugin</artifactId>
193                 <version>2.3.1</version>
194                 <executions>
195                     <execution>
196                         <goals>
197                             <goal>test-jar</goal>
198                         </goals>
199                     </execution>
200                 </executions>
201             </plugin>
202
203             <plugin>
204                 <groupId>org.codehaus.mojo</groupId>
205                 <artifactId>cobertura-maven-plugin</artifactId>
206                 <version>2.4</version>
207                 <executions>
208                     <execution>
209                         <goals>
210                             <goal>clean</goal>
211                         </goals>
212                     </execution>
213                 </executions>
214             </plugin>
215             
216           
217             <plugin>
218                 <artifactId>maven-site-plugin</artifactId>
219                 <version>3.0-beta-3</version>
220                 <configuration>
221                     <reportPlugins>
222                         <plugin>
223                             <groupId>org.apache.maven.plugins</groupId>
224                             <artifactId>maven-project-info-reports-plugin</artifactId>
225                             <version>2.3.1</version>
226                             <configuration>
227                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
228                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
229                             </configuration>
230                         </plugin>
231                         <plugin>
232                             <groupId>org.apache.maven.plugins</groupId>
233                             <artifactId>maven-javadoc-plugin</artifactId>
234                             <version>2.7</version>
235                         </plugin>
236                         <plugin>
237                             <groupId>org.codehaus.mojo</groupId>
238                             <artifactId>cobertura-maven-plugin</artifactId>
239                             <version>2.3</version>
240                             <configuration>
241                                 <formats>
242                                     <format>xml</format>
243                                     <format>html</format>
244                                 </formats>
245                             </configuration>
246                         </plugin>
247                         
248                     </reportPlugins>
249                 </configuration>
250             </plugin>
251
252         </plugins>
253
254     </build>
255     
256     <distributionManagement>
257         <site>
258             <id>xmlrouter-site</id>
259             <url>file:${distrib}/all</url>
260         </site>
261     </distributionManagement>
262  
263 </project>