Bug 507299 - [Components] extract the license checking into a profile
Change-Id: Iee32e3961c3fd69e07ef26b14d2f7c017674d7f1
Signed-off-by: Francois Le Fevre - CEA <francois.le-fevre@cea.fr>
diff --git a/components/org.eclipse.papyrus.components.parent/pom.xml b/components/org.eclipse.papyrus.components.parent/pom.xml
index e275d0a..3ee3b28 100644
--- a/components/org.eclipse.papyrus.components.parent/pom.xml
+++ b/components/org.eclipse.papyrus.components.parent/pom.xml
@@ -535,40 +535,52 @@
</target>
</configuration>
</plugin>
- <!-- license -->
- <plugin>
- <groupId>com.mycila</groupId>
- <artifactId>license-maven-plugin</artifactId>
- <configuration>
- <header>${component.root}/src/etc/${component.header}</header>
- <useDefaultExcludes>true</useDefaultExcludes>
- <failIfMissing>true</failIfMissing>
- <strictCheck>false</strictCheck>
- <aggregate>true</aggregate>
- <includes>
- <include>**/*.java</include>
- </includes>
- <excludes>
- <exclude>**/src/site/**</exclude>
- <exclude>**/target/**</exclude>
- <exclude>**/src-gen/**</exclude>
- <exclude>**/xtend-gen/**</exclude>
- </excludes>
- </configuration>
- <executions>
- <execution>
- <phase>process-sources</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
<profiles>
+ <profile>
+ <id>IP</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <!-- license -->
+ <plugin>
+ <groupId>com.mycila</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <configuration>
+ <header>${component.root}/src/etc/${component.header}</header>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <failIfMissing>true</failIfMissing>
+ <strictCheck>false</strictCheck>
+ <aggregate>true</aggregate>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/src/site/**</exclude>
+ <exclude>**/target/**</exclude>
+ <exclude>**/src-gen/**</exclude>
+ <exclude>**/xtend-gen/**</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+
<!-- use this profile if you need to launch sonar or other quality-related
plugins on the built artifacts. -->
<profile>
@@ -784,7 +796,7 @@
<outputDirectory>src/site/resources/images/rcptt-screenshots/</outputDirectory>
<resources>
<resource>
- <directory>${env.WORKSPACE}/rcptt-screenshots/</directory>
+ <directory>${WORKSPACE}/rcptt-screenshots/</directory>
<filtering>false</filtering>
</resource>
</resources>