JCLOUDS-31. adjust license plugin and header file to ASF license scheme; change java to comment style; include maven pom.xml

This commit is contained in:
adriancole 2013-05-16 11:29:16 -07:00
parent f22731d908
commit de91662fb7
2 changed files with 117 additions and 52 deletions

141
pom.xml
View File

@ -1,22 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to jclouds, Inc. (jclouds) under one or more
contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. jclouds licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@ -65,30 +63,56 @@ under the License.
<configuration>
<excludeSubProjects>false</excludeSubProjects>
<excludes>
<!-- expectation files for unit tests -->
<exclude>**/src/test/resources/**</exclude>
<!-- prevent duplicating license -->
<exclude>**/LICENSE.txt</exclude>
<exclude>**/header.txt</exclude>
<!-- high-level project metadata -->
<exclude>**/NOTICE.txt</exclude>
<exclude>**/DISCLAIMER</exclude>
<exclude>**/BUILD.txt</exclude>
<exclude>**/CHANGES.txt</exclude>
<exclude>**/NOTICE-src.txt</exclude>
<exclude>**/README.md</exclude>
<exclude>**/README.txt</exclude>
<!-- temporarily exclude shell script fragments -->
<exclude>**/*sh</exclude>
<exclude>**/*cmd</exclude>
<!-- reference data lists -->
<exclude>**/*json</exclude>
<exclude>**/*readme</exclude>
<!-- one-line service registry files -->
<exclude>**/*ProviderMetadata</exclude>
<exclude>**/*ApiMetadata</exclude>
<exclude>**/*LoggingModule</exclude>
<!-- temporary files or those generated by IDE or SCM -->
<exclude>**/target/**</exclude>
<exclude>**/test-output/**</exclude>
<exclude>**/bin/**</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.dir-locals.el</exclude>
<exclude>**/.project</exclude>
<exclude>**/.idea/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.eml</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.DS_STORE</exclude>
<exclude>**/TAGS</exclude>
<exclude>**/.metadata/**</exclude>
<exclude>**/atlassian-ide-plugin.xml</exclude>
<exclude>**/.DS_Store</exclude>
<exclude>.mailmap</exclude>
<exclude>.git/**</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/.gitattributes</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.log*</exclude>
<exclude>**/TODO</exclude>
<exclude>.mailmap</exclude>
<exclude>.idea/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/.project</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.checkstyle</exclude>
<exclude>**/target/**</exclude>
<exclude>**/*ProviderMetadata</exclude>
<exclude>**/*ApiMetadata</exclude>
<exclude>**/src/test/resources/**/*</exclude>
<exclude>**/*readme</exclude>
<exclude>.repository/**</exclude>
<!-- binary -->
</excludes>
</configuration>
</plugin>
@ -102,20 +126,63 @@ under the License.
<aggregate>true</aggregate>
<header>project/src/etc/header.txt</header>
<mapping>
<xml>XML_STYLE</xml>
    <java>SLASHSTAR_STYLE</java>
    <clj>SEMICOLON_STYLE</clj>
</mapping>
<excludes>
<exclude>**/src/**/resources/**</exclude>
<!-- expectation files for unit tests -->
<exclude>**/src/test/resources/**</exclude>
<!-- prevent duplicating license -->
<exclude>**/LICENSE.txt</exclude>
<exclude>**/header.txt</exclude>
<!-- high-level project metadata -->
<exclude>**/NOTICE.txt</exclude>
<exclude>**/DISCLAIMER</exclude>
<exclude>**/BUILD.txt</exclude>
<exclude>**/CHANGES.txt</exclude>
<exclude>**/README.md</exclude>
<exclude>**/README.txt</exclude>
<exclude>**/header.txt</exclude>
<!-- temporarily exclude shell script fragments -->
<exclude>**/*sh</exclude>
<exclude>**/*cmd</exclude>
<!-- reference data lists -->
<exclude>**/*json</exclude>
<exclude>**/*readme</exclude>
<!-- one-line service registry files -->
<exclude>**/*ProviderMetadata</exclude>
<exclude>**/*ApiMetadata</exclude>
<exclude>**/*LoggingModule</exclude>
<!-- temporary files or those generated by IDE or SCM -->
<exclude>**/target/**</exclude>
<exclude>**/test-output/**</exclude>
<exclude>**/bin/**</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.dir-locals.el</exclude>
<exclude>**/.project</exclude>
<exclude>**/.idea/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.eml</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.DS_STORE</exclude>
<exclude>**/TAGS</exclude>
<exclude>**/.metadata/**</exclude>
<exclude>**/atlassian-ide-plugin.xml</exclude>
<exclude>**/.DS_Store</exclude>
<exclude>.mailmap</exclude>
<exclude>.git/**</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/.gitattributes</exclude>
</excludes>
<properties>
<year>2011</year>
<copyrightHolder>jclouds, Inc.</copyrightHolder>
</properties>
<useDefaultExcludes>false</useDefaultExcludes>
</configuration>
</plugin>
</plugins>

View File

@ -1,16 +1,14 @@
Licensed to jclouds, Inc. (jclouds) under one or more
contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. jclouds licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.