Maven calls make for native code.
[yaz4j-moved-to-github.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5     <!-- POM Relationships -->
6     <modelVersion>4.0.0</modelVersion>
7     <groupId>org.yaz4j</groupId>
8     <artifactId>yaz4j</artifactId>
9     <version>1.0</version>
10     <packaging>jar</packaging>
11
12     <!-- Project Information -->
13     <name>yaz4j</name>
14     <url>http://www.indexdata.com/yaz4j/</url>
15     <inceptionYear>2008</inceptionYear>
16     <licenses>
17         <license>
18             <name>BSD</name>
19             <url>http://www.opensource.org/licenses/bsd-license.php</url>
20         </license>
21     </licenses>
22     <description>Java wrapper for the ZOOM API of YAZ</description>
23
24     <developers>
25         <developer>
26             <name>Rob Styles</name>
27             <id>rob</id>
28             <email>Rob.Styles@talis.com</email>
29             <organization>Talis</organization>
30             <organizationUrl>http://www.talis.com/</organizationUrl>
31             <roles />
32             <timezone />
33         </developer>
34         <developer>
35             <name>Adam Dickmeiss</name>
36             <id>adam</id>
37             <email>adam@indexdata.dk</email>
38             <organization>Index Data</organization>
39             <organizationUrl>http://www.indexdata.com/</organizationUrl>
40             <roles />
41             <timezone />
42         </developer>
43         <developer>
44             <name>Juan Cayetano</name>
45             <id>cayetano</id>
46             <email>juancayetano.delgado@gmail.com</email>
47             <organization />
48             <organizationUrl />
49             <roles />
50             <timezone />
51         </developer>
52     </developers>
53     <!-- ///////////////// -->
54
55     <!-- Project Dependencies -->
56     <dependencies>
57         <dependency>
58             <groupId>junit</groupId>
59             <artifactId>junit</artifactId>
60             <version>4.3.1</version>
61             <scope>test</scope>
62         </dependency>
63     </dependencies>
64     <!-- ///////////////// -->
65
66     <!-- Build Settings -->
67     <build>
68         <plugins>
69             <plugin>
70                 <groupId>org.apache.maven.plugins</groupId>
71                 <artifactId>maven-resources-plugin</artifactId>
72                 <configuration>
73                     <encoding>UTF-8</encoding>
74                 </configuration>
75             </plugin>
76
77             <plugin>
78                 <groupId>org.apache.maven.plugins</groupId>
79                 <artifactId>maven-compiler-plugin</artifactId>
80                 <configuration>
81                     <encoding>UTF-8</encoding>
82                     <source>1.5</source>
83                     <target>1.5</target>
84                     <showDeprecation>true</showDeprecation>
85                     <showWarnings>true</showWarnings>
86                 </configuration>
87             </plugin>
88
89             <plugin>
90                 <groupId>org.apache.maven.plugins</groupId>
91                 <artifactId>maven-surefire-plugin</artifactId>
92                 <configuration>
93                     <forkMode>once</forkMode>
94                     <workingDirectory>target</workingDirectory>
95                     <argLine>-Djava.library.path=${basedir}/libyaz4j/lib</argLine>
96                 </configuration>
97             </plugin>
98
99             <plugin>
100               <artifactId>maven-antrun-plugin</artifactId>
101               <executions>
102                 <execution>
103                   <id>build-native</id>
104                   <phase>compile</phase>
105                   <goals>
106                     <goal>run</goal>
107                   </goals>
108                   <configuration>
109                     <tasks>
110                       <exec dir="libyaz4j" executable="make" failonerror="true">
111                         <arg value="all"/>
112                       </exec>
113                     </tasks>
114                   </configuration>
115                 </execution>
116                 
117                 <execution>
118                   <id>clean-native</id>
119                   <phase>clean</phase>
120                   <goals>
121                     <goal>run</goal>
122                   </goals>
123                   <configuration>
124                     <tasks>
125                       <exec dir="libyaz4j" executable="make" failonerror="true">
126                         <arg value="clean"/>
127                       </exec>
128                     </tasks>
129                   </configuration>
130                 </execution>
131               </executions>
132             </plugin>
133
134         </plugins>
135     </build>
136
137     <!-- Reporting -->
138     <reporting>
139         <plugins>
140             <plugin>
141                 <groupId>org.apache.maven.plugins</groupId>
142                 <artifactId>maven-checkstyle-plugin</artifactId>
143                 <configuration>
144                     <enableRSS>false</enableRSS>
145                     <include>**/*.java</include>
146                     <sourceDirectory>src/main/java</sourceDirectory>
147                 </configuration>
148             </plugin>
149
150             <plugin>
151                 <groupId>org.apache.maven.plugins</groupId>
152                 <artifactId>
153                 maven-project-info-reports-plugin
154                 </artifactId>
155                 <reportSets>
156                     <reportSet>
157                         <reports>
158                             <report>dependencies</report>
159                             <report>project-team</report>
160                             <report>mailing-list</report>
161                             <report>issue-tracking</report>
162                             <report>summary</report>
163                             <report>scm</report>
164                             <report>index</report>
165                         </reports>
166                     </reportSet>
167                 </reportSets>
168             </plugin>
169             <plugin>
170                 <groupId>org.apache.maven.plugins</groupId>
171                 <artifactId>maven-javadoc-plugin</artifactId>
172                 <configuration>
173                     <chartset>UTF-8</chartset>
174                 </configuration>
175             </plugin>
176         </plugins>
177     </reporting>
178     <!-- ////////////// -->
179
180     <!-- Build Environment -->
181     <!-- Environment Information -->
182     <mailingLists>
183         <mailingList>
184             <name />
185             <subscribe />
186             <unsubscribe />
187             <post />
188             <archive />
189         </mailingList>
190     </mailingLists>
191
192     <scm>
193         <connection />
194         <url />
195     </scm>
196
197     <issueManagement>
198         <system />
199         <url />
200     </issueManagement>
201
202     <ciManagement>
203         <system />
204         <url />
205     </ciManagement>
206     <!-- /////////////////////// -->
207
208     <!-- Maven Environment -->
209     <repositories />
210     <pluginRepositories />
211     <!-- ///////////////// -->
212
213     <!-- Maven Common Properties -->
214     <properties />
215     <!-- /////////////////// -->
216 </project>
217
218