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.

pom.xml 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  21. <parent>
  22. <groupId>org.apache.archiva</groupId>
  23. <artifactId>archiva</artifactId>
  24. <version>3.0.0-SNAPSHOT</version>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>archiva-cli</artifactId>
  28. <name>Archiva :: Command Line Client</name>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.apache.archiva</groupId>
  32. <artifactId>archiva-repository-scanner</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.archiva</groupId>
  36. <artifactId>archiva-repository-admin-api</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.archiva</groupId>
  40. <artifactId>archiva-repository-admin-default</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.archiva</groupId>
  44. <artifactId>archiva-consumer-api</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.archiva</groupId>
  48. <artifactId>archiva-repository-api</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.archiva</groupId>
  52. <artifactId>archiva-repository-layer</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.google.code.cli-parser</groupId>
  56. <artifactId>cli</artifactId>
  57. <version>7</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.commons</groupId>
  61. <artifactId>commons-lang3</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-context</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.logging.log4j</groupId>
  69. <artifactId>log4j-slf4j-impl</artifactId>
  70. </dependency>
  71. <!-- Consumers to include -->
  72. <!--
  73. This will require some additional configuration now to point to an appropriate metadata repository storage, which is not in the CLI yet
  74. <dependency>
  75. <groupId>org.apache.archiva</groupId>
  76. <artifactId>archiva-metadata-consumer</artifactId>
  77. <scope>runtime</scope>
  78. </dependency>
  79. -->
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-shade-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>shade</goal>
  91. </goals>
  92. <configuration>
  93. <createDependencyReducedPom>false</createDependencyReducedPom>
  94. <finalName>apache-archiva-cli-${project.version}</finalName>
  95. <transformers>
  96. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  97. <resource>META-INF/spring.handlers</resource>
  98. </transformer>
  99. <transformer implementation="org.apache.maven.plugins.shade.resource.XmlAppendingTransformer">
  100. <resource>META-INF/spring-context.xml</resource>
  101. </transformer>
  102. <transformer implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" />
  103. </transformers>
  104. <artifactSet>
  105. <excludes>
  106. <exclude>xerces:xercesImpl</exclude>
  107. <exclude>xml-apis:xml-apis</exclude>
  108. <exclude>xalan:xalan</exclude>
  109. <exclude>commons-beanutils:commons-beanutils</exclude>
  110. </excludes>
  111. </artifactSet>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-jar-plugin</artifactId>
  119. <configuration>
  120. <archive>
  121. <manifest>
  122. <mainClass>org.apache.archiva.cli.ArchivaCli</mainClass>
  123. </manifest>
  124. </archive>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.codehaus.mojo</groupId>
  129. <artifactId>exec-maven-plugin</artifactId>
  130. <configuration>
  131. <executable>java</executable>
  132. <mainClass>org.apache.archiva.cli.ArchivaCli</mainClass>
  133. <arguments>
  134. </arguments>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>