Skip to content
Snippets Groups Projects
Select Git revision
  • main
1 result

pom.xml

Blame
  • pom.xml 3.84 KiB
    <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<parent>
    		<groupId>org.springframework.boot</groupId>
    		<artifactId>spring-boot-starter-parent</artifactId>
    		<version>2.4.2</version>
    		<relativePath/> <!-- lookup parent from repository -->
    	</parent>
    	<groupId>com.tecnalia.urbanite</groupId>
    	<artifactId>dataStorage</artifactId>
    	<version>1.3.1</version>
    	<name>dataStorage</name>
    	<description>URBANITE Data Storage and Retrieval Component</description>
    	<properties>
    		<java.version>1.8</java.version>
    		<log4j2.version>2.17.0</log4j2.version> <!--  https://spring.io/blog/2021/12/10/log4j2-vulnerability-and-spring-boot -->
    	</properties>
    	<dependencies>
    		<dependency>
    			<groupId>org.springframework.boot</groupId>
    			<artifactId>spring-boot-starter-web</artifactId>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.boot</groupId>
    			<artifactId>spring-boot-starter-test</artifactId>
    			<scope>test</scope>
    		</dependency>
    		<!-- Open API -->
    		<dependency>
              <groupId>org.springdoc</groupId>
                <artifactId>springdoc-openapi-ui</artifactId>
                <version>1.2.32</version>
            </dependency>
            <!--  JSON -->
            <dependency>
                <groupId>org.codehaus.jettison</groupId>
                <artifactId>jettison</artifactId>
                <version>1.3.7</version>
                <type>jar</type>
            </dependency>
            <!--  Jenna -->
            <dependency>
    		    <groupId>org.apache.jena</groupId>
    		    <artifactId>apache-jena-libs</artifactId>
    		    <version>3.17.0</version>
    		    <type>pom</type>
    		</dependency>
            <!--  Mongo  -->
            <dependency>
                <groupId>org.mongodb</groupId>
                <artifactId>mongodb-driver-sync</artifactId>
            </dependency>
            
            <dependency>
    			<groupId>javax.xml.bind</groupId>
    			<artifactId>jaxb-api</artifactId>
    		</dependency>
    
    		<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
    		<dependency>
    			<groupId>javax.activation</groupId>
    			<artifactId>activation</artifactId>
    			<version>1.1</version>
    		</dependency>
    
    		<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
    		<dependency>
    			<groupId>org.glassfish.jaxb</groupId>
    			<artifactId>jaxb-runtime</artifactId>
    		</dependency>
    
    		<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
    		<dependency>
    			<groupId>com.google.code.gson</groupId>
    			<artifactId>gson</artifactId>
    		</dependency>
    		<dependency>
    			<groupId>com.tecnalia.urbanite.storage</groupId>
    			<artifactId>shared</artifactId>
    			<version>1.0.0</version>
    			<scope>compile</scope>
    		</dependency>
    
    	</dependencies>
    
    	<build>
    		<finalName>${project.artifactId}</finalName>
    		<plugins>
    			<plugin>
    				<groupId>org.springframework.boot</groupId>
    				<artifactId>spring-boot-maven-plugin</artifactId>
    				<configuration>
    					<fork>true</fork>
    					<mainClass>${start-class}</mainClass>
    				</configuration>
    				  <executions>
    					<execution>
    					  <goals>
    						<goal>repackage</goal>
    					  </goals>
    					</execution>
    				</executions>
    			</plugin>
    			<plugin>
    			  <artifactId>maven-assembly-plugin</artifactId>
    			  <configuration>
    				<archive>
    				  <manifest>
    					<addClasspath>true</addClasspath>
    					<mainClass>com.tecnalia.urbanite.storage.DataStorageApplication</mainClass> 
    				  </manifest>
    				</archive>
    				<descriptorRefs>
    				  <descriptorRef>jar-with-dependencies</descriptorRef>
    				</descriptorRefs>
    			  </configuration>
    			  <executions>
    				<execution>
    				  <id>assemble-all</id>
    				  <phase>package</phase>
    				  <goals>
    					<goal>single</goal>
    				  </goals>
    				</execution>
    			  </executions>
    			</plugin>
    		</plugins>		
    	</build>
    </project>