You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2017/02/27 17:37:15 UTC
svn commit: r1784602 - /sling/trunk/parent/pom.xml
Author: sseifert
Date: Mon Feb 27 17:37:15 2017
New Revision: 1784602
URL: http://svn.apache.org/viewvc?rev=1784602&view=rev
Log:
SLING-6572 Generate SCR metadata required for mock-based unit tests
Modified:
sling/trunk/parent/pom.xml
Modified: sling/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/parent/pom.xml?rev=1784602&r1=1784601&r2=1784602&view=diff
==============================================================================
--- sling/trunk/parent/pom.xml (original)
+++ sling/trunk/parent/pom.xml Mon Feb 27 17:37:15 2017
@@ -396,6 +396,8 @@
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<obrRepository>NONE</obrRepository>
+ <!-- Export SCR metadata to classpath to have them available in unit tests -->
+ <exportScr>true</exportScr>
<instructions>
<Bundle-Category>sling</Bundle-Category>
<Bundle-DocURL>
@@ -415,6 +417,16 @@
<goal>baseline</goal>
</goals>
</execution>
+ <!-- Configure extra execution of 'manifest' in process-classes phase to make sure SCR metadata is generated before unit test runs -->
+ <execution>
+ <id>scr-metadata</id>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ <configuration>
+ <supportIncrementalBuild>true</supportIncrementalBuild>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>