Commit fef948b9 authored by Ole Hejlskov's avatar Ole Hejlskov
Browse files

Bring back resources plugin to archetype, otherwise test-resources get added too late

parent 245a5140
Loading
Loading
Loading
Loading
+28 −7
Original line number Diff line number Diff line
@@ -237,14 +237,35 @@
            </resource>
        </resources>

        <testResources>

        <plugins>
            <!-- Filter the test resource files in the AIO parent project, and do property substitutions.
                 We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.0.1</version>
                <inherited>false</inherited>
                <!-- Run only for the AIO parent Project -->
                <executions>
                    <execution>
                        <id>copy-and-filter-test-resources</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
                            <resources>
                                <testResource>
                                    <directory>src/test/resources</directory>
                                    <filtering>true</filtering>
                                </testResource>
        </testResources>

        <plugins>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            
            <!--
                The Alfresco Maven Plugin contains all the logic to run the extension