Update version of maven resources plugin 97/120497/1
authorJim Hahn <jrh3@att.com>
Tue, 13 Apr 2021 18:02:37 +0000 (14:02 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 13 Apr 2021 18:04:45 +0000 (14:04 -0400)
Policy parent specifies a newer version of the maven resources plugin.
Modified the pom to work with it.  According to the docs, copy-resources
is only needed when copying from directories outside of
src/main/resources.

Issue-ID: POLICY-3182
Change-Id: Icb125914dd0fc15a9b2da4290b7e06338a0fae4a
Signed-off-by: Jim Hahn <jrh3@att.com>
gui-editors/gui-editor-apex/pom.xml

index 61ea8af..905ad47 100644 (file)
     <build>
         <defaultGoal>install</defaultGoal>
         <outputDirectory>${project.build.directory}/classes</outputDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <excludes>
+                    <exclude>webapp/node/**</exclude>
+                    <exclude>webapp/node_modules/**</exclude>
+                    <exclude>webapp/webpack.config.js</exclude>
+                    <exclude>webapp/package.json</exclude>
+                    <exclude>webapp/package-lock.json</exclude>
+                </excludes>
+            </resource>
+        </resources>
         <plugins>
             <plugin>
                 <groupId>com.github.eirslett</groupId>
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-resources-plugin</artifactId>
-                <version>3.1.0</version>
-                <configuration>
-                    <overwrite>true</overwrite>
-                </configuration>
-                <executions>
-                    <execution>
-                        <id>Copy frontend build to target</id>
-                        <phase>prepare-package</phase>
-                        <goals>
-                            <goal>copy-resources</goal>
-                        </goals>
-                        <configuration>
-                            <outputDirectory>${project.build.directory}/classes/webapp</outputDirectory>
-                            <resources>
-                                <resource>
-                                    <directory>${webapp.dir}/dist</directory>
-                                    <filtering>false</filtering>
-                                </resource>
-                            </resources>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-clean-plugin</artifactId>