Resolved MIME4J-48: Messages containing qp or base64 encoded embedded messages should...
[mime4j.git] / pom.xml
blob7eb565979cf8491e45b0e0860a5afb0f62af9014
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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3   <!--
4     Licensed to the Apache Software Foundation (ASF) under one
5     or more contributor license agreements.  See the NOTICE file
6     distributed with this work for additional information
7     regarding copyright ownership.  The ASF licenses this file
8     to you under the Apache License, Version 2.0 (the
9     "License"); you may not use this file except in compliance
10     with the License.  You may obtain a copy of the License at
11   
12       http://www.apache.org/licenses/LICENSE-2.0
13   
14     Unless required by applicable law or agreed to in writing,
15     software distributed under the License is distributed on an
16     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17     KIND, either express or implied.  See the License for the
18     specific language governing permissions and limitations
19     under the License.    
20   -->
21   <parent>
22     <artifactId>james-project</artifactId>
23     <groupId>org.apache.james</groupId>
24     <version>1.2</version>
25     <!-- Either this really points to the james-project/pom.xml or you
26          will have to tune the local repository, later, in this file -->
27     <relativePath>../james-project/project/pom.xml</relativePath>
28   </parent>
29   <modelVersion>4.0.0</modelVersion>
30   <groupId>org.apache.james</groupId>
31   <artifactId>apache-mime4j</artifactId>
32   <name>Apache JAMES Mime4j</name>
33   <version>0.4-SNAPSHOT</version>
34   <description>Java stream based MIME message parser</description>
35   <url>http://james.apache.org/mime4j</url>
36   <issueManagement>
37     <url>http://issues.apache.org/jira/browse/MIME4J</url>
38   </issueManagement>
39   <inceptionYear>2004</inceptionYear>
40   <distributionManagement>
41     <site>
42       <id>mime4j-website</id>
43       <url>scp://minotaur.apache.org/www/james.apache.org/mime4j/</url>
44     </site>
45   </distributionManagement>
46   <scm>
47     <connection>scm:svn:http://svn.apache.org/repos/asf/james/mime4j/trunk</connection>
48     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/james/mime4j/trunk</developerConnection>
49     <url>http://svn.apache.org/viewvc/james/mime4j/trunk/</url>
50   </scm>
51   <build>
52     <plugins>
53       <plugin>
54         <groupId>org.codehaus.mojo</groupId>
55         <artifactId>rat-maven-plugin</artifactId>
56         <version>1.0-alpha-3</version>
57         <executions>
58           <execution>
59             <phase>verify</phase>
60             <goals>
61               <goal>check</goal>
62             </goals>
63           </execution>
64         </executions>
65       </plugin>
66       <plugin>
67         <groupId>org.codehaus.mojo</groupId>
68         <artifactId>javacc-maven-plugin</artifactId>
69         <version>2.4</version>
70         <executions>
71           <execution>
72             <id>generate-jjtree</id>
73             <phase>generate-sources</phase>
74             <goals>
75               <goal>jjtree-javacc</goal>
76             </goals>
77           </execution>
78           <execution>
79             <id>generate-javacc</id>
80             <phase>generate-sources</phase>
81             <goals>
82               <goal>javacc</goal>
83             </goals>
84           </execution>
85         </executions>
86       </plugin>
87       <plugin>
88         <groupId>org.apache.maven.plugins</groupId>
89         <artifactId>maven-compiler-plugin</artifactId>
90         <version>2.0.2</version>
91         <configuration>
92           <source>1.4</source>
93           <target>1.4</target>
94           <encoding>iso8859-1</encoding>
95         </configuration>
96       </plugin>      
97       <plugin>
98         <artifactId>maven-jar-plugin</artifactId>
99         <version>2.1</version>
100         <configuration>
101           <archive>
102           <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
103             <manifestEntries>
104               <Specification-Title>Apache Mime4j</Specification-Title>
105               <Specification-Version>${pom.version}</Specification-Version>
106               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
107               <Implementation-Title>Apache Mime4j</Implementation-Title>
108               <Implementation-Version>${pom.version}</Implementation-Version>
109               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
110               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
111               <url>${pom.url}</url>
112             </manifestEntries>
113           </archive>
114         </configuration>
115       </plugin>
116       <plugin>
117         <artifactId>maven-javadoc-plugin</artifactId>
118         <version>2.3</version>
119         <executions>
120           <execution>
121             <id>create-javadocs</id> <!-- this is used for inheritance merges -->
122             <phase>package</phase> <!-- append to the packaging phase. -->
123             <goals>
124               <goal>javadoc</goal> <!-- goals == mojos -->
125               <goal>jar</goal> <!-- goals == mojos -->
126             </goals>
127           </execution>
128         </executions>
129       </plugin>
130       <plugin>
131         <artifactId>maven-assembly-plugin</artifactId>
132         <version>2.2-beta-1</version>
133         <configuration>
134           <descriptorSourceDirectory>${basedir}/src/assemble/</descriptorSourceDirectory>
135         </configuration>
136         <executions>
137           <execution>
138             <id>make-assembly</id> <!-- this is used for inheritance merges -->
139             <phase>package</phase> <!-- append to the packaging phase. -->
140             <goals>
141               <goal>attached</goal> <!-- goals == mojos -->
142             </goals>
143           </execution>
144         </executions>
145       </plugin>
146       <!-- Add NOTICE and LICENSE to generated JAR -->
147       <plugin>
148         <artifactId>maven-remote-resources-plugin</artifactId>
149         <version>1.0-alpha-5</version>
150         <executions>
151           <execution>
152             <goals>
153               <goal>process</goal>
154             </goals>
155             <configuration>
156               <resourceBundles>
157                 <resourceBundle>org.apache:apache-jar-resource-bundle:1.2</resourceBundle>
158               </resourceBundles>
159               <properties>
160                       <!--  <preProjectText>PRE PROCESS TEXT</preProjectText>  -->
161                       <!-- Our src distribution includes also the test dependencies and
162                            maven remote resources doen't take this into account, so we
163                            manualy add the junit disclaimer -->
164                       <postProjectText>
165                         This product includes/uses software, JUnit (http://www.junit.org/),
166 developed by Kent Beck, Erich Gamma, and David Saff
167 License: Common Public License Version 1.0  (http://www.opensource.org/licenses/cpl.php) 
169 This file is automatically generated by dependencies declared in pom.xml
170                       </postProjectText>
171                       <addLicense>true</addLicense>
172               </properties>
173             </configuration>
174           </execution>
175         </executions>
176       </plugin>
177       <plugin>
178         <groupId>org.apache.maven.plugins</groupId>
179         <artifactId>maven-source-plugin</artifactId>
180         <executions>
181                 <execution>
182                         <id>attach-sources</id>
183                         <goals>
184                                 <goal>jar</goal>
185                         </goals>
186                 </execution>
187         </executions>
188       </plugin>
190       <!--
191       <plugin>
192         <groupId>org.apache.maven.plugins</groupId>
193         <artifactId>maven-javadoc-plugin</artifactId>
194       </plugin>
195       -->
196       <plugin>
197         <groupId>org.apache.felix</groupId>
198         <artifactId>maven-bundle-plugin</artifactId>
199         <version>1.4.1</version>
200         <executions>
201                 <execution>
202                         <id>bundle-manifest</id>
203                         <phase>process-classes</phase>
204                         <goals>
205                                 <goal>manifest</goal>
206                         </goals>
207                 </execution>
208         </executions>
209         <extensions>true</extensions>
210         <configuration>
211                 <instructions>
212                         <Export-Package>org.apache.james.mime4j.*</Export-Package>
213                         <Embed-Dependency>*;scope=runtime</Embed-Dependency>
214                 </instructions>
215         </configuration>
216       </plugin>
217     </plugins>
218   </build>
219   <repositories>
220     <repository>
221       <id>local-mime4j-stage-repository</id>
222       <name>Local mime4j stage repository</name>
223       <!-- Please note that due to http://jira.codehaus.org/browse/MNG-2896 -->
224       <!-- If you don't have james-project checked out in ../james-project -->
225       <!-- you will have to place your absolute path to the project instead -->
226       <!-- of ${basedir}, or, otherwise, manually install the parent poms -->
227       <!--
228            mvn -fignorepom.xml install:install-file 
229               -Dfile=stage\org.apache.james\poms\james-parent-1.1.pom 
230               -Dpackaging=pom 
231               -DgroupId=org.apache.james 
232               -DartifactId=james-parent 
233               -Dversion=1.1
234            mvn -fignorepom.xml install:install-file 
235               -Dfile=stage\org.apache.james\poms\james-project-1.2.pom 
236               -Dpackaging=pom 
237               -DgroupId=org.apache.james 
238               -DartifactId=james-project 
239               -Dversion=1.2
240        -->
241       <url>file://${basedir}/stage</url>
242       <layout>legacy</layout>
243       <snapshots>
244         <enabled>true</enabled>
245         <checksumPolicy>ignore</checksumPolicy>
246       </snapshots>
247       <releases>
248         <enabled>true</enabled>
249         <checksumPolicy>ignore</checksumPolicy>
250       </releases>
251     </repository>
252   </repositories>
253   <dependencies>
254     <dependency>
255       <groupId>commons-logging</groupId>
256       <artifactId>commons-logging</artifactId>
257       <version>1.1</version>
258       <exclusions>
259         <exclusion>
260           <groupId>javax.servlet</groupId>
261           <artifactId>servlet-api</artifactId>
262         </exclusion>
263         <exclusion>
264           <groupId>logkit</groupId>
265           <artifactId>logkit</artifactId>
266         </exclusion>
267         <exclusion>
268           <groupId>avalon-framework</groupId>
269           <artifactId>avalon-framework</artifactId>
270         </exclusion>
271         <exclusion>
272           <groupId>log4j</groupId>
273           <artifactId>log4j</artifactId>
274         </exclusion>
275       </exclusions>
276     </dependency>
277     <dependency>
278       <groupId>log4j</groupId>
279       <artifactId>log4j</artifactId>
280       <version>1.2.14</version>
281       <scope>test</scope>
282     </dependency>
283     <dependency>
284       <groupId>junit</groupId>
285       <artifactId>junit</artifactId>
286       <version>3.8.1</version>
287       <type>jar</type>
288       <!--  Removed as a workaround for an unidentified M2 bug -->
289       <scope>test</scope>
290       <optional>true</optional>
291     </dependency>
292     <dependency>
293       <groupId>commons-io</groupId>
294       <artifactId>commons-io</artifactId>
295       <version>1.2</version>
296       <scope>test</scope>
297       <optional>true</optional>
298     </dependency>
299   </dependencies>
301   <reporting>
302     <plugins>
303       <plugin>
304         <artifactId>maven-surefire-plugin</artifactId>
305         <version>2.3</version>
306       </plugin>
307       <plugin>
308         <artifactId>maven-surefire-report-plugin</artifactId>
309         <version>2.3</version>
310       </plugin> 
311       <plugin>
312         <artifactId>maven-javadoc-plugin</artifactId>
313         <version>2.3</version>
314       </plugin>
315       <plugin>
316         <groupId>org.apache.maven.plugins</groupId>
317         <artifactId>maven-jxr-plugin</artifactId>
318         <version>2.1</version>
319       </plugin>
320       <plugin>
321         <groupId>org.apache.maven.plugins</groupId>
322         <artifactId>maven-pmd-plugin</artifactId>
323         <version>2.2</version>
324         <configuration>
325           <targetjdk>1.4</targetjdk>
326           <rulesets>
327             <ruleset>/rulesets/basic.xml</ruleset>
328             <ruleset>/rulesets/controversial.xml</ruleset>
329           </rulesets>
330           <format>xml</format>
331           <linkXref>true</linkXref>
332           <sourceEncoding>utf-8</sourceEncoding>
333           <minimumTokens>100</minimumTokens>
334         </configuration>
335       </plugin>
336       <plugin>
337         <groupId>org.apache.maven.plugins</groupId>
338         <artifactId>maven-site-plugin</artifactId>
339         <version>2.0-beta-5</version>
340       </plugin>
341       <plugin>
342         <groupId>org.codehaus.mojo</groupId>
343         <artifactId>rat-maven-plugin</artifactId>
344         <version>1.0-alpha-3</version>
345         <configuration>
346           <excludes>
347             <!-- test resources created by JAMES committers / we can't include ALv2 headers there -->
348             <exclude>src/test/resources/testmsgs/basic-plain-with-bad-header-separator.msg</exclude>
349             <exclude>src/test/resources/testmsgs/basic-plain-with-bad-header-separator.xml</exclude>
350             <exclude>src/test/resources/testmsgs/basic-plain-with-bad-header-separator_decoded.xml</exclude>
351             <exclude>src/test/resources/testmsgs/basic-plain-with-bad-header-separator_decoded_1.txt</exclude>
352             <exclude>src/test/resources/testmsgs/basic-plain.msg</exclude>
353             <exclude>src/test/resources/testmsgs/basic-plain.xml</exclude>
354             <exclude>src/test/resources/testmsgs/basic-plain_decoded.xml</exclude>
355             <exclude>src/test/resources/testmsgs/basic-plain_decoded_1.txt</exclude>
356             <exclude>src/test/resources/testmsgs/russian-headers.msg</exclude>
357             <exclude>src/test/resources/testmsgs/russian-headers.xml</exclude>
358             <exclude>src/test/resources/testmsgs/russian-headers_decoded.xml</exclude>
359             <exclude>src/test/resources/testmsgs/russian-headers_decoded_1.txt</exclude>
360             <exclude>src/test/resources/testmsgs/simple-attachment.msg</exclude>
361             <exclude>src/test/resources/testmsgs/simple-attachment.xml</exclude>
362             <exclude>src/test/resources/testmsgs/simple-attachment_decoded.xml</exclude>
363             <exclude>src/test/resources/testmsgs/simple-attachment_decoded_1_1.txt</exclude>
364             <exclude>src/test/resources/testmsgs/simple-attachment_decoded_1_2.bin</exclude>
365             <!-- 3rd party descriptors distributed via maven repositories
366                  and included "as is" -->
367             <exclude>stage/commons-io/poms/commons-io-1.2.pom</exclude>
368             <exclude>stage/commons-logging/poms/commons-logging-1.1.pom</exclude>
369             <exclude>stage/org.apache.james/xmls/james-parent-1.1-site.xml</exclude>
370             <exclude>stage/org.apache.james/xmls/james-parent-1.1-site_en.xml</exclude>
371             <exclude>stage/org.apache.james/xmls/james-project-1.2-site.xml</exclude>
372             <exclude>stage/org.apache.james/xmls/james-project-1.2-site_en.xml</exclude>
373             <exclude>release.properties</exclude>
374           </excludes>
375         </configuration>
376       </plugin>
377       <plugin>
378         <groupId>org.codehaus.mojo</groupId>
379         <artifactId>taglist-maven-plugin</artifactId>
380         <version>2.2</version>
381       </plugin>
382       <plugin>
383         <groupId>org.codehaus.mojo</groupId>
384         <artifactId>javacc-maven-plugin</artifactId>
385         <version>2.4</version>
386       </plugin>
387     </plugins>
388   </reporting>
390 </project>