[maven-release-plugin] prepare for next development iteration
[mkjsf-moved-to-github.git] / pom.xml
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/xsd/maven-4.0.0.xsd">
2   <modelVersion>4.0.0</modelVersion>
3   <groupId>com.indexdata</groupId>
4   <artifactId>mkjsf</artifactId>
5   <version>0.0.8-SNAPSHOT</version>
6   <name>MasterKey JSF</name>
7   <packaging>jar</packaging>
8   <description>MKJSF - JavaServer Faces library for MasterKey</description>
9     <dependencies>
10     <dependency>
11       <groupId>javax</groupId>
12       <artifactId>javaee-api</artifactId>
13       <version>6.0</version>
14       <scope>provided</scope>
15     </dependency>
16
17     <!-- JSF 2, JSP tag library, Weld, CDI -->
18     <dependency>
19       <groupId>org.glassfish</groupId>
20       <artifactId>javax.faces</artifactId>
21       <version>2.1.21</version>
22     </dependency>
23     <dependency>
24       <groupId>javax.servlet.jsp.jstl</groupId>
25       <artifactId>javax.servlet.jsp.jstl-api</artifactId>
26       <version>1.2.1</version>      
27     </dependency>    
28     <dependency>
29       <groupId>org.jboss.weld.servlet</groupId>
30       <artifactId>weld-servlet</artifactId>
31       <version>1.1.10.Final</version>      
32     </dependency> 
33
34     <!-- File upload etc -->
35     <dependency>
36       <groupId>org.apache.myfaces.tomahawk</groupId>
37       <artifactId>tomahawk20</artifactId>
38       <version>1.1.10</version>
39     </dependency>
40     <dependency>
41       <groupId>commons-io</groupId>
42       <artifactId>commons-io</artifactId>
43       <version>2.1</version>
44     </dependency>
45     <dependency>
46       <groupId>org.apache.httpcomponents</groupId>
47       <artifactId>httpclient</artifactId>
48       <version>4.2.3</version>
49     </dependency>
50      
51     <!-- Pazpar2 client -->   
52     <dependency>
53       <groupId>com.indexdata</groupId>
54       <artifactId>masterkey-common</artifactId>
55       <version>0.1.36</version>
56     </dependency>
57   </dependencies>
58   <build>
59     <directory>target</directory>
60     <outputDirectory>target/classes</outputDirectory>
61     <sourceDirectory>src/main/java</sourceDirectory>
62     <resources>
63       <resource>
64         <directory>src</directory>
65         <excludes>          
66           <exclude>main/</exclude>
67           <exclude>*.java</exclude>
68           <exclude>META-INF/beans.xml</exclude>
69         </excludes>
70       </resource>
71     </resources>
72     <plugins>
73       <plugin>
74         <artifactId>maven-compiler-plugin</artifactId>
75         <version>2.3.2</version>
76         <configuration>
77           <excludes>
78              <exclude>src/META-INF/</exclude>
79           </excludes>
80           <source>1.6</source>
81           <target>1.6</target>
82         </configuration>
83       </plugin>
84       <plugin>
85         <groupId>org.apache.maven.plugins</groupId>
86         <artifactId>maven-release-plugin</artifactId>
87         <version>2.2.2</version>
88         <configuration>
89           <preparationGoals>clean verify</preparationGoals>
90           <releaseProfiles>production</releaseProfiles>
91           <tagNameFormat>v@{project.version}</tagNameFormat>
92           <pushChanges>false</pushChanges>
93           <localCheckout>true</localCheckout>
94         </configuration>
95       </plugin>
96       <plugin>
97         <groupId>org.apache.maven.plugins</groupId>
98         <artifactId>maven-jar-plugin</artifactId>
99         <version>2.2</version>
100         <configuration>
101           <classifier>${env}</classifier>
102         </configuration>
103       </plugin>
104       
105     </plugins>
106     <extensions>
107       <extension>
108         <groupId>org.apache.maven.wagon</groupId>
109         <artifactId>wagon-ssh</artifactId>
110         <version>1.0-beta-6</version>
111       </extension>
112       <extension>
113         <groupId>org.apache.maven.wagon</groupId>
114         <artifactId>wagon-ssh-external</artifactId>
115         <version>2.2</version>
116       </extension>
117     </extensions>
118   </build>
119   <distributionManagement>
120     <repository>
121       <uniqueVersion>false</uniqueVersion>
122       <id>id-maven-repo</id>
123       <name>Index Data Maven Repository</name>
124       <url>scp://maven.indexdata.com:222/var/www/maven/repository</url>
125     </repository>
126     <site>
127       <id>id-website</id>
128       <url>scpexe://www.indexdata.com/var/www/software/mkjsf/project/</url>
129     </site>
130   </distributionManagement>  
131   <repositories>
132     <repository>
133       <id>id-maven-repo</id>
134       <url>http://maven.indexdata.com</url>
135     </repository>
136   </repositories>
137   <scm>
138     <connection>scm:git:ssh://git.indexdata.com:222/home/git/pub/mkjsf</connection>
139     <url>http://gitid.indexdata.com/?p=mkjsf.git</url>
140   </scm>
141   
142   <properties>
143     <env />
144     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    
145   </properties>
146   
147   <profiles>
148     <profile>
149       <!-- Tomcat 7 profile, includes JSF 2.0 and Weld -->
150       <id>default</id>
151       <activation>
152         <activeByDefault>true</activeByDefault>
153       </activation>
154       <properties>
155         <env />
156       </properties>
157       <dependencies>
158       </dependencies>
159       <build>
160         <resources>
161           <resource>
162             <targetPath>META-INF</targetPath>
163             <directory>src/main/resources/tomcat</directory>
164             <includes>
165               <include>beans.xml</include>
166             </includes>
167           </resource>
168         </resources>
169       </build>
170     </profile>
171     <profile>
172       <!-- J2EE Application Server profile (Glassfish, JBoss) -->
173       <!-- beans.xml contains information of which configuration 
174            scheme to inject. Optimally this would be decided at 
175            the .war/application level, not at (this) jar/library
176            level, but for now this is necessary when using Glassfish
177            or JBoss -->
178       <id>as</id>
179       <properties>
180         <env>as</env>
181       </properties>
182       <dependencies>
183       </dependencies>
184       <build>
185         <resources>
186           <resource>
187             <targetPath>META-INF</targetPath>
188             <directory>src/main/resources/as</directory>
189             <includes>
190               <include>beans.xml</include>
191             </includes>
192           </resource>
193         </resources>
194       </build>      
195     </profile>
196   </profiles>
197 </project>