Author: bimargulies
Date: Sat Feb 25 19:02:40 2012
New Revision: 1293664
URL: http://svn.apache.org/viewvc?rev=1293664&view=rev
Log:
Make the lifecycle idea work.
Added:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/
- copied from r1291348,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/pom.xml
- copied, changed from r1293643,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/pom.xml
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/src/main/
- copied from r1293635,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/src/main/
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/src/main/java/org/apache/maven/it/ThisHasJavadoc.java
- copied unchanged from r1293643,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/src/main/java/org/apache/maven/it/ThisHasJavadoc.java
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/src/site/site.xml
- copied unchanged from r1293635,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/src/site/site.xml
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
(with props)
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
(with props)
Modified:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/plexus/components.xml
Modified: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml?rev=1293664&r1=1293663&r2=1293664&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml (original)
+++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml Sat Feb 25
19:02:40 2012
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ 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">
Copied:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/pom.xml
(from r1293643,
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/pom.xml)
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/pom.xml?p2=maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/pom.xml&p1=maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/pom.xml&r1=1293643&r2=1293664&rev=1293664&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/002-perform/pom.xml
(original)
+++
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/003-lifecycle/pom.xml
Sat Feb 25 19:02:40 2012
@@ -20,8 +20,8 @@
<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.apache.maven.plugins</groupId>
- <artifactId>asf-svnpubsub-plugin-002-perform</artifactId>
- <name>asf-svnpubsub-plugin-002-perform</name>
+ <artifactId>asf-svnpubsub-plugin-003-lifecycle</artifactId>
+ <name>asf-svnpubsub-plugin-003-lifecycle</name>
<version>1.0-SNAPSHOT</version>
<url>http://people.apache.org/~bimargulies/site-test</url>
<distributionManagement>
@@ -49,8 +49,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>asf-svnpubsub-plugin</artifactId>
<version>@pom.version@</version>
+ <extensions>true</extensions>
<configuration>
-
<pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/bimargulies/site-test</pubScmUrl>
+
<pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/bimargulies/site-test-003</pubScmUrl>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
@@ -62,21 +63,6 @@
<version>1.15</version>
</dependency>
</dependencies>
- <executions>
- <execution>
- <id>prepare</id>
- <phase>pre-site</phase>
- <goals><goal>prepare</goal></goals>
- </execution>
- <execution>
- <id>perform</id>
- <phase>post-site</phase>
- <goals><goal>publish</goal></goals>
- <configuration>
- <dryRun>true</dryRun>
- </configuration>
- </execution>
- </executions>
</plugin>
</plugins>
</build>
Added:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java?rev=1293664&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
(added)
+++
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
Sat Feb 25 19:02:40 2012
@@ -0,0 +1,41 @@
+package org.apache.maven.plugins.svnpubsub;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/*
+ * 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.
+ */
+
+/**
+ *
+ * @goal svnpubsub
+ * @execute lifecycle="svnpubsub" phase="svnpubsub-publish"
+ * @aggregate
+ */
+public class SvnpubsubLifecycleMojo extends CommonSvnpubsubMojo
+{
+
+ public void execute()
+ throws MojoExecutionException, MojoFailureException
+ {
+ // nothing to do. This only purpose here is to set loose the lifecycle.
+
+ }
+
+}
Propchange:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubLifecycleMojo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml?rev=1293664&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
(added)
+++
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
Sat Feb 25 19:02:40 2012
@@ -0,0 +1,33 @@
+<?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.
+ -->
+<lifecycles>
+ <lifecycle>
+ <id>svnpubsub</id>
+ <phases>
+ <phase>
+ <id>svnpubsub-prepare</id>
+ </phase>
+ <phase>
+ <id>svnpubsub-pre-site</id>
+ </phase>
+ <phase>
+ <id>svnpubsub-site</id>
+ </phase>
+ <phase>
+ <id>svnpubsub-post-site</id>
+ </phase>
+ <phase>
+ <id>svnpubsub-publish</id>
+ </phase>
+ </phases>
+ </lifecycle>
+
+</lifecycles>
\ No newline at end of file
Propchange:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/maven/lifecycle.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified:
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/plexus/components.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/plexus/components.xml?rev=1293664&r1=1293663&r2=1293664&view=diff
==============================================================================
---
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/plexus/components.xml
(original)
+++
maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/resources/META-INF/plexus/components.xml
Sat Feb 25 19:02:40 2012
@@ -1,31 +1,65 @@
<?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.
+ -->
+
<component-set>
<components>
<component>
+ <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+ <role-hint>svnpubsub</role-hint>
+ <implementation>
+ org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
+ </implementation>
+ <configuration>
+ <phases>
+ <svnpubsub-prepare>
+ org.apache.maven.plugins:asf-svnpubsub-plugin:1.0-SNAPSHOT:prepare
+ </svnpubsub-prepare>
+ <svnpubsub-site>
+ org.apache.maven.plugins:maven-site-plugin:3.0:site
+ </svnpubsub-site>
+ <svnpubsub-post-site>
+ org.apache.maven.plugins:maven-site-plugin:3.0:stage
+ </svnpubsub-post-site>
+ <svnpubsub-publish>
+ org.apache.maven.plugins:asf-svnpubsub-plugin:1.0-SNAPSHOT:prepare
+ </svnpubsub-publish>
+ </phases>
+ </configuration>
+ </component>
+ <component>
<role>org.apache.maven.lifecycle.Lifecycle</role>
<implementation>org.apache.maven.lifecycle.Lifecycle</implementation>
<role-hint>svnpubsub</role-hint>
<configuration>
<id>svnpubsub</id>
<phases>
- <phase>pre-site</phase>
- <phase>site</phase>
- <phase>post-site</phase>
- <phase>site-deploy</phase>
+ <phase>svnpubsub-prepare</phase>
+ <phase>svnpubsub-site</phase>
+ <phase>svnpubsub-post-site</phase>
+ <phase>svnpubsub-publish</phase>
</phases>
<default-phases>
- <pre-site>
+ <svnpubsub-prepare>
org.apache.maven.plugins:asf-svnpubsub-plugin:1.0-SNAPSHOT:prepare
- </pre-site>
- <site>
+ </svnpubsub-prepare>
+ <svnpubsub-site>
org.apache.maven.plugins:maven-site-plugin:3.0:site
- </site>
- <post-site>
- org.apache.maven.plugins:maven-site-plugin:3.0:stage
- </post-site>
- <site-deploy>
+ </svnpubsub-site>
+ <svnpubsub-post-site>
+ org.apache.maven.plugins:maven-site-plugin:3.0:stage
+ </svnpubsub-post-site>
+ <svnpubsub-publish>
org.apache.maven.plugins:asf-svnpubsub-plugin:1.0-SNAPSHOT:prepare
- </site-deploy>
+ </svnpubsub-publish>
</default-phases>
</configuration>
</component>