Cleaned up pom.xml - switched to BOM for better top-level management (#4651)
This commit is contained in:
		
							parent
							
								
									3786d4e1b1
								
							
						
					
					
						commit
						a35890be98
					
				
							
								
								
									
										462
									
								
								ethereum/pom.xml
									
									
									
									
									
								
							
							
						
						
									
										462
									
								
								ethereum/pom.xml
									
									
									
									
									
								
							| @ -1,242 +1,228 @@ | ||||
| <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>com.baeldung.ethereum</groupId> | ||||
|     <artifactId>ethereum</artifactId> | ||||
| <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>com.baeldung.ethereum</groupId> | ||||
|   <artifactId>ethereum</artifactId> | ||||
|   <version>0.0.1-SNAPSHOT</version> | ||||
|   <name>ethereum</name> | ||||
| 
 | ||||
|   <parent> | ||||
|     <artifactId>parent-spring-5</artifactId> | ||||
|     <groupId>com.baeldung</groupId> | ||||
|     <version>0.0.1-SNAPSHOT</version> | ||||
|     <name>ethereum</name> | ||||
|     <relativePath>../parent-spring-5</relativePath> | ||||
|   </parent> | ||||
| 
 | ||||
|     <!-- Don't Use This - Use the BOM or direct dependency rather than parent --> | ||||
|     <!--<parent> | ||||
|   <properties> | ||||
|     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
|     <java.version>1.8</java.version> | ||||
|     <tomcat.version>8.5.4</tomcat.version> | ||||
|     <ethereumj-core.version>1.5.0-RELEASE</ethereumj-core.version> | ||||
|     <web3j.core.version>3.3.1</web3j.core.version> | ||||
|     <springframework.version>5.0.5.RELEASE</springframework.version> | ||||
|     <spring.boot.version>1.5.6.RELEASE</spring.boot.version> | ||||
|     <mockito.version>1.10.19</mockito.version> | ||||
|     <jackson-databind.version>2.5.0</jackson-databind.version> | ||||
|     <hamcrest.version>1.3</hamcrest.version> | ||||
|     <jackson.version>2.9.3</jackson.version> | ||||
|     <javax-jsp.version>2.3.1</javax-jsp.version> | ||||
|     <javax-servlet.version>3.1.0</javax-servlet.version> | ||||
|     <jsonpath.version>2.4.0</jsonpath.version> | ||||
|     <jstl.version>1.2</jstl.version> | ||||
|     <junit.version>4.12</junit.version> | ||||
|     <logback.version>1.2.3</logback.version> | ||||
|     <slf4j.version>1.7.25</slf4j.version> | ||||
|   </properties> | ||||
| 
 | ||||
|   <repositories> | ||||
|     <repository> | ||||
|       <id>Ethereum</id> | ||||
|       <name>Ethereum</name> | ||||
|       <url>https://dl.bintray.com/ethereum/maven/</url> | ||||
|     </repository> | ||||
|   </repositories> | ||||
| 
 | ||||
|   <dependencies> | ||||
| 
 | ||||
|     <!-- Spring Boot Dependencies --> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework.boot</groupId> | ||||
|       <artifactId>spring-boot-starter</artifactId> | ||||
|       <version>${spring.boot.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <dependency> | ||||
|       <groupId>org.springframework.boot</groupId> | ||||
|       <artifactId>spring-boot-starter-web</artifactId> | ||||
|       <version>${spring.boot.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework.boot</groupId> | ||||
|       <artifactId>spring-boot-starter-tomcat</artifactId> | ||||
|       <version>${spring.boot.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Spring Dependencies --> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework</groupId> | ||||
|       <artifactId>spring-core</artifactId> | ||||
|       <version>${springframework.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework</groupId> | ||||
|       <artifactId>spring-web</artifactId> | ||||
|       <version>${springframework.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework</groupId> | ||||
|       <artifactId>spring-webmvc</artifactId> | ||||
|       <version>${springframework.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Ethereum --> | ||||
|     <dependency> | ||||
|       <groupId>org.ethereum</groupId> | ||||
|       <artifactId>ethereumj-core</artifactId> | ||||
|       <version>${ethereumj-core.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.web3j</groupId> | ||||
|       <artifactId>core</artifactId> | ||||
|       <version>${web3j.core.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Jackson Dependencies --> | ||||
|     <dependency> | ||||
|       <groupId>com.fasterxml.jackson.core</groupId> | ||||
|       <artifactId>jackson-core</artifactId> | ||||
|       <version>${jackson.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>com.fasterxml.jackson.core</groupId> | ||||
|       <artifactId>jackson-databind</artifactId> | ||||
|       <version>${jackson.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>com.fasterxml.jackson.core</groupId> | ||||
|       <artifactId>jackson-annotations</artifactId> | ||||
|       <version>${jackson.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Servlet --> | ||||
|     <dependency> | ||||
|       <groupId>javax.servlet</groupId> | ||||
|       <artifactId>jstl</artifactId> | ||||
|       <version>${jstl.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>javax.servlet</groupId> | ||||
|       <artifactId>javax.servlet-api</artifactId> | ||||
|       <version>${javax-servlet.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>javax.servlet.jsp.jstl</groupId> | ||||
|       <artifactId>jstl-api</artifactId> | ||||
|       <version>${jstl.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>javax.servlet.jsp</groupId> | ||||
|       <artifactId>javax.servlet.jsp-api</artifactId> | ||||
|       <version>${javax-jsp.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Logging --> | ||||
|     <dependency> | ||||
|       <groupId>org.slf4j</groupId> | ||||
|       <artifactId>jcl-over-slf4j</artifactId> | ||||
|       <version>${slf4j.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>ch.qos.logback</groupId> | ||||
|       <artifactId>logback-classic</artifactId> | ||||
|       <version>${logback.version}</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Spring Testing --> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework.boot</groupId> | ||||
|       <artifactId>spring-boot-starter-test</artifactId> | ||||
|       <scope>test</scope> | ||||
|       <version>${spring.boot.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework</groupId> | ||||
|       <artifactId>spring-context</artifactId> | ||||
|       <version>${springframework.version}</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework</groupId> | ||||
|       <artifactId>spring-test</artifactId> | ||||
|       <version>${springframework.version}</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <!-- Testing --> | ||||
|     <dependency> | ||||
|       <groupId>org.mockito</groupId> | ||||
|       <artifactId>mockito-core</artifactId> | ||||
|       <version>${mockito.version}</version> | ||||
|       <exclusions> | ||||
|         <exclusion> | ||||
|           <groupId>org.hamcrest</groupId> | ||||
|           <artifactId>hamcrest-core</artifactId> | ||||
|         </exclusion> | ||||
|       </exclusions> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <version>${junit.version}</version> | ||||
|       <scope>test</scope> | ||||
|       <exclusions> | ||||
|         <exclusion> | ||||
|           <groupId>org.hamcrest</groupId> | ||||
|           <artifactId>hamcrest-core</artifactId> | ||||
|         </exclusion> | ||||
|       </exclusions> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.hamcrest</groupId> | ||||
|       <artifactId>hamcrest-library</artifactId> | ||||
|       <version>${hamcrest.version}</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>com.jayway.jsonpath</groupId> | ||||
|       <artifactId>json-path</artifactId> | ||||
|       <version>${jsonpath.version}</version> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
|   <build> | ||||
|     <plugins> | ||||
|       <plugin> | ||||
|         <artifactId>maven-compiler-plugin</artifactId> | ||||
|         <version>3.1</version> | ||||
|         <configuration> | ||||
|           <source>1.8</source> | ||||
|           <target>1.8</target> | ||||
|         </configuration> | ||||
|       </plugin> | ||||
|       <plugin> | ||||
|         <groupId>org.springframework.boot</groupId> | ||||
|         <artifactId>spring-boot-starter-parent</artifactId> | ||||
|         <version>1.5.6.RELEASE</version> | ||||
|     </parent>--> | ||||
| 
 | ||||
|     <properties> | ||||
|         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
|         <java.version>1.8</java.version> | ||||
|         <tomcat.version>8.5.4</tomcat.version> | ||||
|         <ethereumj-core.version>1.5.0-RELEASE</ethereumj-core.version> | ||||
|         <web3j.core.version>3.3.1</web3j.core.version> | ||||
|         <springframework.version>5.0.5.RELEASE</springframework.version> | ||||
|         <spring.boot.version>1.5.6.RELEASE</spring.boot.version> | ||||
|         <maven-surefire.version>2.18.1</maven-surefire.version> | ||||
|         <mockito.version>1.10.19</mockito.version> | ||||
|         <jackson-databind.version>2.5.0</jackson-databind.version> | ||||
|         <hamcrest.version>1.3</hamcrest.version> | ||||
|         <jackson.version>2.9.3</jackson.version> | ||||
|         <javax-jsp.version>2.3.1</javax-jsp.version> | ||||
|         <javax-servlet.version>3.1.0</javax-servlet.version> | ||||
|         <jsonpath.version>2.4.0</jsonpath.version> | ||||
|         <jstl.version>1.2</jstl.version> | ||||
|         <junit.version>4.12</junit.version> | ||||
|         <logback.version>1.2.3</logback.version> | ||||
|         <slf4j.version>1.7.25</slf4j.version> | ||||
|     </properties> | ||||
| 
 | ||||
|     <repositories> | ||||
|         <repository> | ||||
|             <id>Ethereum</id> | ||||
|             <name>Ethereum</name> | ||||
|             <url>https://dl.bintray.com/ethereum/maven/</url> | ||||
|         </repository> | ||||
|     </repositories> | ||||
| 
 | ||||
|     <dependencies> | ||||
| 
 | ||||
|         <!-- Spring Boot Dependencies --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter</artifactId> | ||||
|             <version>${spring.boot.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-web</artifactId> | ||||
|             <version>${spring.boot.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-tomcat</artifactId> | ||||
|             <version>${spring.boot.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Spring Dependencies --> | ||||
|        <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-core</artifactId> | ||||
|             <version>${springframework.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-web</artifactId> | ||||
|             <version>${springframework.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-webmvc</artifactId> | ||||
|             <version>${springframework.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Ethereum --> | ||||
|         <dependency> | ||||
|             <groupId>org.ethereum</groupId> | ||||
|             <artifactId>ethereumj-core</artifactId> | ||||
|             <version>${ethereumj-core.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.web3j</groupId> | ||||
|             <artifactId>core</artifactId> | ||||
|             <version>${web3j.core.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Jackson Dependencies --> | ||||
|         <dependency> | ||||
|             <groupId>com.fasterxml.jackson.core</groupId> | ||||
|             <artifactId>jackson-core</artifactId> | ||||
|             <version>${jackson.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.fasterxml.jackson.core</groupId> | ||||
|             <artifactId>jackson-databind</artifactId> | ||||
|             <version>${jackson.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.fasterxml.jackson.core</groupId> | ||||
|             <artifactId>jackson-annotations</artifactId> | ||||
|             <version>${jackson.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Servlet --> | ||||
|         <dependency> | ||||
|             <groupId>javax.servlet</groupId> | ||||
|             <artifactId>jstl</artifactId> | ||||
|             <version>${jstl.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>javax.servlet</groupId> | ||||
|             <artifactId>javax.servlet-api</artifactId> | ||||
|             <version>${javax-servlet.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>javax.servlet.jsp.jstl</groupId> | ||||
|             <artifactId>jstl-api</artifactId> | ||||
|             <version>${jstl.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>javax.servlet.jsp</groupId> | ||||
|             <artifactId>javax.servlet.jsp-api</artifactId> | ||||
|             <version>${javax-jsp.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Logging --> | ||||
|         <dependency> | ||||
|             <groupId>org.slf4j</groupId> | ||||
|             <artifactId>jcl-over-slf4j</artifactId> | ||||
|             <version>${slf4j.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>ch.qos.logback</groupId> | ||||
|             <artifactId>logback-classic</artifactId> | ||||
|             <version>${logback.version}</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Spring Testing --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-test</artifactId> | ||||
|             <scope>test</scope> | ||||
|             <version>${spring.boot.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-context</artifactId> | ||||
|             <version>${springframework.version}</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-test</artifactId> | ||||
|             <version>${springframework.version}</version> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Testing --> | ||||
|         <dependency> | ||||
|             <groupId>org.mockito</groupId> | ||||
|             <artifactId>mockito-core</artifactId> | ||||
|             <version>${mockito.version}</version> | ||||
|             <exclusions> | ||||
|                 <exclusion> | ||||
|                     <groupId>org.hamcrest</groupId> | ||||
|                     <artifactId>hamcrest-core</artifactId> | ||||
|                 </exclusion> | ||||
|             </exclusions> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>junit</groupId> | ||||
|             <artifactId>junit</artifactId> | ||||
|             <version>${junit.version}</version> | ||||
|             <scope>test</scope> | ||||
|             <exclusions> | ||||
|                 <exclusion> | ||||
|                     <groupId>org.hamcrest</groupId> | ||||
|                     <artifactId>hamcrest-core</artifactId> | ||||
|                 </exclusion> | ||||
|             </exclusions> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.hamcrest</groupId> | ||||
|             <artifactId>hamcrest-library</artifactId> | ||||
|             <version>${hamcrest.version}</version> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.jayway.jsonpath</groupId> | ||||
|             <artifactId>json-path</artifactId> | ||||
|             <version>${jsonpath.version}</version> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|     <build> | ||||
|         <plugins> | ||||
|             <plugin> | ||||
|                 <artifactId>maven-compiler-plugin</artifactId> | ||||
|                 <version>3.1</version> | ||||
|                 <configuration> | ||||
|                     <source>1.8</source> | ||||
|                     <target>1.8</target> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.springframework.boot</groupId> | ||||
|                 <artifactId>spring-boot-maven-plugin</artifactId> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-war-plugin</artifactId> | ||||
|                 <version>3.0.0</version> | ||||
|                 <configuration> | ||||
|                     <warSourceDirectory>src/main/webapp</warSourceDirectory> | ||||
|                     <failOnMissingWebXml>false</failOnMissingWebXml> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-surefire-plugin</artifactId> | ||||
|                 <version>${maven-surefire.version}</version> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <id>install</id> | ||||
|                         <phase>install</phase> | ||||
|                         <goals> | ||||
|                             <goal>test</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
|         </plugins> | ||||
|         <finalName>ethereum</finalName> | ||||
|     </build> | ||||
|         <artifactId>spring-boot-maven-plugin</artifactId> | ||||
|       </plugin> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-war-plugin</artifactId> | ||||
|         <version>3.0.0</version> | ||||
|         <configuration> | ||||
|           <warSourceDirectory>src/main/webapp</warSourceDirectory> | ||||
|           <failOnMissingWebXml>false</failOnMissingWebXml> | ||||
|         </configuration> | ||||
|       </plugin> | ||||
|     </plugins> | ||||
|     <finalName>ethereum</finalName> | ||||
|   </build> | ||||
| </project> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user