Skip to content

Commit 063fe0d

Browse files
authored
Merge pull request #246 from cstamas/drop-bad-boys
Move off from Maven2 codebase (maven-compat)
2 parents 0d7f93a + 1c98e30 commit 063fe0d

40 files changed

+1235
-775
lines changed

nbm-maven-plugin/pom.xml

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ under the License.
4242
</prerequisites>
4343

4444
<dependencies>
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-api</artifactId>
48+
</dependency>
4549
<dependency>
4650
<groupId>org.apache.maven</groupId>
4751
<artifactId>maven-archiver</artifactId>
@@ -114,38 +118,33 @@ under the License.
114118
<artifactId>maven-plugin-annotations</artifactId>
115119
<scope>provided</scope>
116120
</dependency>
117-
118-
<!-- BAD BOYS: we want to get rid of these -->
119121
<dependency>
120-
<groupId>org.apache.maven</groupId>
121-
<artifactId>maven-compat</artifactId>
122+
<groupId>org.apache.maven.resolver</groupId>
123+
<artifactId>maven-resolver-api</artifactId>
122124
<scope>provided</scope>
123125
</dependency>
124126
<dependency>
125-
<groupId>org.apache.maven.shared</groupId>
126-
<artifactId>maven-filtering</artifactId>
127-
<version>3.4.0</version>
127+
<groupId>org.apache.maven.resolver</groupId>
128+
<artifactId>maven-resolver-util</artifactId>
129+
<!-- scope compile to work across Maven 3.8/3.9 -->
128130
</dependency>
131+
129132
<dependency>
130133
<groupId>org.apache.maven.shared</groupId>
131-
<artifactId>maven-dependency-tree</artifactId>
132-
<version>3.3.0</version>
134+
<artifactId>maven-dependency-analyzer</artifactId>
135+
<version>1.16.0</version>
133136
</dependency>
134137
<dependency>
135138
<groupId>org.apache.maven.shared</groupId>
136-
<artifactId>maven-dependency-analyzer</artifactId>
137-
<version>1.16.0</version>
139+
<artifactId>maven-filtering</artifactId>
140+
<version>3.4.0</version>
138141
<exclusions>
139142
<exclusion>
140-
<groupId>org.ow2.asm</groupId>
141-
<artifactId>asm</artifactId>
143+
<groupId>org.codehaus.plexus</groupId>
144+
<artifactId>plexus-xml</artifactId>
142145
</exclusion>
143146
</exclusions>
144147
</dependency>
145-
<dependency>
146-
<groupId>org.ow2.asm</groupId>
147-
<artifactId>asm</artifactId>
148-
</dependency>
149148

150149
<!-- tests -->
151150
<dependency>
@@ -168,10 +167,35 @@ under the License.
168167
<artifactId>mockito-core</artifactId>
169168
<scope>test</scope>
170169
</dependency>
170+
<dependency>
171+
<groupId>org.apache.maven</groupId>
172+
<artifactId>maven-compat</artifactId>
173+
<scope>test</scope>
174+
</dependency>
171175
</dependencies>
172176

173177
<build>
178+
<resources>
179+
<resource>
180+
<directory>src/main/filtered-resources</directory>
181+
<filtering>true</filtering>
182+
</resource>
183+
</resources>
174184
<plugins>
185+
<plugin>
186+
<groupId>org.eclipse.sisu</groupId>
187+
<artifactId>sisu-maven-plugin</artifactId>
188+
<version>0.9.0.M4</version>
189+
<executions>
190+
<execution>
191+
<id>index-project</id>
192+
<goals>
193+
<goal>main-index</goal>
194+
<goal>test-index</goal>
195+
</goals>
196+
</execution>
197+
</executions>
198+
</plugin>
175199
<plugin>
176200
<!-- TODO need to override parent version value... I suppose this will eventually end up in mojo parent pom, check regularly -->
177201
<groupId>org.apache.maven.plugins</groupId>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# TODO: good practice to lock down plugin versions (and use ${project.version} for plugins from this project)
2+
process-test-resources=org.apache.maven.plugins:maven-resources-plugin:testResources
3+
test-compile=org.apache.maven.plugins:maven-compiler-plugin:testCompile
4+
package=org.apache.netbeans.utilities:nbm-maven-plugin:cluster-app,org.apache.netbeans.utilities:nbm-maven-plugin:standalone-zip
5+
integration-test=org.apache.maven.plugins:maven-surefire-plugin:test
6+
install=org.apache.maven.plugins:maven-install-plugin:install
7+
deploy=org.apache.maven.plugins:maven-deploy-plugin:deploy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# TODO: good practice to lock down plugin versions (and use ${project.version} for plugins from this project)
2+
process-resources=org.apache.maven.plugins:maven-resources-plugin:resources
3+
compile=org.apache.maven.plugins:maven-compiler-plugin:compile
4+
process-classes=org.apache.netbeans.utilities:nbm-maven-plugin:manifest
5+
process-test-resources=org.apache.maven.plugins:maven-resources-plugin:testResources
6+
test-compile=org.apache.maven.plugins:maven-compiler-plugin:testCompile
7+
test=org.apache.maven.plugins:maven-surefire-plugin:test
8+
package=org.apache.maven.plugins:maven-jar-plugin:jar,org.apache.netbeans.utilities:nbm-maven-plugin:branding,org.apache.netbeans.utilities:nbm-maven-plugin:nbm
9+
install=org.apache.maven.plugins:maven-install-plugin:install
10+
deploy=org.apache.maven.plugins:maven-deploy-plugin:deploy

0 commit comments

Comments
 (0)