mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
profile jar dependency moving added
This commit is contained in:
parent
d8bc16553f
commit
7fa4d33e39
4 changed files with 47 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
target/*
|
target/*
|
||||||
petclinic-application/target/*
|
petclinic-application/target/*
|
||||||
|
/petclinic-containers/src/main/resources/petclinic.jar
|
||||||
.settings/*
|
.settings/*
|
||||||
.classpath
|
.classpath
|
||||||
.editorconfig
|
.editorconfig
|
||||||
|
|
|
@ -15,4 +15,50 @@
|
||||||
|
|
||||||
<name>petclinic-containers</name>
|
<name>petclinic-containers</name>
|
||||||
|
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>docker-build</id>
|
||||||
|
<build>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.springframework.samples</groupId>
|
||||||
|
<artifactId>petclinic-application</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<type>${project.packaging}</type>
|
||||||
|
<overWrite>true</overWrite>
|
||||||
|
<outputDirectory>${basedir}/src/main/resources</outputDirectory>
|
||||||
|
<destFileName>petclinic.jar</destFileName>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
<outputDirectory>${docker.build.directory}</outputDirectory>
|
||||||
|
<overWriteReleases>true</overWriteReleases>
|
||||||
|
<overWriteSnapshots>true</overWriteSnapshots>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
0
petclinic-containers/src/main/resources/Dockerfile
Normal file
0
petclinic-containers/src/main/resources/Dockerfile
Normal file
3
pom.xml
3
pom.xml
|
@ -30,7 +30,6 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
<!-- Generic properties -->
|
<!-- Generic properties -->
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
@ -41,12 +40,10 @@
|
||||||
<webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version>
|
<webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version>
|
||||||
<webjars-jquery.version>2.2.4</webjars-jquery.version>
|
<webjars-jquery.version>2.2.4</webjars-jquery.version>
|
||||||
<wro4j.version>1.8.0</wro4j.version>
|
<wro4j.version>1.8.0</wro4j.version>
|
||||||
|
|
||||||
<jacoco.version>0.8.2</jacoco.version>
|
<jacoco.version>0.8.2</jacoco.version>
|
||||||
|
|
||||||
<!-- Other properties -->
|
<!-- Other properties -->
|
||||||
<deploy-plugin.version>2.8.1</deploy-plugin.version>
|
<deploy-plugin.version>2.8.1</deploy-plugin.version>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
Loading…
Reference in a new issue