Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #647 from AbhayChandel/develop-2.x-flyway4
Browse files Browse the repository at this point in the history
Updated OASP4J Archetype to Flyway 4.2.0
  • Loading branch information
sjimenez77 authored May 22, 2018
2 parents 690fe49 + a3120aa commit 5f527b7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
34 changes: 22 additions & 12 deletions templates/server/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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>
<artifactId>${artifactId}</artifactId>
<groupId>${groupId}</groupId>
Expand All @@ -10,6 +11,8 @@

<properties>
<spring.boot.version>1.5.3.RELEASE</spring.boot.version>
<oasp4j.version>2.6.0-SNAPSHOT</oasp4j.version>
<flyway.version>4.2.0</flyway.version>
<java.version>1.7</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -19,17 +22,22 @@
<modules>
<module>api</module>
<module>core</module>
#if ($earProjectName != '.')
#if ($earProjectName != '.')
<module>${earProjectName}</module>
#end
#if ($batch == 'batch')
#end
#if ($batch == 'batch')
<module>batch</module>
#end
#end
<module>server</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>${flyway.version}</version>
</dependency>
<!-- BOM of spring-boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -42,7 +50,8 @@
<dependency>
<groupId>io.oasp.java</groupId>
<artifactId>oasp4j-bom</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>${oasp4j.version}
</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -276,7 +285,8 @@
<useMissingFile>true</useMissingFile>
<failOnMissing>true</failOnMissing>
<licenseMerges>
<licenseMerge>Apache Software License, Version 2.0|The Apache Software License, Version 2.0|Apache 2.0|Apache License, Version 2.0</licenseMerge>
<licenseMerge>Apache Software License, Version 2.0|The Apache Software License, Version 2.0|Apache
2.0|Apache License, Version 2.0</licenseMerge>
</licenseMerges>
</configuration>
</plugin>
Expand Down Expand Up @@ -325,7 +335,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<!--<version>3.0.0</version>-->
<!--<version>3.0.0</version> -->
<configuration>
<additionalOptions>
<additionalOption>-Xdoclint:none</additionalOption>
Expand Down Expand Up @@ -398,8 +408,8 @@
</build>
</profile>
</profiles>
#if ($dbType == 'oracle')

#if ($dbType == 'oracle')
<repositories>
<repository>
<id>maven.oracle.com</id>
Expand All @@ -415,7 +425,7 @@
<pluginRepositories>
<pluginRepository>
<id>maven.oracle.com</id>
<name>oracle-maven-repo</name>
<name>oracle-maven-repo</name>
<url>https://maven.oracle.com</url>
<layout>default</layout>
<releases>
Expand All @@ -425,7 +435,7 @@
</pluginRepository>
</pluginRepositories>

#end
#end
<reporting>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<description>Server for the ${rootArtifactId} application - a simple example using the Open Application Standard Platform for Java (OASP4J).</description>

<properties>
<java.version>1.7</java.version>
<java.version>1.7</java.version>
</properties>

<dependencies>
Expand All @@ -22,20 +22,24 @@
<artifactId>${rootArtifactId}-core</artifactId>
<version>${project.version}</version>
</dependency>
#if ($batch == 'batch')
#if ($batch == 'batch')
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${rootArtifactId}-batch</artifactId>
<version>${project.version}</version>
</dependency>
#end
</dependencies>
#end
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
</dependencies>

<profiles>
<profile>
<id>jsclient</id>
<activation>
<!--<activeByDefault>true</activeByDefault>-->
<!--<activeByDefault>true</activeByDefault> -->
<activeByDefault>false</activeByDefault>
</activation>
<build>
Expand Down Expand Up @@ -129,12 +133,12 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>${package}.SpringBootApp</mainClass>
<classifier>bootified</classifier>
<finalName>${project.artifactId}</finalName>
</configuration>
<executions>
<configuration>
<mainClass>${package}.SpringBootApp</mainClass>
<classifier>bootified</classifier>
<finalName>${project.artifactId}</finalName>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
Expand Down

0 comments on commit 5f527b7

Please sign in to comment.