pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <parent>
  4. <groupId>net.sf.openas2</groupId>
  5. <artifactId>OpenAS2</artifactId>
  6. <version>2.4.0</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>org.openas2</groupId>
  10. <artifactId>openas2-server</artifactId>
  11. <version>2.2.1</version>
  12. <name>OpenAS2 Server</name>
  13. <url>https://sourceforge.net/projects/openas2</url>
  14. <description>Open source implementation of the AS2 standard for signed encrypted and compressed document transfer</description>
  15. <properties>
  16. <project.dist.package.name>${project.parent.artifactId}Server-${project.version}.zip</project.dist.package.name>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <lib.dir>${basedir}/lib</lib.dir>
  19. <help.filename>OpenAS2HowTo.pdf</help.filename>
  20. <help.file.src>../docs/${help.filename}</help.file.src>
  21. <dist.dir>dist</dist.dir>
  22. </properties>
  23. <build>
  24. <sourceDirectory>src/main/java</sourceDirectory>
  25. <directory>target</directory>
  26. <outputDirectory>${project.build.directory}/classes</outputDirectory>
  27. <!-- <finalName>${project.artifactId}-${project.version}</finalName> -->
  28. <finalName>${project.artifactId}</finalName>
  29. <testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
  30. <plugins>
  31. <plugin>
  32. <artifactId>maven-antrun-plugin</artifactId>
  33. <version>1.8</version>
  34. <executions>
  35. <execution>
  36. <id>default-cli</id>
  37. <goals>
  38. <goal>run</goal>
  39. </goals>
  40. <phase>package</phase>
  41. <configuration>
  42. <target>
  43. <delete file="${lib.dir}/${project.build.finalName}.jar" />
  44. <copy file="${project.build.directory}/${project.build.finalName}.jar" todir="${lib.dir}" />
  45. <!-- Create the distribution directory -->
  46. <mkdir dir="${dist.dir}" />
  47. <!-- Add the help PDF version to the distro -->
  48. <copy file="${help.file.src}" todir="${basedir}" />
  49. <!-- create distribution package -->
  50. <zip destfile="${dist.dir}/${project.dist.package.name}"
  51. basedir="." excludes="dist/**,temp/**,logs/**,data/**,target/**" />
  52. <!-- Remove the copied help file -->
  53. <delete file="${help.filename}" />
  54. </target>
  55. </configuration>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <version>3.1</version>
  62. <configuration>
  63. <source>1.6</source>
  64. <target>1.6</target>
  65. </configuration>
  66. </plugin>
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-jar-plugin</artifactId>
  70. <version>3.0.2</version>
  71. <configuration>
  72. <archive>
  73. <index>true</index>
  74. <manifest>
  75. <addClasspath>true</addClasspath>
  76. <mainClass>org.openas2.app.OpenAS2Server</mainClass>
  77. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  78. <!-- get the correct release version number into the MANIFEST file as "Implementation-Version" -->
  79. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  80. </manifest>
  81. </archive>
  82. </configuration>
  83. </plugin>
  84. </plugins>
  85. </build>
  86. <dependencies>
  87. <dependency>
  88. <groupId>org.dom4j</groupId>
  89. <artifactId>dom4j</artifactId>
  90. <version>2.0.0</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.bouncycastle</groupId>
  94. <artifactId>bcmail-jdk15on</artifactId>
  95. <version>1.54</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.bouncycastle</groupId>
  99. <artifactId>bcpkix-jdk15on</artifactId>
  100. <version>1.54</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.bouncycastle</groupId>
  104. <artifactId>bcprov-jdk15on</artifactId>
  105. <version>1.54</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.commons</groupId>
  109. <artifactId>commons-lang3</artifactId>
  110. <version>3.4</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-logging</groupId>
  114. <artifactId>commons-logging</artifactId>
  115. <version>1.2</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>javax.mail</groupId>
  119. <artifactId>mail</artifactId>
  120. <version>1.4.7</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.h2database</groupId>
  124. <artifactId>h2</artifactId>
  125. <version>1.4.193</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.bouncycastle</groupId>
  129. <artifactId>bcpg-jdk15on</artifactId>
  130. <version>1.54</version>
  131. </dependency>
  132. </dependencies>
  133. </project>