diff --git a/maven-modules/maven-plugins/maven-jacoco/pom.xml b/maven-modules/maven-plugins/maven-jacoco/pom.xml deleted file mode 100644 index 3298b780e0..0000000000 --- a/maven-modules/maven-plugins/maven-jacoco/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - maven-plugins - com.baeldung - 0.0.1-SNAPSHOT - - 4.0.0 - - maven-jacoco - - - org.projectlombok - lombok - 1.18.20 - provided - - - - - - maven-verifier-plugin - ${maven.verifier.version} - - - none - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco.version} - - - com/baeldung/**/ExcludedPOJO.class - com/baeldung/**/*DTO.* - **/config/* - - - - - jacoco-initialize - - prepare-agent - - - - jacoco-site - package - - report - - - - - - - - - 0.8.6 - - - - - \ No newline at end of file diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ExcludedPOJO.java b/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ExcludedPOJO.java deleted file mode 100644 index 0f7278459e..0000000000 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ExcludedPOJO.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.baeldung.dto; - -public class ExcludedPOJO { -} diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ProductDTO.java b/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ProductDTO.java deleted file mode 100644 index 0ae1659c14..0000000000 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/dto/ProductDTO.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.baeldung.dto; - -public class ProductDTO { -} diff --git a/maven-modules/maven-plugins/maven-jacoco/lombok.config b/testing-modules/testing-libraries-2/lombok.config similarity index 100% rename from maven-modules/maven-plugins/maven-jacoco/lombok.config rename to testing-modules/testing-libraries-2/lombok.config diff --git a/testing-modules/testing-libraries-2/pom.xml b/testing-modules/testing-libraries-2/pom.xml index 5a57dc0958..d914fcfb86 100644 --- a/testing-modules/testing-libraries-2/pom.xml +++ b/testing-modules/testing-libraries-2/pom.xml @@ -13,6 +13,12 @@ + + org.projectlombok + lombok + ${lombok.version} + provided + org.assertj assertj-core @@ -85,6 +91,13 @@ org.jacoco jacoco-maven-plugin ${jacoco.version} + + + com/baeldung/**/ExcludedPOJO.class + com/baeldung/**/*DTO.* + **/config/* + + jacoco-initialize diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/config/AppConfig.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/config/AppConfig.java similarity index 52% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/config/AppConfig.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/config/AppConfig.java index d103f4b4f5..26bfe7b196 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/config/AppConfig.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/config/AppConfig.java @@ -1,6 +1,6 @@ -package com.baeldung.config; +package com.baeldung.jacocoexclusions.config; -import com.baeldung.service.ProductService; +import com.baeldung.jacocoexclusions.service.ProductService; public class AppConfig { diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/domain/Product.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/domain/Product.java similarity index 74% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/domain/Product.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/domain/Product.java index c64b6d2eae..5606107371 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/domain/Product.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/domain/Product.java @@ -1,4 +1,4 @@ -package com.baeldung.domain; +package com.baeldung.jacocoexclusions.domain; import lombok.Builder; import lombok.Data; diff --git a/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ExcludedPOJO.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ExcludedPOJO.java new file mode 100644 index 0000000000..27b461f70e --- /dev/null +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ExcludedPOJO.java @@ -0,0 +1,4 @@ +package com.baeldung.jacocoexclusions.dto; + +public class ExcludedPOJO { +} diff --git a/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ProductDTO.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ProductDTO.java new file mode 100644 index 0000000000..fb0ec05621 --- /dev/null +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/dto/ProductDTO.java @@ -0,0 +1,4 @@ +package com.baeldung.jacocoexclusions.dto; + +public class ProductDTO { +} diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Customer.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Customer.java similarity index 81% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Customer.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Customer.java index e7bb837a5c..cab70467e3 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Customer.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Customer.java @@ -1,4 +1,4 @@ -package com.baeldung.generated; +package com.baeldung.jacocoexclusions.generated; @Generated public class Customer { diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Generated.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Generated.java similarity index 88% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Generated.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Generated.java index 865df8ca8a..93be21e32d 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/generated/Generated.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/generated/Generated.java @@ -1,4 +1,4 @@ -package com.baeldung.generated; +package com.baeldung.jacocoexclusions.generated; import java.lang.annotation.Documented; import java.lang.annotation.Retention; diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/CustomerService.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/CustomerService.java similarity index 70% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/CustomerService.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/CustomerService.java index e6dbe8df5e..889153ba0a 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/CustomerService.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/CustomerService.java @@ -1,6 +1,6 @@ -package com.baeldung.service; +package com.baeldung.jacocoexclusions.service; -import com.baeldung.generated.Generated; +import com.baeldung.jacocoexclusions.generated.Generated; public class CustomerService { diff --git a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/ProductService.java b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/ProductService.java similarity index 81% rename from maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/ProductService.java rename to testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/ProductService.java index 5f73ddc7fd..c87295e642 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/main/java/com/baeldung/service/ProductService.java +++ b/testing-modules/testing-libraries-2/src/main/java/com/baeldung/jacocoexclusions/service/ProductService.java @@ -1,4 +1,4 @@ -package com.baeldung.service; +package com.baeldung.jacocoexclusions.service; public class ProductService { private static final double DISCOUNT = 0.25; diff --git a/maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/CustomerServiceUnitTest.java b/testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/CustomerServiceUnitTest.java similarity index 88% rename from maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/CustomerServiceUnitTest.java rename to testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/CustomerServiceUnitTest.java index 63dd2c755a..b35f92ca20 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/CustomerServiceUnitTest.java +++ b/testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/CustomerServiceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.service; +package com.baeldung.jacocoexclusions.service; import org.junit.jupiter.api.Test; diff --git a/maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/ProductServiceUnitTest.java b/testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/ProductServiceUnitTest.java similarity index 89% rename from maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/ProductServiceUnitTest.java rename to testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/ProductServiceUnitTest.java index a9d216785a..609be33640 100644 --- a/maven-modules/maven-plugins/maven-jacoco/src/test/java/com/baeldung/service/ProductServiceUnitTest.java +++ b/testing-modules/testing-libraries-2/src/test/java/com/baeldung/jacocoexclusions/service/ProductServiceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.service; +package com.baeldung.jacocoexclusions.service; import org.junit.jupiter.api.Test;