Skip to content

Commit

Permalink
OZ-196: Fix distro parent POM (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher authored Feb 6, 2024
1 parent 070b394 commit fd49e50
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions ozone-distro-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,32 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<!-- Exclude files from Ozone -->
<id>Exclude unneeded Ozone files</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>${project.build.directory}/ozone</directory>
<excludes>
<exclude>distro/**/addresshierarchy/*.*</exclude>
<exclude>distro/**/ampathforms/*.json</exclude>
<exclude>distro/**/ampathformstranslations/*.json</exclude>
<exclude>distro/**/globalproperties/i18n.xml</exclude>
<exclude>distro/**/*demo.*</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>

<execution>
<!-- Copy and substitute some helper files (for demo and Gitpod) -->
<id>Copy and substitute some helper files</id>
Expand Down Expand Up @@ -148,40 +174,14 @@
<overwrite>true</overwrite>
<resources>
<resource>
<directory>${project.parent.basedir}/configs</directory>
<directory>${project.basedir}/configs</directory>
<excludes>
<exclude>.gitkeep</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>

<execution>
<!-- Exclude files from Ozone -->
<id>Exclude unneeded Ozone files</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>${project.build.directory}/ozone</directory>
<excludes>
<exclude>distro/**/addresshierarchy/*.*</exclude>
<exclude>distro/**/ampathforms/*.json</exclude>
<exclude>distro/**/ampathformstranslations/*.json</exclude>
<exclude>distro/**/globalproperties/i18n.xml</exclude>
<exclude>distro/**/*demo.*</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit fd49e50

Please sign in to comment.