| <?xml version="1.0" encoding="UTF-8"?> |
| <document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd"> |
| <title>sop-addMissingLicense2JavaFile</title> |
| <p>Sometimes your gerrit failed due to missing license header files. This has been detected thanks to the com.mycila.license-maven-plugin plugin</p> |
| <section name="How to add license in batch mode?"> |
| <source>mvn license:format -Dlicense.header=/home/flefevre/gitNeon/org.eclipse.papyrus.tools/components/org.eclipse.papyrus.components.parent/src/etc/epl.header.cea.txt</source> |
| <section name="Run mvn from any pom directory and enable license check"> |
| <p>Add the following property to reference the root directory of the sysml project</p> |
| <source>-Dcomponent.root=</source> |