Skip to content

Commit ba184ca

Browse files
author
Bas de Vos
committed
Fixed pom.xml dependency declarations
- <scope>provided</scope> is not to be used when you are building a lib. Instead use <optional>true</optional> to prevent this will become a transitive dependency if users put your lib as dependency in their pom.xml. - The jaxb dependency is only needed in <scope>test</scope>
1 parent c460819 commit ba184ca

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

pom.xml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
<groupId>io.beanmapper</groupId>
7171
<artifactId>beanmapper</artifactId>
7272
<version>${beanmapper.version}</version>
73-
<scope>provided</scope>
73+
<optional>true</optional>
7474
</dependency>
7575
<dependency>
7676
<groupId>org.springframework.boot</groupId>
7777
<artifactId>spring-boot-starter-data-jpa</artifactId>
7878
<version>${spring.boot.version}</version>
79-
<scope>provided</scope>
79+
<optional>true</optional>
8080
</dependency>
8181

8282
<dependency>
@@ -101,21 +101,7 @@
101101
<groupId>javax.xml.bind</groupId>
102102
<artifactId>jaxb-api</artifactId>
103103
<version>2.2.11</version>
104-
</dependency>
105-
<dependency>
106-
<groupId>com.sun.xml.bind</groupId>
107-
<artifactId>jaxb-core</artifactId>
108-
<version>2.2.11</version>
109-
</dependency>
110-
<dependency>
111-
<groupId>com.sun.xml.bind</groupId>
112-
<artifactId>jaxb-impl</artifactId>
113-
<version>2.2.11</version>
114-
</dependency>
115-
<dependency>
116-
<groupId>javax.activation</groupId>
117-
<artifactId>activation</artifactId>
118-
<version>1.1.1</version>
104+
<scope>test</scope>
119105
</dependency>
120106
</dependencies>
121107

0 commit comments

Comments
 (0)