pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <artifactId>webService</artifactId>
  5. <version>0.3-SNAPSHOT</version>
  6. <parent>
  7. <groupId>edu.kit.ipd.jplag</groupId>
  8. <artifactId>parent</artifactId>
  9. <version>0.3-SNAPSHOT</version>
  10. <relativePath>../jplag.parent/pom.xml</relativePath>
  11. </parent>
  12. <repositories>
  13. <repository>
  14. <id>ipdNexus</id>
  15. <name>Recaa Repository</name>
  16. <url>http://bob.ipd.kit.edu/nexus/content/repositories/public/</url>
  17. </repository>
  18. </repositories>
  19. <build>
  20. <plugins>
  21. <plugin>
  22. <groupId>org.codehaus.mojo</groupId>
  23. <artifactId>maven-war-plugin</artifactId>
  24. <version>2.3</version>
  25. <configuration>
  26. <encoding>${project.build.sourceEncoding}</encoding>
  27. <source>${project.build.source}</source>
  28. <target>${project.build.target}</target>
  29. <optimize>${project.build.optimize}</optimize>
  30. </configuration>
  31. </plugin>
  32. <plugin>
  33. <groupId>org.codehaus.mojo</groupId>
  34. <artifactId>build-helper-maven-plugin</artifactId>
  35. <version>1.7</version>
  36. <executions>
  37. <execution>
  38. <id>add-wscompile-source</id>
  39. <phase>generate-sources</phase>
  40. <goals>
  41. <goal>add-source</goal>
  42. </goals>
  43. <configuration>
  44. <sources>
  45. <source>target/generated-sources/wscompile</source>
  46. </sources>
  47. </configuration>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-antrun-plugin</artifactId>
  53. <version>1.7</version>
  54. <executions>
  55. <execution>
  56. <id>wsCompile</id>
  57. <phase>generate-sources</phase>
  58. <configuration>
  59. <target>
  60. <mkdir dir="${basedir}/target" />
  61. <!-- <javac destdir="${basedir}/target" srcdir="${basedir}/src/main/java/"
  62. includes="jplagWsClient/util/JPlagClientAccessHandler.java" debug="true"
  63. fork="true"> <classpath> <path refid="maven.compile.classpath" /> </classpath>
  64. </javac> Deactivated by lama: I don't understand what this is used for -
  65. I also removed the class and the ant-dependency <taskdef name="wscompile"
  66. classname="jplagWsClient.util.wscompileSSLLauncher"> <wscompile base="${basedir}/target"
  67. features="wsi" config="${basedir}/config-client.xml" xPrintStackTrace="true"
  68. keep="true" sourcebase="${basedir}/target/generated-sources/wscompile" client="true"
  69. verbose="true" fork="true"> <classpath> <path refid="maven.compile.classpath"
  70. /> <pathelement path="${basedir}/target"/> <pathelement location="${java.home}/../lib/tools.jar"
  71. /> </classpath> </wscompile> -->
  72. <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">
  73. <classpath>
  74. <path refid="maven.compile.classpath" />
  75. </classpath>
  76. </taskdef>
  77. <mkdir dir="${basedir}/target/generated-sources/wscompile" />
  78. <wscompile base="${basedir}/target" features="wsi"
  79. config="${basedir}/etc/config-server.xml" xPrintStackTrace="true"
  80. model="${basedir}/src/main/webapp/WEB-INF/model-wsdl-doclit.xml.gz"
  81. keep="true" sourcebase="${basedir}/target/generated-sources/wscompile"
  82. client="true" verbose="true" fork="true">
  83. <classpath>
  84. <path refid="maven.compile.classpath" />
  85. <pathelement path="${basedir}/target" />
  86. <pathelement location="${java.home}/../lib/tools.jar" />
  87. </classpath>
  88. </wscompile>
  89. <!-- <wscompile base="${basedir}/target" features="wsi" config="${basedir}/client/etc/config-client.xml"
  90. xPrintStackTrace="true" keep="true" sourcebase="${basedir}/target/generated-sources/wscompile"
  91. client="true" verbose="true" fork="true"> <classpath> <path refid="maven.compile.classpath"
  92. /> <pathelement path="${basedir}/target" /> <pathelement location="${java.home}/../lib/tools.jar"
  93. /> </classpath> </wscompile> -->
  94. </target>
  95. </configuration>
  96. <goals>
  97. <goal>run</goal>
  98. </goals>
  99. </execution>
  100. <execution>
  101. <id>wsDeploy</id>
  102. <phase>package</phase>
  103. <configuration>
  104. <target>
  105. <taskdef name="wsdeploy" classname="com.sun.xml.rpc.tools.ant.Wsdeploy">
  106. <classpath>
  107. <path refid="maven.compile.classpath" />
  108. <pathelement path="${basedir}/target" />
  109. <pathelement location="${java.home}/../lib/tools.jar" />
  110. </classpath>
  111. </taskdef>
  112. <wsdeploy
  113. inWarFile="${basedir}/target/${project.artifactId}-${project.version}.war"
  114. keep="false" outWarFile="${basedir}/target/JPlagService.war"
  115. verbose="true" fork="true">
  116. <classpath>
  117. <path refid="maven.compile.classpath" />
  118. <pathelement path="${basedir}/target" />
  119. <pathelement location="${java.home}/../lib/tools.jar" />
  120. </classpath>
  121. </wsdeploy>
  122. </target>
  123. </configuration>
  124. <goals>
  125. <goal>run</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <!-- Das funktioniert bei mir leider nicht - man muss manuell deployen :( -->
  131. <!--
  132. <plugin>
  133. <groupId>org.apache.tomcat.maven</groupId>
  134. <artifactId>tomcat7-maven-plugin</artifactId>
  135. <version>2.1</version>
  136. <configuration>
  137. <url>http://localhost:2606/manager</url>
  138. <server>mytomcat</server>
  139. <path>/JplagService</path>
  140. </configuration>
  141. </plugin>
  142. -->
  143. </plugins>
  144. <pluginManagement>
  145. <plugins>
  146. <!--This plugin's configuration is used to store Eclipse m2e settings
  147. only. It has no influence on the Maven build itself. -->
  148. <plugin>
  149. <groupId>org.eclipse.m2e</groupId>
  150. <artifactId>lifecycle-mapping</artifactId>
  151. <version>1.0.0</version>
  152. <configuration>
  153. <lifecycleMappingMetadata>
  154. <pluginExecutions>
  155. <pluginExecution>
  156. <pluginExecutionFilter>
  157. <groupId>
  158. org.apache.maven.plugins
  159. </groupId>
  160. <artifactId>
  161. maven-antrun-plugin
  162. </artifactId>
  163. <versionRange>
  164. [1.7,)
  165. </versionRange>
  166. <goals>
  167. <goal>run</goal>
  168. </goals>
  169. </pluginExecutionFilter>
  170. <action>
  171. <ignore></ignore>
  172. </action>
  173. </pluginExecution>
  174. </pluginExecutions>
  175. </lifecycleMappingMetadata>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </pluginManagement>
  180. </build>
  181. <dependencies>
  182. <dependency>
  183. <groupId>javax.mail</groupId>
  184. <artifactId>mail</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>edu.kit.ipd.jplag</groupId>
  188. <artifactId>jplag</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>com.sun.xml.rpc</groupId>
  192. <artifactId>jaxrpc-impl</artifactId>
  193. </dependency>
  194. <dependency>
  195. <groupId>edu.kit.ipd.jplag</groupId>
  196. <artifactId>utils</artifactId>
  197. </dependency>
  198. </dependencies>
  199. <packaging>war</packaging>
  200. </project>