Remove security from dependencies and add plugin to execute from command line

This commit is contained in:
Konstantinos Triantafyllou 2022-10-07 11:06:33 +03:00
parent dad6ca3adf
commit 8b6ad9337e
1 changed files with 35 additions and 4 deletions

39
pom.xml
View File

@ -48,18 +48,49 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>${gson-version}</version> <version>${gson-version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>${mainClass}</mainClass>
<executable>true</executable>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<properties> <properties>
<java.version>1.8</java.version>
<spring-boot-version>1.5.8.RELEASE</spring-boot-version> <spring-boot-version>1.5.8.RELEASE</spring-boot-version>
<gson-version>2.9.0</gson-version> <gson-version>2.9.0</gson-version>
<swagger-version>2.7.0</swagger-version>
<mainClass>MainClass</mainClass>
</properties> </properties>
</project> </project>