initial versions.
[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     </modules>
45
46     <!-- need to exclude test at release because test depends on an artifact
47          eclipselink) which is not available at maven central --> 
48     <profiles>
49         <profile>
50             <id>release</id>
51             <activation>
52                 <property>
53                     <name>performRelease</name>
54                     <value>true</value>
55                 </property>
56             </activation>
57             <build>
58                 <plugins>
59                     <plugin>
60                         <groupId>org.apache.maven.plugins</groupId>
61                         <artifactId>maven-gpg-plugin</artifactId>
62                         <executions>
63                             <execution>
64                                 <id>sign-artifacts</id>
65                                 <phase>verify</phase>
66                                 <goals>
67                                     <goal>sign</goal>
68                                 </goals>
69                             </execution>
70                         </executions>
71                     </plugin>
72                 </plugins>
73             </build>
74             <distributionManagement>
75                 <repository>
76                     <id>sonatype-nexus-staging</id>
77                     <name>Nexus Release Repository</name>
78                     <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
79                 </repository>
80             </distributionManagement>
81         </profile>
82         <profile>
83             <id>all</id>
84             <activation>
85                 <property>
86                     <name>!performRelease</name>
87                 </property>
88             </activation>
89         </profile>
90     </profiles>
91
92
93     <dependencyManagement>
94         <dependencies>
95             <dependency>
96                             <groupId>org.wamblee</groupId>
97                                 <artifactId>wamblee-support-general</artifactId>
98                                 <version>0.7-SNAPSHOT</version>
99                         </dependency>
100             <dependency>
101                 <groupId>org.wamblee</groupId>
102                 <artifactId>wamblee-test-eclipselink</artifactId>
103                 <version>${wamblee.utils.version}</version>
104                 <scope>test</scope>
105             </dependency>
106             <dependency>
107                 <groupId>org.eclipse.persistence</groupId>
108                 <artifactId>javax.persistence</artifactId>
109                 <version>2.0.0</version>
110             </dependency>
111
112             <dependency>
113                 <groupId>org.eclipse.persistence</groupId>
114                 <artifactId>eclipselink</artifactId>
115                 <version>2.0.2</version>
116             </dependency>
117             <dependency>
118                 <groupId>junit</groupId>
119                 <artifactId>junit</artifactId>
120                 <version>4.7</version>
121                 <scope>test</scope>
122             </dependency>
123             <dependency>
124                 <groupId>org.mockito</groupId>
125                 <artifactId>mockito-all</artifactId>
126                 <version>1.8.0</version>
127                 <scope>test</scope>
128             </dependency>
129
130         </dependencies>
131
132     </dependencyManagement>
133
134
135
136     <build>
137         <plugins>
138             <plugin>
139                 <groupId>org.apache.maven.plugins</groupId>
140                 <artifactId>maven-release-plugin</artifactId>
141                 <version>2.0</version>
142                 <configuration>
143                     <autoVersionSubmodules>true</autoVersionSubmodules>
144                     <goals>javadoc:jar deploy</goals>
145                 </configuration>
146             </plugin>
147             <plugin>
148                 <groupId>org.apache.maven.plugins</groupId>
149                 <artifactId>maven-compiler-plugin</artifactId>
150                 <version>2.3.2</version>
151                 <configuration>
152                     <source>1.6</source>
153                     <target>1.6</target>
154                 </configuration>
155             </plugin>
156
157             <plugin>
158                 <groupId>org.apache.maven.plugins</groupId>
159                 <artifactId>maven-checkstyle-plugin</artifactId>
160                 <version>2.5</version>
161                 <dependencies>
162                     <dependency>
163                         <groupId>org.wamblee</groupId>
164                         <artifactId>wamblee-code-style</artifactId>
165                         <version>1.0</version>
166                     </dependency>
167                 </dependencies>
168             </plugin>
169
170
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-surefire-plugin</artifactId>
174                 <version>2.7.1</version>
175                 <configuration>
176                     <includes>
177                         <include>**/*Test.java</include>
178                     </includes>
179                 </configuration>
180             </plugin>
181
182             <!--
183                                 Make sure other projects can use (or the test support and test
184                                 classes from the projects it uses. To use a dependence on a test
185                                 library of a project, an additinoal dependence must be added with
186                                 <type>test-jar</type>
187                         -->
188
189             <plugin>
190                 <groupId>org.apache.maven.plugins</groupId>
191                 <artifactId>maven-jar-plugin</artifactId>
192                 <version>2.3.1</version>
193                 <executions>
194                     <execution>
195                         <goals>
196                             <goal>test-jar</goal>
197                         </goals>
198                     </execution>
199                 </executions>
200             </plugin>
201
202             <plugin>
203                 <groupId>org.codehaus.mojo</groupId>
204                 <artifactId>cobertura-maven-plugin</artifactId>
205                 <version>2.4</version>
206                 <executions>
207                     <execution>
208                         <goals>
209                             <goal>clean</goal>
210                         </goals>
211                     </execution>
212                 </executions>
213             </plugin>
214             
215           
216             <plugin>
217                 <artifactId>maven-site-plugin</artifactId>
218                 <version>3.0-beta-3</version>
219                 <configuration>
220                     <reportPlugins>
221                         <plugin>
222                             <groupId>org.apache.maven.plugins</groupId>
223                             <artifactId>maven-project-info-reports-plugin</artifactId>
224                             <version>2.3.1</version>
225                             <configuration>
226                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
227                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
228                             </configuration>
229                         </plugin>
230                         <plugin>
231                             <groupId>org.apache.maven.plugins</groupId>
232                             <artifactId>maven-javadoc-plugin</artifactId>
233                             <version>2.7</version>
234                         </plugin>
235                         <plugin>
236                             <groupId>org.codehaus.mojo</groupId>
237                             <artifactId>cobertura-maven-plugin</artifactId>
238                             <version>2.3</version>
239                             <configuration>
240                                 <formats>
241                                     <format>xml</format>
242                                     <format>html</format>
243                                 </formats>
244                             </configuration>
245                         </plugin>
246                         
247                     </reportPlugins>
248                 </configuration>
249             </plugin>
250
251         </plugins>
252
253     </build>
254     
255     <distributionManagement>
256         <site>
257             <id>xmlrouter-site</id>
258             <url>file:${distrib}/all</url>
259         </site>
260     </distributionManagement>
261
262 </project>