Skip to content

Instantly share code, notes, and snippets.

@TobiX
Created April 27, 2019 14:41
Show Gist options
  • Save TobiX/3b02685763125abbccf243f173f6631e to your computer and use it in GitHub Desktop.
Save TobiX/3b02685763125abbccf243f173f6631e to your computer and use it in GitHub Desktop.
BOM vs. direct
>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------------< test:test >------------------------------
[INFO] Building test 1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ test ---
[INFO] test:test:jar:1
[INFO] \- org.eclipse.jetty:jetty-hazelcast:jar:9.4.15.v20190215:compile
[INFO] +- com.hazelcast:hazelcast:test-jar:tests:3.9.3:compile
[INFO] +- com.hazelcast:hazelcast-client:jar:3.9.3:compile
[INFO] +- com.hazelcast:hazelcast:jar:3.9.3:compile
[INFO] \- org.eclipse.jetty:jetty-server:jar:9.4.15.v20190215:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- org.eclipse.jetty:jetty-http:jar:9.4.15.v20190215:compile
[INFO] | \- org.eclipse.jetty:jetty-util:jar:9.4.15.v20190215:compile
[INFO] \- org.eclipse.jetty:jetty-io:jar:9.4.15.v20190215:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.399 s
[INFO] Finished at: 2019-04-27T16:38:32+02:00
[INFO] ------------------------------------------------------------------------
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1</version>
<properties>
<jetty.version>9.4.15.v20190215</jetty.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
<version>${jetty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-hazelcast</artifactId>
</dependency>
</dependencies>
</project>
>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------------< test:test >------------------------------
[INFO] Building test 2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ test ---
[INFO] test:test:jar:2
[INFO] \- org.eclipse.jetty:jetty-hazelcast:jar:9.4.15.v20190215:compile
[INFO] +- com.hazelcast:hazelcast:test-jar:tests:3.9.3:compile
[INFO] +- com.hazelcast:hazelcast-client:jar:3.9.3:compile
[INFO] +- com.hazelcast:hazelcast:jar:3.9.3:compile
[INFO] \- org.eclipse.jetty:jetty-server:jar:9.4.15.v20190215:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- org.eclipse.jetty:jetty-http:jar:9.4.15.v20190215:compile
[INFO] | \- org.eclipse.jetty:jetty-util:jar:9.4.15.v20190215:compile
[INFO] \- org.eclipse.jetty:jetty-io:jar:9.4.15.v20190215:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.335 s
[INFO] Finished at: 2019-04-27T16:41:16+02:00
[INFO] ------------------------------------------------------------------------
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>2</version>
<properties>
<jetty.version>9.4.15.v20190215</jetty.version>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-hazelcast</artifactId>
<version>${jetty.version}</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment