| 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.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/xsd/maven-4.0.0.xsd"> |
| 21 |
<modelVersion>4.0.0</modelVersion> |
| 22 |
|
| 23 |
<parent> |
| 24 |
<groupId>org.apache.maven.resolver</groupId> |
| 25 |
<artifactId>maven-resolver-demos</artifactId> |
| 26 |
<version>1.9.25</version> |
| 27 |
</parent> |
| 28 |
|
| 29 |
<artifactId>resolver-demo-maven-plugin</artifactId> |
| 30 |
<packaging>maven-plugin</packaging> |
| 31 |
|
| 32 |
<name>Maven Artifact Resolver Demo Maven Plugin</name> |
| 33 |
<description>A simple Maven plugin using Maven Artifact Resolver with Maven repositories.</description> |
| 34 |
|
| 35 |
<prerequisites> |
| 36 |
<maven>${minimalMavenBuildVersion}</maven> |
| 37 |
</prerequisites> |
| 38 |
|
| 39 |
<dependencies> |
| 40 |
<dependency> |
| 41 |
<groupId>org.apache.maven</groupId> |
| 42 |
<artifactId>maven-plugin-api</artifactId> |
| 43 |
<version>${mavenVersion}</version> |
| 44 |
<scope>provided</scope> |
| 45 |
<exclusions> |
| 46 |
<exclusion> |
| 47 |
<groupId>org.apache.maven</groupId> |
| 48 |
<artifactId>maven-model</artifactId> |
| 49 |
</exclusion> |
| 50 |
<exclusion> |
| 51 |
<groupId>org.apache.maven</groupId> |
| 52 |
<artifactId>maven-artifact</artifactId> |
| 53 |
</exclusion> |
| 54 |
<exclusion> |
| 55 |
<groupId>org.eclipse.sisu</groupId> |
| 56 |
<artifactId>org.eclipse.sisu.plexus</artifactId> |
| 57 |
</exclusion> |
| 58 |
</exclusions> |
| 59 |
</dependency> |
| 60 |
<dependency> |
| 61 |
<groupId>org.apache.maven.resolver</groupId> |
| 62 |
<artifactId>maven-resolver-api</artifactId> |
| 63 |
</dependency> |
| 64 |
<dependency> |
| 65 |
<groupId>org.apache.maven.plugin-tools</groupId> |
| 66 |
<artifactId>maven-plugin-annotations</artifactId> |
| 67 |
<version>${version.maven-plugin-tools}</version> |
| 68 |
<scope>provided</scope> |
| 69 |
<optional>true</optional> |
| 70 |
</dependency> |
| 71 |
<dependency> |
| 72 |
<groupId>org.slf4j</groupId> |
| 73 |
<artifactId>slf4j-api</artifactId> |
| 74 |
<scope>provided</scope> |
| 75 |
</dependency> |
| 76 |
</dependencies> |
| 77 |
|
| 78 |
<profiles> |
| 79 |
<profile> |
| 80 |
<id>run-its</id> |
| 81 |
<build> |
| 82 |
<plugins> |
| 83 |
<plugin> |
| 84 |
<groupId>org.apache.maven.plugins</groupId> |
| 85 |
<artifactId>maven-invoker-plugin</artifactId> |
| 86 |
<configuration> |
| 87 |
<debug>false</debug> |
| 88 |
<projectsDirectory>src/it</projectsDirectory> |
| 89 |
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
| 90 |
<pomIncludes> |
| 91 |
<pomInclude>*/pom.xml</pomInclude> |
| 92 |
</pomIncludes> |
| 93 |
<preBuildHookScript>setup</preBuildHookScript> |
| 94 |
<postBuildHookScript>verify</postBuildHookScript> |
| 95 |
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> |
| 96 |
<settingsFile>src/it/settings.xml</settingsFile> |
| 97 |
<goals> |
| 98 |
<goal>clean</goal> |
| 99 |
<goal>validate</goal> |
| 100 |
</goals> |
| 101 |
<properties> |
| 102 |
<!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central --> |
| 103 |
<https.protocols>${https.protocols}</https.protocols> |
| 104 |
</properties> |
| 105 |
</configuration> |
| 106 |
<executions> |
| 107 |
<execution> |
| 108 |
<id>integration-test</id> |
| 109 |
<goals> |
| 110 |
<goal>install</goal> |
| 111 |
<goal>run</goal> |
| 112 |
</goals> |
| 113 |
</execution> |
| 114 |
</executions> |
| 115 |
</plugin> |
| 116 |
</plugins> |
| 117 |
</build> |
| 118 |
</profile> |
| 119 |
</profiles> |
| 120 |
</project> |