You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2007/02/16 05:16:00 UTC
svn commit: r508304 - in /maven/sandbox/plugins: ./ maven-enforcer-plugin/
maven-enforcer-plugin/src/ maven-enforcer-plugin/src/main/
maven-enforcer-plugin/src/main/java/ maven-enforcer-plugin/src/main/java/org/
maven-enforcer-plugin/src/main/java/org/...
Author: brianf
Date: Thu Feb 15 20:16:00 2007
New Revision: 508304
URL: http://svn.apache.org/viewvc?view=rev&rev=508304
Log:
initial enforcer plugin shell
Added:
maven/sandbox/plugins/maven-enforcer-plugin/ (with props)
maven/sandbox/plugins/maven-enforcer-plugin/pom.xml (with props)
maven/sandbox/plugins/maven-enforcer-plugin/src/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/JdkMojo.java
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/MavenMojo.java
maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/OsMojo.java
Modified:
maven/sandbox/plugins/pom.xml
Propchange: maven/sandbox/plugins/maven-enforcer-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 15 20:16:00 2007
@@ -0,0 +1,3 @@
+target
+.classpath
+.project
Added: maven/sandbox/plugins/maven-enforcer-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-enforcer-plugin/pom.xml?view=auto&rev=508304
==============================================================================
--- maven/sandbox/plugins/maven-enforcer-plugin/pom.xml (added)
+++ maven/sandbox/plugins/maven-enforcer-plugin/pom.xml Thu Feb 15 20:16:00 2007
@@ -0,0 +1,161 @@
+<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">
+ <!--
+ * 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.
+ *
+-->
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>maven-plugins</artifactId>
+ <groupId>org.apache.maven.plugins</groupId>
+ <version>8-SNAPSHOT</version>
+ </parent>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+ <name>Maven Enforcer Plugin</name>
+ <description>The Loving Iron First of Maven</description>
+ <version>1.0-alpha-1-SNAPSHOT</version>
+ <issueManagement>
+ <system>JIRA</system>
+ <url>http://jira.codehaus.org/browse/MNG</url>
+ </issueManagement>
+ <mailingLists>
+ <!-- duplication from maven-plugins pom - temporary until they inherit properly
+ -->
+ <mailingList>
+ <name>Maven User List</name>
+ <subscribe>users-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
+ <post>users@maven.apache.org</post>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
+ <otherArchives>
+ <otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
+ <otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
+ </otherArchives>
+ </mailingList>
+ <mailingList>
+ <name>Maven Developer List</name>
+ <subscribe>dev-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
+ <post>dev@maven.apache.org</post>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+ </mailingList>
+ <mailingList>
+ <name>Maven Commits List</name>
+ <subscribe>commits-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
+ <post>commits@maven.apache.org</post>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+ </mailingList>
+ <!-- duplication from maven-parent pom - temporary until they inherit properly -->
+ <mailingList>
+ <name>Maven Announcements List</name>
+ <post>announce@maven.apache.org</post>
+ <subscribe>announce-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
+ </mailingList>
+ <mailingList>
+ <name>Maven Issues List</name>
+ <post>issues@maven.apache.org</post>
+ <subscribe>issues-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
+ </mailingList>
+ <mailingList>
+ <name>Maven Notifications List</name>
+ <post>notifications@maven.apache.org</post>
+ <subscribe>notifications-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
+ </mailingList>
+ </mailingLists>
+ <developers>
+ <developer>
+ <id>brianfox</id>
+ <name>Brian Fox</name>
+ <email>brianefox@gmail.com</email>
+ <roles>
+ <role>Lead Developer</role>
+ </roles>
+ <timezone>5</timezone>
+ </developer>
+ </developers>
+ <licenses>
+ <license>
+ <name>Apache License 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>clean</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <resources>
+ <!-- Include the apache process LICENSE and NOTICE files.-->
+ <!--uncomment for release. Commented out for now to enable eclipse-plugin to work-->
+ <!--<resource>
+ <targetPath>META-INF</targetPath>
+ <filtering>false</filtering>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>LICENSE</include>
+ <include>NOTICE</include>
+ </includes>
+ </resource>-->
+ <!-- Include super-pom defined main/resources
+ Removing this section will break the build.
+ Since we have defined a new build/resources
+ section for the Apache process LICENSE and NOTICE
+ files, this original default section is now
+ required. -->
+ <resource>
+ <directory>${basedir}/src/main/resources</directory>
+ </resource>
+ </resources>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0.4</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: maven/sandbox/plugins/maven-enforcer-plugin/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/JdkMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/JdkMojo.java?view=auto&rev=508304
==============================================================================
--- maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/JdkMojo.java (added)
+++ maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/JdkMojo.java Thu Feb 15 20:16:00 2007
@@ -0,0 +1,41 @@
+package org.apache.maven.plugin.enforcer;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+/**
+ * Goal which fails the build if the jdk isn't the correct version
+ *
+ * @goal jdk
+ * @author Brian Fox
+ * @phase process-sources
+ */
+public class JdkMojo
+ extends AbstractMojo
+{
+
+ public void execute()
+ throws MojoExecutionException
+ {
+
+ }
+}
Added: maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/MavenMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/MavenMojo.java?view=auto&rev=508304
==============================================================================
--- maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/MavenMojo.java (added)
+++ maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/MavenMojo.java Thu Feb 15 20:16:00 2007
@@ -0,0 +1,41 @@
+package org.apache.maven.plugin.enforcer;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+/**
+ * Goal which fails the build if Maven isn't the correct version
+ *
+ * @goal maven
+ *
+ * @phase process-sources
+ */
+public class MavenMojo
+ extends AbstractMojo
+{
+
+ public void execute()
+ throws MojoExecutionException
+ {
+
+ }
+}
Added: maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/OsMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/OsMojo.java?view=auto&rev=508304
==============================================================================
--- maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/OsMojo.java (added)
+++ maven/sandbox/plugins/maven-enforcer-plugin/src/main/java/org/apache/maven/plugin/enforcer/OsMojo.java Thu Feb 15 20:16:00 2007
@@ -0,0 +1,42 @@
+package org.apache.maven.plugin.enforcer;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+/**
+ * Goal which fails the build if the os isn't the correct version
+ *
+ * @goal os
+ * @author brian fox
+ * @phase process-sources
+ */
+public class OsMojo
+ extends AbstractMojo
+{
+
+
+ public void execute()
+ throws MojoExecutionException
+ {
+
+ }
+}
Modified: maven/sandbox/plugins/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/plugins/pom.xml?view=diff&rev=508304&r1=508303&r2=508304
==============================================================================
--- maven/sandbox/plugins/pom.xml (original)
+++ maven/sandbox/plugins/pom.xml Thu Feb 15 20:16:00 2007
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
@@ -16,6 +17,7 @@
<module>maven-plugin-management-plugin</module>
<module>maven-plug-it-plugin</module>
<module>maven-swizzle-plugin</module>
+ <module>maven-enforcer-plugin</module>
</modules>
-</project>
+</project>
\ No newline at end of file