Clears info response when clearing init response
[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     </plugins>
105     <extensions>
106       <extension>
107         <groupId>org.apache.maven.wagon</groupId>
108         <artifactId>wagon-ssh</artifactId>
109         <version>2.8</version>
110       </extension>
111       <extension>
112         <groupId>org.apache.maven.wagon</groupId>
113         <artifactId>wagon-ssh-external</artifactId>
114         <version>2.2</version>
115       </extension>
116     </extensions>
117   </build>
118   <distributionManagement>
119     <repository>
120       <uniqueVersion>false</uniqueVersion>
121       <id>id-maven-repo</id>
122       <name>Index Data Maven Repository</name>
123       <url>scp://maven.indexdata.com:22/var/www/maven/repository</url>
124     </repository>
125     <site>
126       <id>id-website</id>
127       <url>scpexe://www.indexdata.com/var/www/software/mkjsf/project/</url>
128     </site>
129   </distributionManagement>  
130   <repositories>
131     <repository>
132       <id>id-maven-repo</id>
133       <url>http://maven.indexdata.com</url>
134     </repository>
135   </repositories>
136   <scm>
137     <connection>scm:git:ssh://git.indexdata.com:222/home/git/pub/mkjsf</connection>
138     <url>http://gitid.indexdata.com/?p=mkjsf.git</url>
139   </scm>
140   
141   <properties>
142     <env />
143     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    
144   </properties>
145   
146   <profiles>
147     <profile>
148       <!-- Tomcat 7 profile, includes JSF 2.0 and Weld -->
149       <id>default</id>
150       <activation>
151         <activeByDefault>true</activeByDefault>
152       </activation>
153       <properties>
154         <env />
155       </properties>
156       <dependencies>
157       </dependencies>
158       <build>
159         <resources>
160           <resource>
161             <targetPath>META-INF</targetPath>
162             <directory>src/main/resources/tomcat</directory>
163             <includes>
164               <include>beans.xml</include>
165             </includes>
166           </resource>
167         </resources>
168       </build>
169     </profile>
170     <profile>
171       <!-- J2EE Application Server profile (Glassfish, JBoss) -->
172       <!-- beans.xml contains information of which configuration 
173            scheme to inject. Optimally this would be decided at 
174            the .war/application level, not at (this) jar/library
175            level, but for now this is necessary when using Glassfish
176            or JBoss -->
177       <id>as</id>
178       <properties>
179         <env>as</env>
180       </properties>
181       <dependencies>
182       </dependencies>
183       <build>
184         <resources>
185           <resource>
186             <targetPath>META-INF</targetPath>
187             <directory>src/main/resources/as</directory>
188             <includes>
189               <include>beans.xml</include>
190             </includes>
191           </resource>
192         </resources>
193       </build>      
194     </profile>
195   </profiles>
196 </project>