Skip to content

Instantly share code, notes, and snippets.

View gnodet's full-sized avatar

Guillaume Nodet gnodet

  • Red Hat
  • Caen, France
View GitHub Profile
@gnodet
gnodet / maven-archiver-4.0.0-beta-3.md
Last active November 27, 2024 17:10
Apache Maven Archiver 4.0.0-beta-3 release notes
@gnodet
gnodet / 2.0.0-rc-1.md
Created November 26, 2024 10:03
Apache Maven Daemon 2.0.0-rc-1 release notes

What's Changed

@gnodet
gnodet / maven-fat-bom.xml
Created October 17, 2024 08:49
Maven FAT BOM
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-bom</artifactId>
<version>4.0.0-beta-5-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Maven Dependencies BOM</name>
<description>Bill Of Materials for Apache Maven - All dependencies</description>
<properties>
@gnodet
gnodet / maven-skinny-bom.xml
Created October 17, 2024 08:48
Skinny Maven BOM
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-bom</artifactId>
<version>4.0.0-beta-5-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Maven Dependencies BOM</name>
<description>Bill Of Materials for Apache Maven - Maven JARS only</description>
<properties>
diff --git a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java
index 6675d7bf96..c3266d2eb8 100644
--- a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java
+++ b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolver.java
@@ -56,6 +56,7 @@
import org.eclipse.aether.collection.DependencyCollectionException;
import org.eclipse.aether.graph.DependencyFilter;
import org.eclipse.aether.graph.DependencyNode;
+import org.eclipse.aether.scope.ResolutionScope;
import org.eclipse.aether.util.graph.manager.DependencyManagerUtils;
➜ MNG-8041 git:(main) ~/work/git/maven/apache-maven/target/apache-maven-4.0.0-beta-5-SNAPSHOT/bin/mvn org.gnodet.test:test-mojo:1.0-SNAPSHOT:static-tree
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------------------------< org.cstamas.test:guice-guava >---------------------------------------------
[INFO] Building guice-guava 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] ---------------------------------------------------------[ jar ]----------------------------------------------------------
[INFO]
[INFO] --- test:1.0-SNAPSHOT:static-tree (default-cli) @ guice-guava ---
org.cstamas.test:guice-guava:pom:1.0-SNAPSHOT
@gnodet
gnodet / create-jira-link-pr.sh
Created October 14, 2024 20:08
Create a JIRA issue and link it to the PR
@gnodet
gnodet / gist:f70c42d2c2e98526f783f5fc4083aaa6
Created September 30, 2024 20:07
create-jira-link-pr.sh
#!/bin/bash
# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is not installed. Please install jq to run this script."
exit 1
fi
# Check if a PR number was provided
if [ $# -eq 0 ]; then
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
</parent>
<groupId>com.javatpoint</groupId>
<artifactId>spring-boot-hello-world</artifactId>
<version>0.0.1-SNAPSHOT</version>
0a1
> [INFO] Unable to find the root directory. Create a .mvn directory in the root directory or add the root="true" attribute on the root project's model to identify it.
3c4
< [INFO] ------------< org.apache.maven.plugins:maven-clean-plugin >-------------
---
> [INFO] -------------------------------------< org.apache.maven.plugins:maven-clean-plugin >--------------------------------------
6c7
< [INFO] ----------------------------[ maven-plugin ]----------------------------
---
> [INFO] -----------------------------------------------------[ maven-plugin ]-----------------------------------------------------