|
| 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 | +
|
| 7 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +
|
| 9 | + Unless required by applicable law or agreed to in writing, software |
| 10 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + See the License for the specific language governing permissions and |
| 13 | + limitations under the License. See accompanying LICENSE file. |
| 14 | +--> |
| 15 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 16 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 17 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 18 | + <parent> |
| 19 | + <artifactId>ozone-main</artifactId> |
| 20 | + <groupId>org.apache.ozone</groupId> |
| 21 | + <version>1.5.0-SNAPSHOT</version> |
| 22 | + </parent> |
| 23 | + <modelVersion>4.0.0</modelVersion> |
| 24 | + <artifactId>ozone-dev-support</artifactId> |
| 25 | + <description>Helper module for sharing resources among projects</description> |
| 26 | + <name>Apache Ozone Dev Support</name> |
| 27 | + |
| 28 | + <properties> |
| 29 | + <failIfNoTests>false</failIfNoTests> |
| 30 | + </properties> |
| 31 | + <build> |
| 32 | + <resources> |
| 33 | + <resource> |
| 34 | + <directory>${project.build.directory}/extra-resources</directory> |
| 35 | + <targetPath>META-INF</targetPath> |
| 36 | + <includes> |
| 37 | + <include>LICENSE.txt</include> |
| 38 | + <include>NOTICE.txt</include> |
| 39 | + </includes> |
| 40 | + </resource> |
| 41 | + </resources> |
| 42 | + <plugins> |
| 43 | + <plugin> |
| 44 | + <groupId>org.apache.maven.plugins</groupId> |
| 45 | + <artifactId>maven-site-plugin</artifactId> |
| 46 | + <configuration> |
| 47 | + <skip>true</skip> |
| 48 | + </configuration> |
| 49 | + </plugin> |
| 50 | + <!-- copy L&N files to target/extra-resources --> |
| 51 | + <plugin> |
| 52 | + <groupId>org.apache.maven.plugins</groupId> |
| 53 | + <artifactId>maven-resources-plugin</artifactId> |
| 54 | + <executions> |
| 55 | + <execution> |
| 56 | + <id>copy-resources</id> |
| 57 | + <phase>validate</phase> |
| 58 | + <goals> |
| 59 | + <goal>copy-resources</goal> |
| 60 | + </goals> |
| 61 | + <configuration> |
| 62 | + <outputDirectory>${project.build.directory}/extra-resources</outputDirectory> |
| 63 | + <resources> |
| 64 | + <resource> |
| 65 | + <directory>../</directory> |
| 66 | + <includes> |
| 67 | + <include>LICENSE.txt</include> |
| 68 | + <include>NOTICE.txt</include> |
| 69 | + </includes> |
| 70 | + </resource> |
| 71 | + </resources> |
| 72 | + </configuration> |
| 73 | + </execution> |
| 74 | + </executions> |
| 75 | + </plugin> |
| 76 | + <!-- add entries for L&N files to remote-resources.xml in jar file --> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-remote-resources-plugin</artifactId> |
| 80 | + <executions> |
| 81 | + <execution> |
| 82 | + <phase>process-resources</phase> |
| 83 | + <goals> |
| 84 | + <goal>bundle</goal> |
| 85 | + </goals> |
| 86 | + </execution> |
| 87 | + </executions> |
| 88 | + <configuration> |
| 89 | + <resourcesDirectory>${project.build.outputDirectory}</resourcesDirectory> |
| 90 | + <includes> |
| 91 | + <include>META-INF/LICENSE.txt</include> |
| 92 | + <include>META-INF/NOTICE.txt</include> |
| 93 | + </includes> |
| 94 | + </configuration> |
| 95 | + </plugin> |
| 96 | + </plugins> |
| 97 | + </build> |
| 98 | +</project> |
0 commit comments