|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 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.1.0"> |
| 21 | + <modelVersion>4.1.0</modelVersion> |
| 22 | + |
| 23 | + <groupId>org.apache.maven.its.mng8572</groupId> |
| 24 | + <artifactId>custom-type-maven-plugin</artifactId> |
| 25 | + <version>1.0-SNAPSHOT</version> |
| 26 | + <packaging>maven-plugin</packaging> |
| 27 | + |
| 28 | + <name>MNG-8572 Custom Type Handler Maven Plugin</name> |
| 29 | + <description>Maven plugin with extensions=true that provides a custom artifact type handler using Maven API DI</description> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 33 | + <maven.compiler.source>17</maven.compiler.source> |
| 34 | + <maven.compiler.target>17</maven.compiler.target> |
| 35 | + </properties> |
| 36 | + |
| 37 | + <dependencies> |
| 38 | + <!-- Maven API for DI and SPI --> |
| 39 | + <dependency> |
| 40 | + <groupId>org.apache.maven</groupId> |
| 41 | + <artifactId>maven-api-core</artifactId> |
| 42 | + <version>4.0.0-rc-3</version> |
| 43 | + <scope>provided</scope> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.apache.maven</groupId> |
| 47 | + <artifactId>maven-api-di</artifactId> |
| 48 | + <version>4.0.0-rc-3</version> |
| 49 | + <scope>provided</scope> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.apache.maven</groupId> |
| 53 | + <artifactId>maven-api-spi</artifactId> |
| 54 | + <version>4.0.0-rc-3</version> |
| 55 | + <scope>provided</scope> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.slf4j</groupId> |
| 59 | + <artifactId>slf4j-api</artifactId> |
| 60 | + <version>2.0.16</version> |
| 61 | + <scope>provided</scope> |
| 62 | + </dependency> |
| 63 | + </dependencies> |
| 64 | + |
| 65 | + <build> |
| 66 | + <plugins> |
| 67 | + <!-- Configure as extension --> |
| 68 | + <plugin> |
| 69 | + <groupId>org.apache.maven.plugins</groupId> |
| 70 | + <artifactId>maven-plugin-plugin</artifactId> |
| 71 | + <version>4.0.0-beta-1</version> |
| 72 | + <extensions>true</extensions> |
| 73 | + <configuration> |
| 74 | + <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> |
| 75 | + <extractors> |
| 76 | + <extractor>java-annotations</extractor> |
| 77 | + </extractors> |
| 78 | + </configuration> |
| 79 | + </plugin> |
| 80 | + |
| 81 | + <!-- Compiler with annotation processing for DI index generation --> |
| 82 | + <plugin> |
| 83 | + <groupId>org.apache.maven.plugins</groupId> |
| 84 | + <artifactId>maven-compiler-plugin</artifactId> |
| 85 | + <version>3.14.0</version> |
| 86 | + <configuration> |
| 87 | + <release>17</release> |
| 88 | + <proc>full</proc> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + </plugins> |
| 92 | + </build> |
| 93 | +</project> |
0 commit comments