You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
3.9 KiB

  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. <parent>
  5. <groupId>com.sothr.imagetools</groupId>
  6. <artifactId>Parent</artifactId>
  7. <version>1.0.0</version>
  8. <relativePath>../parent</relativePath>
  9. </parent>
  10. <groupId>com.sothr.imagetools</groupId>
  11. <artifactId>ImageTools-CLI</artifactId>
  12. <version>0.1.0</version>
  13. <packaging>jar</packaging>
  14. <name>Image-Tools-CLI</name>
  15. <description>The Command Line Interface for Image-Tools</description>
  16. <url>http://imagetools.sothr.com</url>
  17. <organization>
  18. <name>Sothr Software</name>
  19. </organization>
  20. <dependencies>
  21. <dependency>
  22. <groupId>com.sothr.imagetools</groupId>
  23. <artifactId>ImageTools-Engine</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>ch.qos.logback</groupId>
  27. <artifactId>logback-core</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>ch.qos.logback</groupId>
  31. <artifactId>logback-classic</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>ch.qos.logback</groupId>
  35. <artifactId>logback-access</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.slf4j</groupId>
  39. <artifactId>slf4j-api</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.clapper</groupId>
  43. <artifactId>grizzled-slf4j_${scala.binary.version}</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.scala-lang</groupId>
  47. <artifactId>scala-library</artifactId>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <plugins>
  52. <!-- Packaging Configuration -->
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-jar-plugin</artifactId>
  56. <version>2.4</version>
  57. <executions>
  58. <execution>
  59. <phase>package</phase>
  60. <goals>
  61. <goal>jar</goal>
  62. </goals>
  63. <configuration>
  64. <archive>
  65. <manifest>
  66. <addClasspath>true</addClasspath>
  67. <classpathPrefix>lib/</classpathPrefix>
  68. <mainClass>com.sothr.imagetools.AppCLI</mainClass>
  69. </manifest>
  70. </archive>
  71. <outputDirectory>
  72. ${project.build.directory}/release
  73. </outputDirectory>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-antrun-plugin</artifactId>
  80. <version>1.4</version>
  81. <executions>
  82. <execution>
  83. <id>prepare</id>
  84. <phase>process-resources</phase>
  85. <configuration>
  86. <tasks>
  87. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  88. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  89. <copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" overwrite="true" />
  90. <chmod file="${project.build.directory}/startCLI.sh" perm="755"/>
  91. </tasks>
  92. </configuration>
  93. <goals>
  94. <goal>run</goal>
  95. </goals>
  96. </execution>
  97. <execution>
  98. <id>package</id>
  99. <phase>package</phase>
  100. <configuration>
  101. <tasks>
  102. <!-- set permissions on run files -->
  103. <chmod file="${project.build.directory}/release/startCLI.sh" perm="755"/>
  104. </tasks>
  105. </configuration>
  106. <goals>
  107. <goal>run</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. </project>