fixing license and adding RAT plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/trunk/mae@1189431 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/README.markdown b/README.markdown
deleted file mode 100644
index db44474..0000000
--- a/README.markdown
+++ /dev/null
@@ -1,64 +0,0 @@
-# EMB - Extensible, Modular Builds #
-
-EMB is a build tool that wraps and extends [Apache Maven](http://maven.apache.org/). Its goal is to provide a mechanism for changing the core functionality of Maven using sets of add-on libraries.
-
-## Getting Started ##
-
-The simplest way to use EMB is via the emb-booter. To do this, first add a dependency in your POM to emb-booter:
-
- <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">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.commonjava.emb.example</groupId>
- <artifactId>example</artifactId>
- <version>1.0-SNAPSHOT</version>
- <properties>
- <mavenVersion>3.0-beta-2</mavenVersion>
- <embVersion>0.3-SNAPSHOT</embVersion>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.commonjava.emb</groupId>
- <artifactId>emb-booter</artifactId>
- <version>${embVersion}</version>
- </dependency>
- </dependencies>
- </project>
-
-Then, create a new EMBEmbedder instance, and use it to build a project:
-
- List<String> goals = new ArrayList<String>();
- goals.add( "clean" );
- goals.add( "install" );
-
- new EMBEmbedderBuilder().build().execute( new EMBExecutionRequest().setGoals( goals ) );
-
-## Using Services ##
-
-You can use allowed Maven components via the ServiceManager. For instance, to resolve an artifact:
-
- EMBEmbeder emb = new EMBEmbedderBuilder().build();
- emb.serviceManager().repositorySystem().resolve( artifact );
-
-Or, to build a set of MavenProject instances from POM files:
-
- EMBEmbeder emb = new EMBEmbedderBuilder().build();
-
- ProjectBuildingRequest req = new DefaultProjectBuildingRequest()
- .setSystemProperties( System.getProperties() )
- .setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL )
- .setForceUpdate( true )
- .setProcessPlugins( false )
- .setRepositoryCache( new InternalRepositoryCache() )
- .setLocalRepository( emb.serviceManager()
- .repositorySystem()
- .createLocalRepository( new File( workDir, "local-repository" ) ) );
-
- List<ProjectBuildingResult> results = emb.serviceManager().projectBuilder().build( pomFiles, useReactor, req );
-
- List<MavenProject> projects = new ArrayList<MavenProject>( pomFiles.size() );
- for ( final ProjectBuildingResult result : results )
- {
- projects.add( result.getProject() );
- }
-
diff --git a/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/ContainerOwner.java b/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/ContainerOwner.java
index 453c351..6a6c7e5 100644
--- a/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/ContainerOwner.java
+++ b/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/ContainerOwner.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
package org.apache.maven.mae.internal.container.fixture;
import org.codehaus.plexus.PlexusContainer;
diff --git a/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/Part.java b/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/Part.java
index 45624b6..c97a8fe 100644
--- a/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/Part.java
+++ b/mae-booter/src/test/java/org/apache/maven/mae/internal/container/fixture/Part.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
package org.apache.maven.mae.internal.container.fixture;
public interface Part
diff --git a/mae-components/mae-graph-support/pom.xml b/mae-components/mae-graph-support/pom.xml
index 3fe6561..f6a78e9 100644
--- a/mae-components/mae-graph-support/pom.xml
+++ b/mae-components/mae-graph-support/pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0"?>
+<!--
+ 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.
+-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
diff --git a/mae-prompter-cli/pom.xml b/mae-prompter-cli/pom.xml
index 9868d40..dd5d5db 100644
--- a/mae-prompter-cli/pom.xml
+++ b/mae-prompter-cli/pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0"?>
+<!--
+ 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.
+-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
diff --git a/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/Prompt.java b/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/Prompt.java
index 9623d0e..525d2fe 100644
--- a/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/Prompt.java
+++ b/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/Prompt.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
package org.apache.maven.mae.prompt;
import java.util.List;
diff --git a/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/PromptException.java b/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/PromptException.java
index 56dd5db..1431990 100644
--- a/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/PromptException.java
+++ b/mae-prompter-cli/src/main/java/org/apache/maven/mae/prompt/PromptException.java
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
package org.apache.maven.mae.prompt;
import org.apache.maven.mae.MAEException;
diff --git a/pom.xml b/pom.xml
index 28f715e..a56ce26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,7 +149,35 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>0.7</version>
+ <executions>
+ <execution>
+ <id>rat-check</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <excludes>
+ <exclude>**/.plxarc</exclude>
+ <exclude>*.log</exclude>
+ <exclude>.gitignore</exclude>
+ <exclude>**/target/maven-shared-archive-resources/META-INF/*</exclude>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ </plugin>
+ </plugins>
</build>
</project>
\ No newline at end of file