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

143
pom.xml
View File

@ -1,22 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Licensed to jclouds, Inc. (jclouds) under one or more Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file contributor license agreements. See the NOTICE file distributed with
distributed with this work for additional information this work for additional information regarding copyright ownership.
regarding copyright ownership. jclouds licenses this file The ASF licenses this file to You under the Apache License, Version 2.0
to you under the Apache License, Version 2.0 (the (the "License"); you may not use this file except in compliance with
"License"); you may not use this file except in compliance the License. You may obtain a copy of the License at
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, Unless required by applicable law or agreed to in writing, software
software distributed under the License is distributed on an distributed under the License is distributed on an "AS IS" BASIS,
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
KIND, either express or implied. See the License for the See the License for the specific language governing permissions and
specific language governing permissions and limitations limitations under the License.
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"> <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> <configuration>
<excludeSubProjects>false</excludeSubProjects> <excludeSubProjects>false</excludeSubProjects>
<excludes> <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>**/BUILD.txt</exclude>
<exclude>**/CHANGES.txt</exclude> <exclude>**/CHANGES.txt</exclude>
<exclude>**/NOTICE-src.txt</exclude>
<exclude>**/README.md</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>.git/**</exclude>
<exclude>**/.gitignore</exclude> <exclude>**/.gitignore</exclude>
<exclude>**/.gitattributes</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> </excludes>
</configuration> </configuration>
</plugin> </plugin>
@ -102,20 +126,63 @@ under the License.
<aggregate>true</aggregate> <aggregate>true</aggregate>
<header>project/src/etc/header.txt</header> <header>project/src/etc/header.txt</header>
<mapping> <mapping>
<xml>XML_STYLE</xml>
    <java>SLASHSTAR_STYLE</java>
    <clj>SEMICOLON_STYLE</clj>     <clj>SEMICOLON_STYLE</clj>
</mapping> </mapping>
<excludes> <excludes>
<exclude>**/src/**/resources/**</exclude> <!-- expectation files for unit tests -->
<exclude>**/src/test/resources/**</exclude>
<!-- prevent duplicating license -->
<exclude>**/LICENSE.txt</exclude> <exclude>**/LICENSE.txt</exclude>
<exclude>**/header.txt</exclude>
<!-- high-level project metadata -->
<exclude>**/NOTICE.txt</exclude> <exclude>**/NOTICE.txt</exclude>
<exclude>**/DISCLAIMER</exclude>
<exclude>**/BUILD.txt</exclude>
<exclude>**/CHANGES.txt</exclude>
<exclude>**/README.md</exclude> <exclude>**/README.md</exclude>
<exclude>**/README.txt</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> </excludes>
<properties> <useDefaultExcludes>false</useDefaultExcludes>
<year>2011</year>
<copyrightHolder>jclouds, Inc.</copyrightHolder>
</properties>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

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