pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-ozone</artifactId>
  20. <version>0.5.0-SNAPSHOT</version>
  21. </parent>
  22. <artifactId>hadoop-ozone-filesystem-lib-legacy</artifactId>
  23. <name>Apache Hadoop Ozone FileSystem Legacy Jar Library</name>
  24. <description>This projects creates an uberjar from ozonefs with all the
  25. dependencies, but the dependencies are located in an isolated subdir
  26. and loaded by a custom class loader. Can be used together with Hadoop 2.x
  27. </description>
  28. <packaging>jar</packaging>
  29. <version>0.5.0-SNAPSHOT</version>
  30. <properties>
  31. <file.encoding>UTF-8</file.encoding>
  32. <downloadSources>true</downloadSources>
  33. </properties>
  34. <build>
  35. <plugins>
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-jar-plugin</artifactId>
  39. <executions>
  40. <execution>
  41. <goals>
  42. <goal>test-jar</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-dependency-plugin</artifactId>
  50. <executions>
  51. <execution>
  52. <id>include-dependencies</id>
  53. <goals>
  54. <goal>unpack-dependencies</goal>
  55. </goals>
  56. <phase>prepare-package</phase>
  57. <configuration>
  58. <outputDirectory>target/classes/libs</outputDirectory>
  59. <includeScope>compile</includeScope>
  60. <excludes>META-INF/*.SF</excludes>
  61. <excludeArtifactIds>
  62. slf4j-api,slf4j-log4j12,log4j-api,log4j-core,log4j,hadoop-ozone-filesystem
  63. </excludeArtifactIds>
  64. <markersDirectory>
  65. ${project.build.directory}/dependency-maven-plugin-markers-lib
  66. </markersDirectory>
  67. </configuration>
  68. </execution>
  69. <execution>
  70. <id>include-ozonefs</id>
  71. <goals>
  72. <goal>unpack-dependencies</goal>
  73. </goals>
  74. <phase>prepare-package</phase>
  75. <configuration>
  76. <outputDirectory>target/classes</outputDirectory>
  77. <includeArtifactIds>hadoop-ozone-filesystem,hadoop-ozone-common
  78. </includeArtifactIds>
  79. <includeScope>compile</includeScope>
  80. <excludes>META-INF/*.SF</excludes>
  81. <markersDirectory>
  82. ${project.build.directory}/dependency-maven-plugin-markers-direct
  83. </markersDirectory>
  84. </configuration>
  85. </execution>
  86. <execution>
  87. <id>include-token</id>
  88. <goals>
  89. <goal>unpack-dependencies</goal>
  90. </goals>
  91. <phase>prepare-package</phase>
  92. <configuration>
  93. <outputDirectory>target/classes</outputDirectory>
  94. <includeArtifactIds>hadoop-ozone-common,hadoop-hdds-common</includeArtifactIds>
  95. <includeScope>compile</includeScope>
  96. <includes>
  97. org/apache/hadoop/ozone/security/OzoneTokenIdentifier.class,org/apache/hadoop/hdds/security/token/OzoneBlockTokenIdentifier.class,org/apache/hadoop/ozone/protocol/proto/OzoneManagerProtocolProtos*,org/apache/hadoop/hdds/protocol/proto/HddsProtos*
  98. </includes>
  99. <excludes>META-INF/*.SF</excludes>
  100. <markersDirectory>
  101. ${project.build.directory}/dependency-maven-plugin-markers-token
  102. </markersDirectory>
  103. </configuration>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.codehaus.mojo</groupId>
  109. <artifactId>animal-sniffer-maven-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <id>signature-check</id>
  113. <phase></phase>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.codehaus.mojo</groupId>
  119. <artifactId>findbugs-maven-plugin</artifactId>
  120. <configuration>
  121. <skip>true</skip>
  122. </configuration>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. <dependencies>
  127. <dependency>
  128. <groupId>org.apache.hadoop</groupId>
  129. <artifactId>hadoop-ozone-filesystem</artifactId>
  130. <scope>compile</scope>
  131. </dependency>
  132. </dependencies>
  133. </project>