Bug 481376 [SysML 1.4][infra] check the license for different resources
-adding a first implementation
new version could improve the different files checked and also the
pattern to be sure it includes at least the Copyright Cea.
more details here:
https://github.com/mycila/license-maven-plugin/issues/93
Change-Id: I13174b94f8ceda4f38a46a7e8da23077ea075388
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=481376
Signed-off-by: Francois Le Fevre - CEA <francois.le-fevre@cea.fr>
diff --git a/pom.xml b/pom.xml
index 08bd3ed..6270b2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
<siteMainDirectory>${user.home}/staging</siteMainDirectory>
<!-- Eclipse properties -->
-
+
<!-- default environment overridden by profile, tycho preempts profile -->
<java.source>1.7</java.source>
<java.target>1.7</java.target>
@@ -338,6 +338,45 @@
</target>
</configuration>
</plugin>
+ <!-- license -->
+ <plugin>
+ <groupId>com.mycila</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>2.11</version>
+ <inherited>false</inherited>
+ <configuration>
+ <header>${session.executionRootDirectory}/src/etc/epl.header.txt</header>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <failIfMissing>true</failIfMissing>
+ <strictCheck>false</strictCheck>
+ <aggregate>true</aggregate>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ <excludes>
+ <!-- exclude>.gitignores</exclude> <exclude>.gitattributes</exclude>
+ <exclude>LICENSE</exclude> <exclude>src/test/resources/**</exclude> <exclude>src/main/resources/**</exclude>
+ <exclude>**/doc/**</exclude -->
+ <exclude>src/site/**</exclude>
+ <!-- exclude>**/pom.xml</exclude> <exclude>src/etc/epl.header.txt</exclude>
+ <exclude>**/*.tpd</exclude> <exclude>**/*.target</exclude -->
+ <exclude>target/**</exclude>
+ <exclude>src-gen/**</exclude>
+ <!-- exclude>plugin.xml</exclude -->
+ <!-- exclude>**/*.di</exclude> <exclude>**/*.uml</exclude> <exclude>**/*.notation</exclude>
+ <exclude>**/*.ecore</exclude> <exclude>**/*.genmodel</exclude> <exclude>build.properties</exclude>
+ <exclude>**/*.genmodel</exclude -->
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
@@ -944,7 +983,7 @@
</plugins>
</build>
</profile>
- <!-- Profiles to manage the target eclipse platform environment end-->
+ <!-- Profiles to manage the target eclipse platform environment end -->
<!-- Profiles to manage the OS environment -->
<profile>
diff --git a/src/etc/epl.header.txt b/src/etc/epl.header.txt
new file mode 100644
index 0000000..68cbfa4
--- /dev/null
+++ b/src/etc/epl.header.txt
@@ -0,0 +1,4 @@
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
\ No newline at end of file
diff --git a/table/org.eclipse.papyrus.sysml14.nattable.allocation/src/org/eclipse/papyrus/sysml14/nattable/allocation/messages/Messages.java b/table/org.eclipse.papyrus.sysml14.nattable.allocation/src/org/eclipse/papyrus/sysml14/nattable/allocation/messages/Messages.java
index 65b87b7..6fb174f 100644
--- a/table/org.eclipse.papyrus.sysml14.nattable.allocation/src/org/eclipse/papyrus/sysml14/nattable/allocation/messages/Messages.java
+++ b/table/org.eclipse.papyrus.sysml14.nattable.allocation/src/org/eclipse/papyrus/sysml14/nattable/allocation/messages/Messages.java
@@ -1,3 +1,12 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.sysml14.nattable.allocation.messages;
import org.eclipse.osgi.util.NLS;
diff --git a/table/org.eclipse.papyrus.sysml14.nattable.common/src/org/eclipse/papyrus/sysml14/nattable/common/Activator.java b/table/org.eclipse.papyrus.sysml14.nattable.common/src/org/eclipse/papyrus/sysml14/nattable/common/Activator.java
index cf20161..27f555a 100644
--- a/table/org.eclipse.papyrus.sysml14.nattable.common/src/org/eclipse/papyrus/sysml14/nattable/common/Activator.java
+++ b/table/org.eclipse.papyrus.sysml14.nattable.common/src/org/eclipse/papyrus/sysml14/nattable/common/Activator.java
@@ -1,3 +1,12 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.sysml14.nattable.common;
import org.eclipse.jface.resource.ImageDescriptor;
diff --git a/table/org.eclipse.papyrus.sysml14.nattable.requirement/src/org/eclipse/papyrus/sysml14/nattable/requirement/Activator.java b/table/org.eclipse.papyrus.sysml14.nattable.requirement/src/org/eclipse/papyrus/sysml14/nattable/requirement/Activator.java
index 7d40363..72bf935 100644
--- a/table/org.eclipse.papyrus.sysml14.nattable.requirement/src/org/eclipse/papyrus/sysml14/nattable/requirement/Activator.java
+++ b/table/org.eclipse.papyrus.sysml14.nattable.requirement/src/org/eclipse/papyrus/sysml14/nattable/requirement/Activator.java
@@ -1,3 +1,12 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.sysml14.nattable.requirement;
import org.eclipse.ui.plugin.AbstractUIPlugin;
diff --git a/targetplatform/org.eclipse.papyrus.sysml14.targetplatform.neon/.project b/targetplatform/org.eclipse.papyrus.sysml14.targetplatform.neon/.project
new file mode 100644
index 0000000..ad4abca
--- /dev/null
+++ b/targetplatform/org.eclipse.papyrus.sysml14.targetplatform.neon/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml14.targetplatform.neon</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>