Skip to content

Commit 4b13c73

Browse files
authored
Toolbox mvnsh integration (#151)
Integrate Toolbox into mvnsh. Example: https://gist.github.com/cstamas/81b150e3f4b8347f0610779f4f230421 Use it as following entry in `.mvn/extensions.xml`: ```xml <?xml version="1.0" encoding="UTF-8"?> <extensions> <extension> <groupId>eu.maveniverse.maven.toolbox</groupId> <artifactId>mvnsh</artifactId> <version>0.6.2-SNAPSHOT</version> </extension> </extensions> ``` Needs Maven 4.0.0-rc-3+
1 parent 346443f commit 4b13c73

File tree

35 files changed

+1359
-368
lines changed

35 files changed

+1359
-368
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
uses: maveniverse/parent/.github/workflows/ci.yml@release-26
1313
with:
1414
jdk-matrix: '[ "11", "21" ]'
15-
maven-test: './mvnw clean verify -e -B -V -P run-its -rf :it'
15+
maven-test: './mvnw clean verify -e -B -V -P run-its -f it'
1616

it/toolbox-plugin-its/src/it/plugin-versions/my-repo/org/maveniverse/maven/toolbox/it/versions/first/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>first</artifactId>

it/toolbox-plugin-its/src/it/plugin-versions/my-repo/org/maveniverse/maven/toolbox/it/versions/fourth/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>fourth</artifactId>

it/toolbox-plugin-its/src/it/plugin-versions/my-repo/org/maveniverse/maven/toolbox/it/versions/second/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>second</artifactId>

it/toolbox-plugin-its/src/it/plugin-versions/my-repo/org/maveniverse/maven/toolbox/it/versions/third/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>third</artifactId>

it/toolbox-plugin-its/src/it/versions/my-repo/org/maveniverse/maven/toolbox/it/versions/first/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>first</artifactId>

it/toolbox-plugin-its/src/it/versions/my-repo/org/maveniverse/maven/toolbox/it/versions/fourth/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>fourth</artifactId>

it/toolbox-plugin-its/src/it/versions/my-repo/org/maveniverse/maven/toolbox/it/versions/second/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>second</artifactId>

it/toolbox-plugin-its/src/it/versions/my-repo/org/maveniverse/maven/toolbox/it/versions/third/maven-metadata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
211
<metadata>
312
<groupId>org.maveniverse.maven.toolbox.it.versions</groupId>
413
<artifactId>third</artifactId>

mvnsh/pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2024 Maveniverse Org.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v2.0
7+
which accompanies this distribution, and is available at
8+
https://www.eclipse.org/legal/epl-v20.html
9+
10+
-->
11+
<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">
12+
<modelVersion>4.0.0</modelVersion>
13+
14+
<parent>
15+
<groupId>eu.maveniverse.maven.toolbox</groupId>
16+
<artifactId>toolbox</artifactId>
17+
<version>0.6.5-SNAPSHOT</version>
18+
</parent>
19+
20+
<artifactId>mvnsh</artifactId>
21+
22+
<name>${project.groupId}:${project.artifactId}</name>
23+
24+
<properties>
25+
<!-- Aligned with Maven 4 -->
26+
<maven.compiler.release>17</maven.compiler.release>
27+
</properties>
28+
29+
<dependencies>
30+
<dependency>
31+
<groupId>org.apache.maven</groupId>
32+
<artifactId>maven-cli</artifactId>
33+
<version>4.0.0-rc-3</version>
34+
<scope>provided</scope>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>eu.maveniverse.maven.plugins</groupId>
39+
<artifactId>toolbox</artifactId>
40+
<exclusions>
41+
<exclusion>
42+
<groupId>org.jline</groupId>
43+
<artifactId>jline</artifactId>
44+
</exclusion>
45+
<exclusion>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-api</artifactId>
48+
</exclusion>
49+
<exclusion>
50+
<groupId>org.slf4j</groupId>
51+
<artifactId>jcl-over-slf4j</artifactId>
52+
</exclusion>
53+
<exclusion>
54+
<groupId>eu.maveniverse.maven.mima.runtime</groupId>
55+
<artifactId>embedded-maven</artifactId>
56+
</exclusion>
57+
</exclusions>
58+
</dependency>
59+
<dependency>
60+
<groupId>eu.maveniverse.maven.mima.runtime</groupId>
61+
<artifactId>standalone-static-uber</artifactId>
62+
</dependency>
63+
</dependencies>
64+
65+
</project>

0 commit comments

Comments
 (0)