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.

122 lines
3.8 KiB

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