|
33 | 33 | <maven.compiler.target>1.8</maven.compiler.target> |
34 | 34 |
|
35 | 35 | <packages.export>javax.security.enterprise.*</packages.export> |
| 36 | + <copyright-plugin.version>1.41</copyright-plugin.version> |
36 | 37 | </properties> |
37 | 38 |
|
38 | 39 | <licenses> |
|
137 | 138 | </executions> |
138 | 139 | </plugin> |
139 | 140 | <plugin> |
140 | | - <groupId>com.mycila</groupId> |
141 | | - <artifactId>license-maven-plugin</artifactId> |
142 | | - <version>3.0</version> |
| 141 | + <groupId>org.glassfish.copyright</groupId> |
| 142 | + <artifactId>glassfish-copyright-maven-plugin</artifactId> |
| 143 | + <version>${copyright-plugin.version}</version> |
| 144 | + <configuration> |
| 145 | + <scm>git</scm> |
| 146 | + <scmOnly>true</scmOnly> |
| 147 | + <excludeFile> |
| 148 | + ${basedir}/copyright-exclude |
| 149 | + </excludeFile> |
| 150 | + </configuration> |
143 | 151 | <executions> |
144 | 152 | <execution> |
| 153 | + <id>check-copyright</id> |
| 154 | + <phase>process-test-sources</phase> |
145 | 155 | <goals> |
| 156 | + <goal>copyright</goal> |
146 | 157 | <goal>check</goal> |
147 | 158 | </goals> |
148 | 159 | </execution> |
149 | 160 | </executions> |
150 | | - <configuration> |
151 | | - <header>src/license/header.txt</header> |
152 | | - <properties> |
153 | | - <owner>Oracle</owner> |
154 | | - <currentYear>2017</currentYear> |
155 | | - </properties> |
156 | | - <excludes> |
157 | | - <exclude>**/*.adoc</exclude> |
158 | | - <exclude>**/*.launch</exclude> |
159 | | - <exclude>**/*.sh</exclude> |
160 | | - <exclude>**/pom.xml</exclude> |
161 | | - <exclude>**/README</exclude> |
162 | | - <exclude>**/settings.xml</exclude> |
163 | | - <exclude>src/license/**</exclude> |
164 | | - <exclude>src/test/resources/**</exclude> |
165 | | - <exclude>src/main/resources/**</exclude> |
166 | | - <exclude>*.txt</exclude> |
167 | | - </excludes> |
168 | | - <headerDefinitions> |
169 | | - <headerDefinition>src/license/headers.xml</headerDefinition> |
170 | | - </headerDefinitions> |
171 | | - <mapping> |
172 | | - <java>JAVA_STYLE</java> |
173 | | - </mapping> |
174 | | - </configuration> |
175 | 161 | </plugin> |
176 | 162 | <plugin> |
177 | 163 | <groupId>org.glassfish.build</groupId> |
|
0 commit comments