pom.xml 6.9 KB

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