Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Move all static resources to resources* folders
Browse files Browse the repository at this point in the history
to prepare migration to jar build
  • Loading branch information
ascheman committed Aug 13, 2017
1 parent 294cff4 commit 0b1ea67
Show file tree
Hide file tree
Showing 133 changed files with 47 additions and 44 deletions.
91 changes: 47 additions & 44 deletions impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@

<build>
<plugins>

<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand All @@ -491,53 +490,38 @@
<goals>
<goal>revision</goal>
</goals>
<configuration>
<injectAllReactorProjects>true</injectAllReactorProjects>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
<includes>
<include>**/*.txt</include>
</includes>
</resource>
</webResources>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${project.artifactId}-${project.version}-r${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<!-- Servlet API is provided by Tomcat -->
<exclude>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</exclude>
<!-- exclude lombok specifically and for all Spring Boot applications
It isn't needed and repackage WILL package "provided" dependencies -->
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter-git-ids</id>
<phase>generate-resources</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<filters>
<filter>${project.build.outputDirectory}/git.properties</filter>
</filters>
<delimiters>
<delimiter>${*}</delimiter>
</delimiters>
<resources>
<resource>
<directory>src/main/resources-filtered</directory>
<filtering>true</filtering>
<includes>
<include>**/*.txt</include>
<include>**/*.html</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -673,6 +657,25 @@
</items>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<!-- Servlet API is provided by Tomcat -->
<exclude>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</exclude>
<!-- exclude lombok specifically and for all Spring Boot applications
It isn't needed and repackage WILL package "provided" dependencies -->
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 0b1ea67

Please sign in to comment.