-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy pathpom.xml
182 lines (175 loc) · 6.64 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2008, 2021 Sonatype, Inc. and others
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.m2e</groupId>
<artifactId>m2e-maven-runtime</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.m2e.maven.runtime</artifactId>
<version>3.8.601-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>M2E Embedded Maven Runtime (includes Incubating components)</name>
<properties>
<!-- maven core version -->
<maven-core.version>3.8.6</maven-core.version>
<!-- NOTE: When maven-core.version changes, this may impact the versions of the maven-resolver-*
jars that export the org.eclipse.aether.* packages in the org.eclipse.m2e.maven.runtime
bundle. So make sure the following variable has the value of the maven-resolver-* jars
https://bugs.eclipse.org/bugs/show_bug.cgi?id=529540 -->
<maven-resolver.version>1.6.3</maven-resolver.version>
<!-- below are m2e-specific addons -->
<plexus-build-api.version>0.0.7</plexus-build-api.version>
<okhttp-connector.version>0.17.8</okhttp-connector.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<exclusions>
<!-- Excluded dependencies are fulfilled via the OSGi requirements specified below as Import-Package/Require-Bundle and
therefore don't have to be embedded. Or they are not required. -->
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-compat-qual</artifactId>
</exclusion>
<exclusion>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-embedder</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-build-api</artifactId>
<version>${plexus-build-api.version}</version>
</dependency>
<dependency>
<groupId>io.takari.aether</groupId>
<artifactId>aether-connector-okhttp</artifactId>
<version>${okhttp-connector.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.aether</groupId>
<artifactId>aether-util</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-impl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-wagon</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
</dependency>
<dependency>
<!-- SLF4J-binding only used by a launched Maven-runtime.
Keep the BND-instructions below in sync with this jar's name. -->
<groupId>org.apache.maven</groupId>
<artifactId>maven-slf4j-provider</artifactId>
</dependency>
<!-- globally excluded transitive dependencies (set their scope to 'provided') -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
<version>${maven-core.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<configuration>
<bnd>
<![CDATA[
# When launching a Maven build using this embedded runtime, we want the embedded SLF4J logger binding to be used.
# However when the this Maven runtime is used within the Eclipse-IDE(-JVM) we don't want it to use the embedded SLF4J-binding
# but instead use the SLF4J-binding provided by the Eclipse runtime. This is achived by making the embedded SLF4J-binding invisible
# for OSGi, by simply NOT placing the binding's jar on the Bundle-ClassPath.
slf4jBinding=maven-slf4j-provider-${maven-core.version}.jar
M2E-SLF4JBinding=jars/${slf4jBinding}
-includeresource: \
jars/=jars/;recursive:=false;lib:=true;filter:=!${slf4jBinding},\
jars/=jars/${slf4jBinding};lib:=false
-exportcontents: \
META-INF.plexus;-noimport:=true;x-internal:=true,\
META-INF.sisu;-noimport:=true;x-internal:=true,\
org.apache.maven.*;provider=m2e;mandatory:=provider,\
org.codehaus.plexus.*;provider=m2e;mandatory:=provider,\
org.sonatype.plexus.*;provider=m2e;mandatory:=provider,\
org.eclipse.aether.*;provider=m2e;mandatory:=provider;version=${maven-resolver.version},\
com.google.inject.*;provider=m2e;mandatory:=provider,\
io.takari.*;provider=m2e;mandatory:=provider
Import-Package: \
org.slf4j;resolution:=optional;version="[1.6.2,2.0.0)",\
org.slf4j.spi;resolution:=optional;version="[1.6.2,2.0.0)",\
org.slf4j.helpers;resolution:=optional;version="[1.6.2,2.0.0)",\
javax.inject;version="1.0.0"
Require-Bundle: \
com.google.guava
]]>
<!-- All direct dependencies specified as Require-Bundle or Import-package are added to the classpath of a launched
Maven-Build-JVM. See MavenEmbeddedRuntime for details. -->
</bnd>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>