Skip to content

Commit

Permalink
Merge pull request eugenp#3 from hajk1/BAEL-5082
Browse files Browse the repository at this point in the history
Bael 5082
  • Loading branch information
hajk1 committed Aug 18, 2021
2 parents edce0fd + 6b1804c commit d54f7e7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions maven-dependency-management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<groupId>com.baeldung</groupId>
<artifactId>maven-dependency-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
<module>sample-module</module>
</modules>

<dependencyManagement>
<dependencies>
Expand All @@ -17,6 +22,11 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3-version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -30,4 +40,7 @@
<artifactId>log4j-core</artifactId>
</dependency>
</dependencies>
<properties>
<commons-lang3-version>3.11</commons-lang3-version>
</properties>
</project>
24 changes: 24 additions & 0 deletions maven-dependency-management/sample-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>

<artifactId>sample-module</artifactId>
<version>1.0.0-SNAPSHOT</version>

<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-dependency-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.baeldung;

import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Main {
private static final Logger logger = LogManager.getLogger(Main.class);

public static void main(String[] args) {

logger.info("This is a sample class");
StringUtils.isBlank(" ");
}
}

0 comments on commit d54f7e7

Please sign in to comment.