Author: bimargulies Date: Tue Feb 14 02:44:59 2012 New Revision: 1243767 URL: http://svn.apache.org/viewvc?rev=1243767&view=rev Log: First signs of live from the first goal.
Added: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties (with props) maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml (with props) maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml (with props) Modified: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubInventoryMojo.java 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=1243767&r1=1243766&r2=1243767&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml (original) +++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/pom.xml Tue Feb 14 02:44:59 2012 @@ -92,4 +92,41 @@ <version>2.0.1</version> </dependency> </dependencies> + <profiles> + <profile> + <id>run-its</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-invoker-plugin</artifactId> + <configuration> + <projectsDirectory>src/it</projectsDirectory> + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> + <pomIncludes> + <pomInclude>*/pom.xml</pomInclude> + </pomIncludes> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + <goals> + <goal>clean</goal> + <goal>package</goal> + </goals> + <settingsFile>src/it/settings.xml</settingsFile> + <debug>true</debug> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>install</goal> + <goal>integration-test</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> Added: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties?rev=1243767&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties (added) +++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties Tue Feb 14 02:44:59 2012 @@ -0,0 +1 @@ +invoker.goals = pre-site Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/invoker.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml?rev=1243767&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml (added) +++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml Tue Feb 14 02:44:59 2012 @@ -0,0 +1,46 @@ +<?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 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-001-prepare</artifactId> + <name>asf-svnpubsub-plugin-001-prepare</name> + <version>1.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>asf-svnpubsub-plugin</artifactId> + <version>@pom.version@</version> + <executions> + <execution> + <id>prepare</id> + <phase>pre-site</phase> + <goals><goal>prepare</goal></goals> + <configuration> + <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/bimargulies/site-test</pubScmUrl> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/001-prepare/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml?rev=1243767&view=auto ============================================================================== --- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml (added) +++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml Tue Feb 14 02:44:59 2012 @@ -0,0 +1,55 @@ +<?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. +--> + +<settings> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings> Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/it/settings.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubInventoryMojo.java URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubInventoryMojo.java?rev=1243767&r1=1243766&r2=1243767&view=diff ============================================================================== --- maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubInventoryMojo.java (original) +++ maven/sandbox/trunk/plugins/asf-svnpubsub-plugin/src/main/java/org/apache/maven/plugins/svnpubsub/SvnpubsubInventoryMojo.java Tue Feb 14 02:44:59 2012 @@ -108,7 +108,7 @@ public class SvnpubsubInventoryMojo /** * Tool that gets a configured SCM repository from release configuration. * - * @plexus.requirement + * @component */ private ScmRepositoryConfigurator scmRepositoryConfigurator; @@ -219,6 +219,7 @@ public class SvnpubsubInventoryMojo releaseDescriptor.setWorkingDirectory( basedir.getAbsolutePath() ); releaseDescriptor.setLocalCheckout( localCheckout ); + releaseDescriptor.setScmSourceUrl( pubScmUrl ); try {