Maven-helper-plugin-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
June 2010
- 1 participants
- 35 discussions
Author: tchemit
Date: 2010-06-19 20:56:02 +0200 (Sat, 19 Jun 2010)
New Revision: 731
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/731
Log:
Utilisation de mavenpom4redmine 2.2
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-19 15:47:59 UTC (rev 730)
+++ trunk/pom.xml 2010-06-19 18:56:02 UTC (rev 731)
@@ -34,7 +34,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.1.5</version>
+ <version>2.2</version>
</parent>
<artifactId>maven-helper-plugin</artifactId>
@@ -307,14 +307,6 @@
<url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/trunk</url>
</scm>
- <!-- remove this when using mavenpom4redmine 2.2 -->
- <distributionManagement>
- <repository>
- <id>nuiton</id>
- <url>scpexe://nuiton.org/var/lib/nexus/storage/nuiton-central-releases</url>
- </repository>
- </distributionManagement>
-
<!-- ************************************************************* -->
<!-- *** Build Settings ****************************************** -->
<!-- ************************************************************* -->
@@ -323,10 +315,6 @@
<properties>
- <!-- TODO Use the central-safe profile when mavenpom > 2.2 -->
- <!-- deploy releases on nuiton-central-releases repository -->
- <release.repository>scpexe://nuiton.org/var/lib/nexus/storage/nuiton-central-releases</release.repository>
-
<plexusMailSender.version>1.0-alpha-2</plexusMailSender.version>
<!-- extra files to include in release -->
@@ -543,6 +531,51 @@
</build>
</profile>
+ <profile>
+ <id>central-safe</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <properties>
+
+ <!-- deploy releases on nuiton-central-releases repository -->
+ <release.repository>${nuiton.central.release.repository}</release.repository>
+
+ </properties>
+
+ <build>
+ <defaultGoal>validate</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <configuration>
+ <addMavenCentral>true</addMavenCentral>
+ <failIfNotSafe>true</failIfNotSafe>
+ <repositories>
+ <nuiton-central-releases>
+ http://nexus.nuiton.org/nexus/content/repositories/nuiton-central-releases
+ </nuiton-central-releases>
+ </repositories>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
</project>
1
0
r730 - in trunk/src/it/check-auto-container: central nuiton-other-releases unsafe-central
by tchemit@users.nuiton.org 19 Jun '10
by tchemit@users.nuiton.org 19 Jun '10
19 Jun '10
Author: tchemit
Date: 2010-06-19 17:47:59 +0200 (Sat, 19 Jun 2010)
New Revision: 730
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/730
Log:
fix its when release version is not yet available from any central safe repository
Modified:
trunk/src/it/check-auto-container/central/pom.xml
trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml
trunk/src/it/check-auto-container/unsafe-central/pom.xml
Modified: trunk/src/it/check-auto-container/central/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/central/pom.xml 2010-06-19 14:57:35 UTC (rev 729)
+++ trunk/src/it/check-auto-container/central/pom.xml 2010-06-19 15:47:59 UTC (rev 730)
@@ -60,6 +60,9 @@
<addMavenCentral>true</addMavenCentral>
<failIfNotSafe>true</failIfNotSafe>
<verbose>true</verbose>
+ <repositories>
+ <local>file:///@localRepository@</local>
+ </repositories>
</configuration>
</execution>
</executions>
Modified: trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:57:35 UTC (rev 729)
+++ trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 15:47:59 UTC (rev 730)
@@ -70,6 +70,7 @@
<nuiton-central-releases>
http://nexus.nuiton.org/nexus/content/repositories/nuiton-other-releases
</nuiton-central-releases>
+ <local>file://${basedir}/../../../local-repo</local>
</repositories>
</configuration>
</execution>
Modified: trunk/src/it/check-auto-container/unsafe-central/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/unsafe-central/pom.xml 2010-06-19 14:57:35 UTC (rev 729)
+++ trunk/src/it/check-auto-container/unsafe-central/pom.xml 2010-06-19 15:47:59 UTC (rev 730)
@@ -67,6 +67,9 @@
<verbose>true</verbose>
<addMavenCentral>true</addMavenCentral>
<failIfNotSafe>true</failIfNotSafe>
+ <repositories>
+ <local>file://${basedir}/../../../local-repo</local>
+ </repositories>
</configuration>
</execution>
</executions>
1
0
r729 - in tags/maven-helper-plugin-1.2.5/src/it/check-auto-container: central nuiton-other-releases
by tchemit@users.nuiton.org 19 Jun '10
by tchemit@users.nuiton.org 19 Jun '10
19 Jun '10
Author: tchemit
Date: 2010-06-19 16:57:35 +0200 (Sat, 19 Jun 2010)
New Revision: 729
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/729
Log:
fix it when version is still not in any central repository
Modified:
tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml
tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml
Modified: tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml
===================================================================
--- tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml 2010-06-19 14:40:06 UTC (rev 728)
+++ tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml 2010-06-19 14:57:35 UTC (rev 729)
@@ -61,7 +61,7 @@
<failIfNotSafe>true</failIfNotSafe>
<verbose>true</verbose>
<repositories>
- <local>file:///@localRepository@</local>
+ <local>file://${basedir}/../../../local-repo</local>
</repositories>
</configuration>
</execution>
Modified: tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml
===================================================================
--- tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:40:06 UTC (rev 728)
+++ tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:57:35 UTC (rev 729)
@@ -70,9 +70,7 @@
<nuiton-central-releases>
http://nexus.nuiton.org/nexus/content/repositories/nuiton-other-releases
</nuiton-central-releases>
- <repositories>
- <local>file:///@localRepository@</local>
- </repositories>
+ <local>file://${basedir}/../../../local-repo</local>
</repositories>
</configuration>
</execution>
1
0
r728 - in tags/maven-helper-plugin-1.2.5/src/it/check-auto-container: central nuiton-other-releases
by tchemit@users.nuiton.org 19 Jun '10
by tchemit@users.nuiton.org 19 Jun '10
19 Jun '10
Author: tchemit
Date: 2010-06-19 16:40:06 +0200 (Sat, 19 Jun 2010)
New Revision: 728
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/728
Log:
fix it when version is still not in any central repository
Modified:
tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml
tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml
Modified: tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml
===================================================================
--- tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml 2010-06-19 14:30:51 UTC (rev 727)
+++ tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/central/pom.xml 2010-06-19 14:40:06 UTC (rev 728)
@@ -60,6 +60,9 @@
<addMavenCentral>true</addMavenCentral>
<failIfNotSafe>true</failIfNotSafe>
<verbose>true</verbose>
+ <repositories>
+ <local>file:///@localRepository@</local>
+ </repositories>
</configuration>
</execution>
</executions>
Modified: tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml
===================================================================
--- tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:30:51 UTC (rev 727)
+++ tags/maven-helper-plugin-1.2.5/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:40:06 UTC (rev 728)
@@ -70,6 +70,9 @@
<nuiton-central-releases>
http://nexus.nuiton.org/nexus/content/repositories/nuiton-other-releases
</nuiton-central-releases>
+ <repositories>
+ <local>file:///@localRepository@</local>
+ </repositories>
</repositories>
</configuration>
</execution>
1
0
Author: tchemit
Date: 2010-06-19 16:30:51 +0200 (Sat, 19 Jun 2010)
New Revision: 727
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/727
Log:
[maven-release-plugin] prepare for next development iteration
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-19 14:30:50 UTC (rev 726)
+++ trunk/pom.xml 2010-06-19 14:30:51 UTC (rev 727)
@@ -39,7 +39,7 @@
<artifactId>maven-helper-plugin</artifactId>
- <version>1.2.5</version>
+ <version>1.2.6-SNAPSHOT</version>
<dependencies>
@@ -302,9 +302,9 @@
<!-- ************************************************************* -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/tags/maven-helper-plu…</connection>
- <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/tags/maven-helper-plu…</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/tags/maven-he…</url>
+ <connection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/trunk</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/trunk</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/trunk</url>
</scm>
<!-- remove this when using mavenpom4redmine 2.2 -->
1
0
Author: tchemit
Date: 2010-06-19 16:30:50 +0200 (Sat, 19 Jun 2010)
New Revision: 726
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/726
Log:
[maven-release-plugin] copy for tag maven-helper-plugin-1.2.5
Added:
tags/maven-helper-plugin-1.2.5/
Property changes on: tags/maven-helper-plugin-1.2.5
___________________________________________________________________
Added: svn:ignore
+ target
*.iml
*.ipr
*.iws
Added: svn:mergeinfo
+
1
0
Author: tchemit
Date: 2010-06-19 16:30:48 +0200 (Sat, 19 Jun 2010)
New Revision: 725
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/725
Log:
[maven-release-plugin] prepare release maven-helper-plugin-1.2.5
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-19 14:30:01 UTC (rev 724)
+++ trunk/pom.xml 2010-06-19 14:30:48 UTC (rev 725)
@@ -39,7 +39,7 @@
<artifactId>maven-helper-plugin</artifactId>
- <version>1.2.5-SNAPSHOT</version>
+ <version>1.2.5</version>
<dependencies>
@@ -302,9 +302,9 @@
<!-- ************************************************************* -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/trunk</connection>
- <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/trunk</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/trunk</url>
+ <connection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/tags/maven-helper-plu…</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-helper-plugin/tags/maven-helper-plu…</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/tags/maven-he…</url>
</scm>
<!-- remove this when using mavenpom4redmine 2.2 -->
1
0
Author: tchemit
Date: 2010-06-19 16:30:01 +0200 (Sat, 19 Jun 2010)
New Revision: 724
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/724
Log:
fix release repository url
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
+++ trunk/pom.xml 2010-06-19 14:30:01 UTC (rev 724)
@@ -323,8 +323,9 @@
<properties>
+ <!-- TODO Use the central-safe profile when mavenpom > 2.2 -->
<!-- deploy releases on nuiton-central-releases repository -->
- <release.repository>${nuiton.central.release.repository}</release.repository>
+ <release.repository>scpexe://nuiton.org/var/lib/nexus/storage/nuiton-central-releases</release.repository>
<plexusMailSender.version>1.0-alpha-2</plexusMailSender.version>
1
0
19 Jun '10
Author: tchemit
Date: 2010-06-19 16:22:59 +0200 (Sat, 19 Jun 2010)
New Revision: 723
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/723
Log:
- improve documentation
- improve its
- finalize check-auto-container goal
Added:
trunk/src/it/check-auto-container/
trunk/src/it/check-auto-container/central/
trunk/src/it/check-auto-container/central/invoker.properties
trunk/src/it/check-auto-container/central/pom.xml
trunk/src/it/check-auto-container/central/verify.groovy
trunk/src/it/check-auto-container/nuiton-other-releases/
trunk/src/it/check-auto-container/nuiton-other-releases/invoker.properties
trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml
trunk/src/it/check-auto-container/nuiton-other-releases/verify.groovy
trunk/src/it/check-auto-container/unsafe-central/
trunk/src/it/check-auto-container/unsafe-central/invoker.properties
trunk/src/it/check-auto-container/unsafe-central/pom.xml
trunk/src/it/check-auto-container/unsafe-central/verify.groovy
Modified:
trunk/pom.xml
trunk/src/it/collect-files/multi/pom.xml
trunk/src/it/collect-files/single/pom.xml
trunk/src/it/send-email/single/pom.xml
trunk/src/it/settings.xml
trunk/src/it/share-server-secret/single/pom.xml
trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java
trunk/src/site/apt/index.apt
trunk/src/site/apt/mojo-examples.apt
trunk/src/site/apt/mojo-usages.apt
trunk/src/site/site_en.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -328,13 +328,11 @@
<plexusMailSender.version>1.0-alpha-2</plexusMailSender.version>
- <javadoc.version>2.7</javadoc.version>
-
<!-- extra files to include in release -->
<redmine.releaseFiles>${redmine.libReleaseFiles}</redmine.releaseFiles>
<!-- documention is in english -->
- <siteLocales>en</siteLocales>
+ <locales>en</locales>
<!-- documentation is in apt -->
<siteSourcesType>apt</siteSourcesType>
@@ -470,6 +468,7 @@
</activation>
<build>
+ <defaultGoal>package</defaultGoal>
<plugins>
<!-- build release zip files -->
@@ -508,12 +507,16 @@
</property>
</activation>
<build>
+ <defaultGoal>integration-test</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pomIncludes>
<!--<pomInclude>**/pom.xml</pomInclude>-->
+ <pomInclude>check-auto-container/unsafe-central/pom.xml</pomInclude>
+ <pomInclude>check-auto-container/central/pom.xml</pomInclude>
+ <pomInclude>check-auto-container/nuiton-other-releases/pom.xml</pomInclude>
<pomInclude>collect-files/multi/pom.xml</pomInclude>
<pomInclude>collect-files/single/pom.xml</pomInclude>
<pomInclude>send-email/single/pom.xml</pomInclude>
Added: trunk/src/it/check-auto-container/central/invoker.properties
===================================================================
--- trunk/src/it/check-auto-container/central/invoker.properties (rev 0)
+++ trunk/src/it/check-auto-container/central/invoker.properties 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=validate
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+#invoker.profiles=its,jdk15
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-at-end
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult=success
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Property changes on: trunk/src/it/check-auto-container/central/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/central/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/central/pom.xml (rev 0)
+++ trunk/src/it/check-auto-container/central/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-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.nuiton.test</groupId>
+ <artifactId>check-auto-container-central</artifactId>
+ <version>0</version>
+
+ <name>check-auto-container-central</name>
+ <description>check all dependencies are in central.</description>
+
+ <url>http://www.foo.com</url>
+
+ <properties>
+
+ <pluginVersion>@pom.version@</pluginVersion>
+
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.4</version>
+ </dependency>
+
+ </dependencies>
+ <build>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <addMavenCentral>true</addMavenCentral>
+ <failIfNotSafe>true</failIfNotSafe>
+ <verbose>true</verbose>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
Property changes on: trunk/src/it/check-auto-container/central/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/central/verify.groovy
===================================================================
--- trunk/src/it/check-auto-container/central/verify.groovy (rev 0)
+++ trunk/src/it/check-auto-container/central/verify.groovy 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,2 @@
+
+return true;
Property changes on: trunk/src/it/check-auto-container/central/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/nuiton-other-releases/invoker.properties
===================================================================
--- trunk/src/it/check-auto-container/nuiton-other-releases/invoker.properties (rev 0)
+++ trunk/src/it/check-auto-container/nuiton-other-releases/invoker.properties 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=validate
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+invoker.profiles=nuiton-other-releases
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-at-end
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult=success
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Property changes on: trunk/src/it/check-auto-container/nuiton-other-releases/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml (rev 0)
+++ trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-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.nuiton.test</groupId>
+ <artifactId>check-auto-container-nuiton-other-releases</artifactId>
+ <version>0</version>
+
+ <name>check-auto-container-nuiton-other-releases</name>
+ <description>check a dependencies is not in central.</description>
+
+ <url>http://www.foo.com</url>
+
+ <properties>
+
+ <pluginVersion>@pom.version@</pluginVersion>
+
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.thirdparty</groupId>
+ <artifactId>jregex</artifactId>
+ <version>1.2_01</version>
+ </dependency>
+
+ </dependencies>
+ <build>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <addMavenCentral>true</addMavenCentral>
+ <failIfNotSafe>true</failIfNotSafe>
+ <verbose>true</verbose>
+ <repositories>
+ <nuiton-central-releases>
+ http://nexus.nuiton.org/nexus/content/repositories/nuiton-other-releases
+ </nuiton-central-releases>
+ </repositories>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
Property changes on: trunk/src/it/check-auto-container/nuiton-other-releases/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/nuiton-other-releases/verify.groovy
===================================================================
--- trunk/src/it/check-auto-container/nuiton-other-releases/verify.groovy (rev 0)
+++ trunk/src/it/check-auto-container/nuiton-other-releases/verify.groovy 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,2 @@
+
+return true;
Property changes on: trunk/src/it/check-auto-container/nuiton-other-releases/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/unsafe-central/invoker.properties
===================================================================
--- trunk/src/it/check-auto-container/unsafe-central/invoker.properties (rev 0)
+++ trunk/src/it/check-auto-container/unsafe-central/invoker.properties 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=validate
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+invoker.profiles=nuiton-other-releases
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-at-end
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+invoker.buildResult=failure
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Property changes on: trunk/src/it/check-auto-container/unsafe-central/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/unsafe-central/pom.xml
===================================================================
--- trunk/src/it/check-auto-container/unsafe-central/pom.xml (rev 0)
+++ trunk/src/it/check-auto-container/unsafe-central/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-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.nuiton.test</groupId>
+ <artifactId>check-auto-container-unsafe-central</artifactId>
+ <version>0</version>
+
+ <name>check-auto-container-unsafe-central</name>
+ <description>check all dependencies are in central.</description>
+
+ <url>http://www.foo.com</url>
+
+ <properties>
+
+ <pluginVersion>@pom.version@</pluginVersion>
+
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ </properties>
+
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.thirdparty</groupId>
+ <artifactId>jregex</artifactId>
+ <version>1.2_01</version>
+ </dependency>
+
+ </dependencies>
+ <build>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <verbose>true</verbose>
+ <addMavenCentral>true</addMavenCentral>
+ <failIfNotSafe>true</failIfNotSafe>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+</project>
Property changes on: trunk/src/it/check-auto-container/unsafe-central/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/check-auto-container/unsafe-central/verify.groovy
===================================================================
--- trunk/src/it/check-auto-container/unsafe-central/verify.groovy (rev 0)
+++ trunk/src/it/check-auto-container/unsafe-central/verify.groovy 2010-06-19 14:22:59 UTC (rev 723)
@@ -0,0 +1,2 @@
+
+return true;
Property changes on: trunk/src/it/check-auto-container/unsafe-central/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/src/it/collect-files/multi/pom.xml
===================================================================
--- trunk/src/it/collect-files/multi/pom.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/it/collect-files/multi/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -28,14 +28,15 @@
</properties>
+
<distributionManagement>
<repository>
- <id>nuiton</id>
- <url>scpexe://nuiton.org/var/lib/maven/release</url>
+ <id>demo</id>
+ <url>scpexe://nuiton.org/yo/release</url>
</repository>
<snapshotRepository>
- <id>nuiton</id>
- <url>scpexe://nuiton.org/var/lib/maven/snapshot</url>
+ <id>demo</id>
+ <url>scpexe://nuiton.org/yo/snapshot</url>
</snapshotRepository>
</distributionManagement>
Modified: trunk/src/it/collect-files/single/pom.xml
===================================================================
--- trunk/src/it/collect-files/single/pom.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/it/collect-files/single/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -1,161 +1,161 @@
<?xml version="1.0" encoding="UTF-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">
+ 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.nuiton.test</groupId>
- <artifactId>collect-files-single</artifactId>
- <version>0</version>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.nuiton.test</groupId>
+ <artifactId>collect-files-single</artifactId>
+ <version>0</version>
- <name>Collect-files single</name>
- <packaging>jar</packaging>
- <description>collect-files Test plugin for a single module.</description>
-
- <url>http://www.foo.com</url>
-
- <properties>
+ <name>Collect-files single</name>
+ <packaging>jar</packaging>
+ <description>collect-files Test plugin for a single module.</description>
- <pluginVersion>@pom.version@</pluginVersion>
+ <url>http://www.foo.com</url>
- <!-- default encoding -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <properties>
- </properties>
+ <pluginVersion>@pom.version@</pluginVersion>
- <distributionManagement>
- <repository>
- <id>nuiton</id>
- <url>scpexe://nuiton.org/var/lib/maven/release</url>
- </repository>
- <snapshotRepository>
- <id>nuiton</id>
- <url>scpexe://nuiton.org/var/lib/maven/snapshot</url>
- </snapshotRepository>
- </distributionManagement>
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <build>
+ </properties>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <version>${pluginVersion}</version>
- </plugin>
- </plugins>
- </pluginManagement>
+ <distributionManagement>
+ <repository>
+ <id>demo</id>
+ <url>scpexe://nuiton.org/yo/release</url>
+ </repository>
+ <snapshotRepository>
+ <id>demo</id>
+ <url>scpexe://nuiton.org/yo/snapshot</url>
+ </snapshotRepository>
+ </distributionManagement>
- <plugins>
+ <build>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <executions>
- <execution>
- <id>collect-files</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <verbose>true</verbose>
- <extraFiles>${basedir}/src/collect-files.txt</extraFiles>
- <descriptionFile>target/collect.properties</descriptionFile>
- <copyFiles>false</copyFiles>
- </configuration>
- </execution>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
- <execution>
- <id>collect-files-2</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <extraFiles>${basedir}/src/collect-files-2.txt</extraFiles>
- <outputDirectory>target/collect2</outputDirectory>
- <descriptionFile>target/collect2.properties</descriptionFile>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
+ <plugins>
- <execution>
- <id>collect-files-3</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <outputDirectory>target/collect3</outputDirectory>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>collect-files</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <verbose>true</verbose>
+ <extraFiles>${basedir}/src/collect-files.txt</extraFiles>
+ <descriptionFile>target/collect.properties</descriptionFile>
+ <copyFiles>false</copyFiles>
+ </configuration>
+ </execution>
- <execution>
- <id>collect-files-4</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>compile</phase>
- <configuration>
- <outputDirectory>target/collect3</outputDirectory>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
+ <execution>
+ <id>collect-files-2</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <extraFiles>${basedir}/src/collect-files-2.txt</extraFiles>
+ <outputDirectory>target/collect2</outputDirectory>
+ <descriptionFile>target/collect2.properties</descriptionFile>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
- <execution>
- <id>collect-files-5</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <includeAttached>false</includeAttached>
- <outputDirectory>target/collect5</outputDirectory>
- <extraFiles>${basedir}/src/collect-files.txt,
- ${basedir}/src/collect-files-2.txt
- </extraFiles>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
+ <execution>
+ <id>collect-files-3</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <outputDirectory>target/collect3</outputDirectory>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
- <execution>
- <id>collect-files-6</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <dryRun>true</dryRun>
- <outputDirectory>target/collect6</outputDirectory>
- <extraFiles>${basedir}/src/collect-files.txt,
- ${basedir}/src/collect-files-2.txt
- </extraFiles>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
+ <execution>
+ <id>collect-files-4</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <outputDirectory>target/collect3</outputDirectory>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
- <execution>
- <id>collect-files-7</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <skip>true</skip>
- <outputDirectory>target/collect7</outputDirectory>
- <extraFiles>${basedir}/src/collect-files.txt,
- ${basedir}/src/collect-files-2.txt
- </extraFiles>
- <copyFiles>true</copyFiles>
- </configuration>
- </execution>
- </executions>
- </plugin>
+ <execution>
+ <id>collect-files-5</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <includeAttached>false</includeAttached>
+ <outputDirectory>target/collect5</outputDirectory>
+ <extraFiles>${basedir}/src/collect-files.txt,
+ ${basedir}/src/collect-files-2.txt
+ </extraFiles>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
- </plugins>
+ <execution>
+ <id>collect-files-6</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <dryRun>true</dryRun>
+ <outputDirectory>target/collect6</outputDirectory>
+ <extraFiles>${basedir}/src/collect-files.txt,
+ ${basedir}/src/collect-files-2.txt
+ </extraFiles>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
- </build>
-
+ <execution>
+ <id>collect-files-7</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <skip>true</skip>
+ <outputDirectory>target/collect7</outputDirectory>
+ <extraFiles>${basedir}/src/collect-files.txt,
+ ${basedir}/src/collect-files-2.txt
+ </extraFiles>
+ <copyFiles>true</copyFiles>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
</project>
Modified: trunk/src/it/send-email/single/pom.xml
===================================================================
--- trunk/src/it/send-email/single/pom.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/it/send-email/single/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -1,55 +1,56 @@
<?xml version="1.0" encoding="UTF-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">
+ 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.nuiton.test</groupId>
- <artifactId>single</artifactId>
- <version>0</version>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.nuiton.test</groupId>
+ <artifactId>single</artifactId>
+ <version>0</version>
- <name>Maven-helper-plugin single</name>
- <packaging>jar</packaging>
- <description>Maven helper plugin for a single module.</description>
-
- <url>http://www.foo.com</url>
-
- <properties>
+ <name>Maven-helper-plugin single</name>
+ <packaging>jar</packaging>
+ <description>Maven helper plugin for a single module.</description>
- <pluginVersion>@pom.version@</pluginVersion>
+ <url>http://www.foo.com</url>
- <!-- default encoding -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-
- </properties>
-
- <build>
+ <properties>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <version>${pluginVersion}</version>
- <configuration>
- <!-- Send nothing ! -->
- <dryRun>true</dryRun>
+ <pluginVersion>@pom.version@</pluginVersion>
- <emailTitle>[TEST] - ${project.name} ${project.version} send-email</emailTitle>
- <emailContentFile>emailContent.txt</emailContentFile>
- <mailSender>
- <name>Nuiton Release Notification</name>
- <email>noreply(a)noway.fr</email>
- </mailSender>
- <toAddresses>
- <item>try(a)noway.fr</item>
- </toAddresses>
- <smtpHost>smtp</smtpHost>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </build>
-
+ </properties>
+
+ <build>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ <configuration>
+ <!-- Send nothing ! -->
+ <dryRun>true</dryRun>
+
+ <emailTitle>[TEST] - ${project.name} ${project.version} send-email
+ </emailTitle>
+ <emailContentFile>emailContent.txt</emailContentFile>
+ <mailSender>
+ <name>Nuiton Release Notification</name>
+ <email>noreply(a)noway.fr</email>
+ </mailSender>
+ <toAddresses>
+ <item>try(a)noway.fr</item>
+ </toAddresses>
+ <smtpHost>smtp</smtpHost>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
</project>
Modified: trunk/src/it/settings.xml
===================================================================
--- trunk/src/it/settings.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/it/settings.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -21,56 +21,75 @@
<settings>
- <servers>
+ <servers>
- <server>
- <id>serverOne</id>
- <username>serverOne-username</username>
- <password>serverOne-password</password>
- <passphrase>serverOne-passphrase</passphrase>
- <privateKey>serverOne-privateKey</privateKey>
- </server>
+ <server>
+ <id>serverOne</id>
+ <username>serverOne-username</username>
+ <password>serverOne-password</password>
+ <passphrase>serverOne-passphrase</passphrase>
+ <privateKey>serverOne-privateKey</privateKey>
+ </server>
- <server>
- <id>serverTwo</id>
- <username>serverTwo-username</username>
- <password>serverTwo-password</password>
- <passphrase>serverTwo-passphrase</passphrase>
- <privateKey>serverTwo-privateKey</privateKey>
- </server>
+ <server>
+ <id>serverTwo</id>
+ <username>serverTwo-username</username>
+ <password>serverTwo-password</password>
+ <passphrase>serverTwo-passphrase</passphrase>
+ <privateKey>serverTwo-privateKey</privateKey>
+ </server>
- </servers>
+ </servers>
+
+ <profiles>
+ <profile>
+ <id>it-repo</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <repository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>local.central</id>
+ <url>file:///@localRepository@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
- <profiles>
- <profile>
- <id>it-repo</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <repositories>
- <repository>
- <id>local.central</id>
- <url>file:///@localRepository@</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>local.central</id>
- <url>file:///@localRepository@</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- </profile>
- </profiles>
+ <profile>
+ <id>nuiton-other-releases</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+
+ <repositories>
+ <repository>
+ <id>nuiton-other-releases</id>
+ <url>
+ http://nexus.nuiton.org/nexus/content/repositories/nuiton-other-releases
+ </url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ </profile>
+ </profiles>
</settings>
Modified: trunk/src/it/share-server-secret/single/pom.xml
===================================================================
--- trunk/src/it/share-server-secret/single/pom.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/it/share-server-secret/single/pom.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -1,100 +1,100 @@
<?xml version="1.0" encoding="UTF-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">
+ 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.nuiton.test</groupId>
- <artifactId>single</artifactId>
- <version>0</version>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.nuiton.test</groupId>
+ <artifactId>single</artifactId>
+ <version>0</version>
- <name>Maven-helper-plugin single</name>
- <packaging>pom</packaging>
- <description>Maven helper plugin for a single module.</description>
+ <name>Maven-helper-plugin single</name>
+ <packaging>pom</packaging>
+ <description>Maven helper plugin for a single module.</description>
- <url>http://www.foo.com</url>
+ <url>http://www.foo.com</url>
- <properties>
+ <properties>
- <pluginVersion>@pom.version@</pluginVersion>
+ <pluginVersion>@pom.version@</pluginVersion>
- <!-- default encoding -->
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <!-- default encoding -->
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
+ </properties>
- <build>
+ <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <version>${pluginVersion}</version>
- </plugin>
- </plugins>
- </pluginManagement>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <version>${pluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <executions>
- <execution>
- <id>get-server-one</id>
- <goals>
- <goal>share-server-secret</goal>
- </goals>
- <configuration>
- <serverId>serverOne</serverId>
- <usernameOut>username</usernameOut>
- <passwordOut>password</passwordOut>
- <passphraseOut>passphrase</passphraseOut>
- <privateKeyOut>privateKey</privateKeyOut>
- </configuration>
- </execution>
- <execution>
- <id>get-server-two</id>
- <goals>
- <goal>share-server-secret</goal>
- </goals>
- <configuration>
- <serverId>serverTwo</serverId>
- <usernameOut>username2</usernameOut>
- <passwordOut>password2</passwordOut>
- <passphraseOut>passphrase2</passphraseOut>
- <privateKeyOut>privateKey2</privateKeyOut>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.3</version>
- <executions>
- <execution>
- <phase>initialize</phase>
- <configuration>
- <tasks>
- <echo message="username = ${username}"/>
- <echo message="password = ${password}"/>
- <echo message="passphrase = ${passphrase}"/>
- <echo message="privateKey = ${privateKey}"/>
- <echo message="username2 = ${username2}"/>
- <echo message="password2 = ${password2}"/>
- <echo message="passphrase2 = ${passphrase2}"/>
- <echo message="privateKey2 = ${privateKey2}"/>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>get-server-one</id>
+ <goals>
+ <goal>share-server-secret</goal>
+ </goals>
+ <configuration>
+ <serverId>serverOne</serverId>
+ <usernameOut>username</usernameOut>
+ <passwordOut>password</passwordOut>
+ <passphraseOut>passphrase</passphraseOut>
+ <privateKeyOut>privateKey</privateKeyOut>
+ </configuration>
+ </execution>
+ <execution>
+ <id>get-server-two</id>
+ <goals>
+ <goal>share-server-secret</goal>
+ </goals>
+ <configuration>
+ <serverId>serverTwo</serverId>
+ <usernameOut>username2</usernameOut>
+ <passwordOut>password2</passwordOut>
+ <passphraseOut>passphrase2</passphraseOut>
+ <privateKeyOut>privateKey2</privateKeyOut>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <configuration>
+ <tasks>
+ <echo message="username = ${username}"/>
+ <echo message="password = ${password}"/>
+ <echo message="passphrase = ${passphrase}"/>
+ <echo message="privateKey = ${privateKey}"/>
+ <echo message="username2 = ${username2}"/>
+ <echo message="password2 = ${password2}"/>
+ <echo message="passphrase2 = ${passphrase2}"/>
+ <echo message="privateKey2 = ${privateKey2}"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
-
- </plugins>
- </build>
+ </plugins>
+ </build>
+
</project>
Modified: trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java
===================================================================
--- trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java 2010-06-19 14:22:59 UTC (rev 723)
@@ -54,9 +54,10 @@
import java.util.TreeMap;
/**
- * Check all dependencies are in central repository.
+ * Check all dependencies are auto contained in the given repositories.
*
* @author tchemit <chemit(a)codelutin.com>
+ * @version $Id$
* @goal check-auto-container
* @phase validate
* @requiresProject true
@@ -67,7 +68,7 @@
public class CheckAutoContainerPlugin extends AbstractPlugin {
/**
- * Map of remote repositories to use.
+ * Map of repositories to use.
* <p/>
* Keys are repository id and Values are repository url.
*
@@ -77,7 +78,7 @@
protected Map<String, String> repositories;
/**
- * A flag to add as maven central remote repository http://repo1.maven.org/maven2
+ * A flag to add the maven central repository http://repo1.maven.org/maven2
* to {@link #repositories}.
*
* @parameter expression="${addMavenCentral}" default-value="false"
@@ -86,7 +87,7 @@
protected boolean addMavenCentral;
/**
- * A flag to fail if project is not central safe.
+ * A flag to fail if project is not auto container.
*
* @parameter expression="${helper.failIfNotSafe}" default-value="false"
* @since 1.2.5
@@ -112,7 +113,7 @@
protected MavenProject project;
/**
- * The projects in the reactor (used to detected sibling dependencies).
+ * The projects in reactor (used to detected sibling dependencies).
*
* @parameter expression="${reactorProjects}"
* @readonly
@@ -121,7 +122,7 @@
protected List<?> reactorProjects;
/**
- * Active proxy from settings.
+ * Active proxy from settings (if any).
*
* @parameter default-value="${settings.activeProxy}"
* @required
@@ -131,7 +132,7 @@
protected Proxy proxy;
/**
- * Local Repository.
+ * Local repository.
*
* @parameter expression="${localRepository}"
* @required
@@ -141,30 +142,40 @@
protected ArtifactRepository localRepository;
/**
+ * Artifact repository factory component.
+ *
* @component
+ * @required
* @readonly
* @since 1.2.5
*/
protected ArtifactRepositoryFactory artifactRepositoryFactory;
/**
- * Artifact Factory component.
+ * Artifact factory component.
*
* @component
+ * @required
* @readonly
* @since 1.2.5
*/
protected ArtifactFactory factory;
/**
+ * Artifact resolver component.
+ *
* @component
+ * @required
* @readonly
* @since 1.2.5
*/
protected ArtifactResolver resolver;
/**
+ * Wagon manager component.
+ *
* @component
+ * @required
* @readonly
* @since 1.2.5
*/
@@ -282,7 +293,7 @@
if (found.isEmpty()) {
message = "No artifact resolved by the repository " + url;
} else {
- message = found.size() + " artifact(s) resolved by repository " + url;
+ message = String.format("%1$4s artifact(s) resolved by repository %2$s", found.size(), url);
}
log.info(message);
artifacts.removeAll(found);
Modified: trunk/src/site/apt/index.apt
===================================================================
--- trunk/src/site/apt/index.apt 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/site/apt/index.apt 2010-06-19 14:22:59 UTC (rev 723)
@@ -54,6 +54,8 @@
* {{{./share-server-secret-mojo.html} helper:share-server-secret}} to expose a server secret data in project.
+ * {{{./check-auto-container-mojo.html} helper:check-auto-container}} to check if project is auto-contained in some repositories.
+
Consult the {{{./mojo-usages.html}usages}} page to have more details of mojos.
Consult the {{{./mojo-examples.html}examples}} page to have some examples of mojos.
Modified: trunk/src/site/apt/mojo-examples.apt
===================================================================
--- trunk/src/site/apt/mojo-examples.apt 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/site/apt/mojo-examples.apt 2010-06-19 14:22:59 UTC (rev 723)
@@ -32,12 +32,149 @@
collect-files
- <<todo>>
+ Collects the <<LICENSE.txt>> file and store reference in
+ <<target/collects.txt>>.
-send-email
+------------------------------------------------------------------------------
+<plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>collect-files</id>
+ <goals>
+ <goal>collect-files</goal>
+ </goals>
+ <phase>generate-resources</phase>
+ <configuration>
+ <extraFiles>LICENSE.txt</extraFiles>
+ <descriptionFile>target/collects.txt</descriptionFile>
+ </configuration>
+ </execution>
- <<todo>>
+ </executions>
+</plugin>
+------------------------------------------------------------------------------
share-server-secret
- <<todo>>
+ Shares the secret of <<yourserverId>> says :
+
+ * <<privateKey>>
+
+ * <<password>>
+
+ * <<username>>
+
+ * <<passphrase>>
+
+------------------------------------------------------------------------------
+<plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>share-server-secret</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <serverId>yourServerId</serverId>
+ <privateKeyOut>privateKey</privateKeyOut>
+ <passwordOut>password</passwordOut>
+ <usernameOut>username</usernameOut>
+ <passphraseOut>passphrase</passphraseOut>
+ </configuration>
+ </execution>
+ </executions>
+</plugin>
+------------------------------------------------------------------------------
+
+send-email
+
+ Sends a email from <<noreply(a)noway.fr>> to <<receiver(a)noway.com>>.
+
+ the content of the email is in <<target/emailContent.txt>>.
+
+------------------------------------------------------------------------------
+<plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>send-email</goal>
+ </goals>
+ <phase>validate</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <!-- for a multi-module just run on root project -->
+ <runOnce>true</runOnce>
+
+ <emailTitle>Title of email</emailTitle>
+ <emailContentFile>target/emailContent.txt</emailContentFile>
+ <mailSender>
+ <email>noreply(a)noway.fr</email>
+ </mailSender>
+ <toAddresses>
+ <item>receiver(a)noway.com</item>
+ </toAddresses>
+ <smtpHost>smtp</smtpHost>
+ </configuration>
+</plugin>
+------------------------------------------------------------------------------
+
+check-auto-container
+
+ To test if all depencies of a project are in maven central repository :
+
+--------------------------------------------------------------------------------
+<plugin>
+<groupId>org.nuiton</groupId>
+<artifactId>maven-helper-plugin</artifactId>
+<executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <addMavenCentral>true</addMavenCentral>
+ </configuration>
+ </execution>
+</executions>
+</plugin>
+--------------------------------------------------------------------------------
+
+ To test if all depencies of a project are in the repository :
+
+ * id : <<nuiton-central-releases>>
+
+ * url : <<http://nexus.nuiton.org/nexus/content/repositories/nuiton-central-releases>>
+
+--------------------------------------------------------------------------------
+<plugin>
+<groupId>org.nuiton</groupId>
+<artifactId>maven-helper-plugin</artifactId>
+<executions>
+ <execution>
+ <id>check-central-safe</id>
+ <inherited>true</inherited>
+ <goals>
+ <goal>check-auto-container</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <repositories>
+ <nuiton-central-releases>
+ http://nexus.nuiton.org/nexus/content/repositories/nuiton-central-releases
+ </nuiton-central-releases>
+ </repositories>
+ </configuration>
+ </execution>
+</executions>
+</plugin>
+--------------------------------------------------------------------------------
Modified: trunk/src/site/apt/mojo-usages.apt
===================================================================
--- trunk/src/site/apt/mojo-usages.apt 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/site/apt/mojo-usages.apt 2010-06-19 14:22:59 UTC (rev 723)
@@ -52,60 +52,15 @@
projects in the reactor, and only keep all collected files in the root
project.
-------------------------------------------------------------------------------
-<plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <executions>
- <execution>
- <id>collect-files</id>
- <goals>
- <goal>collect-files</goal>
- </goals>
- <phase>install</phase>
- <configuration>
- <extraFiles>LICENSE.txt</extraFiles>
- <descriptionFile>target/collects.txt</descriptionFile>
- </configuration>
- </execution>
- </executions>
-</plugin>
-------------------------------------------------------------------------------
+ See {{{./mojo-examples.html#collect-files}examples page}}.
send-email
This goal sends an email with a content coming from a file.
-------------------------------------------------------------------------------
-<plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>send-email</goal>
- </goals>
- <phase>validate</phase>
- </execution>
- </executions>
- <configuration>
- <!-- for a multi-module just run on root project -->
- <runOnce>true</runOnce>
+ See {{{./mojo-examples.html#send-email}examples page}}.
- <emailTitle>Title of email</emailTitle>
- <emailContentFile>target/emailContent.txt</emailContentFile>
- <mailSender>
- <email>noreply(a)noway.fr</email>
- </mailSender>
- <toAddresses>
- <item>receiver(a)noway.com</item>
- </toAddresses>
- <smtpHost>smtp</smtpHost>
- </configuration>
-</plugin>
-------------------------------------------------------------------------------
-
share-server-secret
This goal shares servers informations (from your <settings.xml>)
@@ -134,24 +89,23 @@
* After the execution of the mojo, the exported parameters will be available
for other mojo via (for example the <${username}> maven property).
-------------------------------------------------------------------------------
-<plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>maven-helper-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>share-server-secret</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <serverId>yourServerId</serverId>
- <privateKeyOut>privateKey</privateKeyOut>
- <passwordOut>password</passwordOut>
- <usernameOut>username</usernameOut>
- <passphraseOut>passphrase</passphraseOut>
- </configuration>
- </execution>
- </executions>
-</plugin>
-------------------------------------------------------------------------------
+
+ See {{{./mojo-examples.html#share-server-secret}examples page}}.
+
+check-auto-container
+
+ This mojo permits to test if all dependencies of a project are auto-contained
+ in given repositories.
+
+ To use the mojo :
+
+ * fill <<addCentralMaven>> to add central maven repository.
+
+ * fill <<repositoriess>> to add more repositories to test.
+
+ * use <<failIfNotSafe>> to fail build if there is some unsafe dependencies.
+
+ []
+
+ See {{{./mojo-examples.html#check-auto-container}examples page}}.
+
\ No newline at end of file
Modified: trunk/src/site/site_en.xml
===================================================================
--- trunk/src/site/site_en.xml 2010-06-19 12:14:08 UTC (rev 722)
+++ trunk/src/site/site_en.xml 2010-06-19 14:22:59 UTC (rev 723)
@@ -48,6 +48,7 @@
<item name="collect-files" href="collect-files-mojo.html"/>
<item name="share-server-secret" href="share-server-secret-mojo.html"/>
<item name="send-email" href="send-email-mojo.html"/>
+ <item name="check-auto-container" href="check-auto-container-mojo.html"/>
<item name="help" href="help-mojo.html"/>
</item>
<item name="Mojo usages" href="mojo-usages.html"/>
1
0
19 Jun '10
Author: tchemit
Date: 2010-06-19 14:14:08 +0200 (Sat, 19 Jun 2010)
New Revision: 722
Url: http://nuiton.org/repositories/revision/maven-helper-plugin/722
Log:
improve and finalize checkAutocontainer mojo
Added:
trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java
Removed:
trunk/src/main/java/org/nuiton/helper/plugin/CheckCentralSafePlugin.java
Copied: trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java (from rev 721, trunk/src/main/java/org/nuiton/helper/plugin/CheckCentralSafePlugin.java)
===================================================================
--- trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java (rev 0)
+++ trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java 2010-06-19 12:14:08 UTC (rev 722)
@@ -0,0 +1,522 @@
+/*
+ * #%L
+ * Maven helper plugin
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.nuiton.helper.plugin;
+
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.ArtifactUtils;
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.artifact.manager.WagonManager;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
+import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
+import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
+import org.apache.maven.artifact.resolver.ArtifactResolver;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.settings.Proxy;
+import org.apache.maven.wagon.ConnectionException;
+import org.apache.maven.wagon.Wagon;
+import org.apache.maven.wagon.authentication.AuthenticationInfo;
+import org.apache.maven.wagon.observers.Debug;
+import org.apache.maven.wagon.proxy.ProxyInfo;
+import org.apache.maven.wagon.repository.Repository;
+import org.codehaus.plexus.util.StringUtils;
+import org.nuiton.plugin.AbstractPlugin;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
+
+/**
+ * Check all dependencies are in central repository.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @goal check-auto-container
+ * @phase validate
+ * @requiresProject true
+ * @requiresOnline true
+ * @requiresDependencyResolution runtime
+ * @since 1.2.5
+ */
+public class CheckAutoContainerPlugin extends AbstractPlugin {
+
+ /**
+ * Map of remote repositories to use.
+ * <p/>
+ * Keys are repository id and Values are repository url.
+ *
+ * @parameter
+ * @since 1.2.5
+ */
+ protected Map<String, String> repositories;
+
+ /**
+ * A flag to add as maven central remote repository http://repo1.maven.org/maven2
+ * to {@link #repositories}.
+ *
+ * @parameter expression="${addMavenCentral}" default-value="false"
+ * @since 1.2.5
+ */
+ protected boolean addMavenCentral;
+
+ /**
+ * A flag to fail if project is not central safe.
+ *
+ * @parameter expression="${helper.failIfNotSafe}" default-value="false"
+ * @since 1.2.5
+ */
+ protected boolean failIfNotSafe;
+
+ /**
+ * A flag to activate verbose mode.
+ *
+ * @parameter expression="${helper.verbose}" default-value="${maven.verbose}"
+ * @since 1.2.5
+ */
+ protected boolean verbose;
+
+ /**
+ * Project.
+ *
+ * @parameter default-value="${project}"
+ * @required
+ * @readonly
+ * @since 1.2.5
+ */
+ protected MavenProject project;
+
+ /**
+ * The projects in the reactor (used to detected sibling dependencies).
+ *
+ * @parameter expression="${reactorProjects}"
+ * @readonly
+ * @since 1.2.5
+ */
+ protected List<?> reactorProjects;
+
+ /**
+ * Active proxy from settings.
+ *
+ * @parameter default-value="${settings.activeProxy}"
+ * @required
+ * @readonly
+ * @since 1.2.5
+ */
+ protected Proxy proxy;
+
+ /**
+ * Local Repository.
+ *
+ * @parameter expression="${localRepository}"
+ * @required
+ * @readonly
+ * @since 1.2.5
+ */
+ protected ArtifactRepository localRepository;
+
+ /**
+ * @component
+ * @readonly
+ * @since 1.2.5
+ */
+ protected ArtifactRepositoryFactory artifactRepositoryFactory;
+
+ /**
+ * Artifact Factory component.
+ *
+ * @component
+ * @readonly
+ * @since 1.2.5
+ */
+ protected ArtifactFactory factory;
+
+ /**
+ * @component
+ * @readonly
+ * @since 1.2.5
+ */
+ protected ArtifactResolver resolver;
+
+ /**
+ * @component
+ * @readonly
+ * @since 1.2.5
+ */
+ protected WagonManager wagonManager;
+
+ /**
+ * Authorized Remote Repositories.
+ *
+ * @since 1.2.5
+ */
+ private List<ArtifactRepository> safeRepositories;
+
+ /**
+ * List of artifacts to treate.
+ *
+ * @since 1.2.5
+ */
+ private List<Artifact> artifacts;
+
+ /**
+ * Dictionnary of already resolved artifacts (keys are repository url and
+ * values are list of artifact ids).
+ *
+ * @since 1.2.5
+ */
+ private static Map<String, List<String>> resolved;
+
+ public static final String MAVEN_CENTRAL_ID = "maven-central";
+
+ public static final String MAVEN_CENTRAL_URL = "http://repo1.maven.org/maven2/";
+
+ @Override
+ public MavenProject getProject() {
+ return project;
+ }
+
+ @Override
+ public void setProject(MavenProject project) {
+ this.project = project;
+ }
+
+ @Override
+ public boolean isVerbose() {
+ return verbose;
+ }
+
+ @Override
+ public void setVerbose(boolean verbose) {
+ this.verbose = verbose;
+ }
+
+ @Override
+ public void init() throws Exception {
+
+ Log log = getLog();
+
+ if (log.isDebugEnabled()) {
+
+ // always be verbose in debug mode
+ setVerbose(true);
+ }
+
+ safeRepositories = createSafeRepositories();
+
+ artifacts = prepareArtifacts();
+
+ if (isVerbose()) {
+ log.info(artifacts.size() + " detected dependencies : ");
+ for (Object artifact : artifacts) {
+ log.info(" - " + artifact);
+ }
+ }
+ }
+
+ @Override
+ protected boolean checkSkip() {
+
+ if (artifacts.isEmpty()) {
+ getLog().info("Project has no dependecy.");
+ return false;
+ }
+
+ if (repositories.isEmpty()) {
+ getLog().info("No repository defined.");
+ return false;
+ }
+ return super.checkSkip();
+ }
+
+ @Override
+ protected void doAction() throws Exception {
+
+ Log log = getLog();
+
+ log.info(artifacts.size() + " dependencies to check.");
+
+ for (ArtifactRepository repository : safeRepositories) {
+
+ if (artifacts.isEmpty()) {
+
+ // no more artifacts to check
+ continue;
+ }
+
+ String url = repository.getUrl();
+
+ List<String> ids = getRepositoryCache(url);
+ Wagon wagon = getWagon(repository);
+ try {
+ if (verbose) {
+ log.info("Use repository " + url);
+ }
+ List<Artifact> found = checkDependency(repository, wagon, ids);
+ String message;
+ if (found.isEmpty()) {
+ message = "No artifact resolved by the repository " + url;
+ } else {
+ message = found.size() + " artifact(s) resolved by repository " + url;
+ }
+ log.info(message);
+ artifacts.removeAll(found);
+
+ } finally {
+ disconnect(wagon);
+ }
+ }
+
+ boolean safe = artifacts.isEmpty();
+
+ if (safe) {
+ log.info("All dependencies are safe.");
+ return;
+ }
+
+ log.warn("There is " + artifacts.size() + " unsafe dependencie(s) :");
+ for (Object artifact : artifacts) {
+ log.warn(" - " + artifact);
+ }
+ if (failIfNotSafe) {
+ throw new MojoFailureException("There is still some unsafe dependencies.");
+ }
+ }
+
+ protected List<ArtifactRepository> createSafeRepositories() {
+ List<ArtifactRepository> safeRepositories = new ArrayList<ArtifactRepository>();
+
+ ArtifactRepositoryLayout repositoryLayout = new DefaultRepositoryLayout();
+ if (repositories == null) {
+ repositories = new TreeMap<String, String>();
+ }
+ List<String> ids = new ArrayList<String>(repositories.keySet());
+ if (addMavenCentral) {
+
+ ids.add(0, MAVEN_CENTRAL_ID);
+ repositories.put(MAVEN_CENTRAL_ID, MAVEN_CENTRAL_URL);
+ }
+
+ for (String id : ids) {
+ String url = repositories.get(id);
+ url = url.trim();
+
+ ArtifactRepository repo;
+ repo = artifactRepositoryFactory.createDeploymentArtifactRepository(
+ String.valueOf(id),
+ url,
+ repositoryLayout, true);
+
+ getLog().info("Will use repository " + repo.getUrl());
+ safeRepositories.add(repo);
+ }
+ return safeRepositories;
+ }
+
+ protected List<Artifact> prepareArtifacts() {
+
+ List<Artifact> result = new ArrayList<Artifact>();
+
+ List<String> siblings = new ArrayList<String>();
+
+ for (Object o : reactorProjects) {
+ MavenProject m = (MavenProject) o;
+ siblings.add(getArtifactId(m.getArtifact()));
+ }
+
+ // treate classic dependencies
+ for (Object o : project.getArtifacts()) {
+ Artifact a = (Artifact) o;
+ Artifact artifact = acceptArtifact(a, siblings);
+ if (artifact != null) {
+ result.add(a);
+ }
+ }
+
+ // treate also plugin dependencies
+ for (Object o : project.getPluginArtifacts()) {
+ Artifact a = (Artifact) o;
+ Artifact artifact = acceptArtifact(a, siblings);
+ if (artifact != null) {
+ result.add(a);
+ }
+ }
+ return result;
+ }
+
+ protected Artifact acceptArtifact(Artifact a, List<String> siblings) {
+ String id = getArtifactId(a);
+
+ if (siblings.contains(id)) {
+
+ // skip a sibling dependency
+ if (verbose) {
+ getLog().info("Skip sibling dependency : " + id);
+ }
+ return null;
+ }
+
+ if (a.isSnapshot()) {
+
+ // skip snapshot
+ getLog().warn("Skip SNAPSHOT dependency : " + id);
+ return null;
+ }
+
+ Artifact artifact = ArtifactUtils.copyArtifact(a);
+
+ // force artifact not to be treated
+ artifact.setResolved(false);
+
+ // will treate this artifact
+ return artifact;
+ }
+
+ private List<Artifact> checkDependency(ArtifactRepository repo,
+ Wagon wagon,
+ List<String> ids) throws Exception {
+ Log log = getLog();
+ List<Artifact> result = new ArrayList<Artifact>();
+ String url = repo.getUrl();
+
+ for (Artifact artifact : artifacts) {
+ if (log.isDebugEnabled()) {
+ log.debug(" - check artifact : " + artifact);
+ }
+ String id = getArtifactId(artifact);
+
+ boolean resolved;
+ boolean inCache = ids.contains(id);
+ if (inCache) {
+
+ // already resolved
+ resolved = true;
+ } else {
+
+ // first time resolving this artifact
+ Artifact copyArtifact = ArtifactUtils.copyArtifact(artifact);
+
+ String path = url + "/" + repo.pathOf(copyArtifact);
+
+ resolved = wagon.resourceExists(StringUtils.replace(path, repo.getUrl(), ""));
+ }
+
+ if (resolved) {
+
+ if (verbose) {
+ log.info(" - [ resolved ] " + artifact + (inCache ? " (from cache)" : ""));
+ }
+ result.add(artifact);
+ ids.add(id);
+ } else {
+ if (log.isDebugEnabled()) {
+ log.debug(" - [unresolved] " + artifact);
+ }
+ }
+ }
+ return result;
+ }
+
+ protected String getArtifactId(Artifact artifact) {
+ String id = artifact.getGroupId() + ":" +
+ artifact.getArtifactId() + ":" +
+ artifact.getVersion();
+ return id;
+ }
+
+ protected List<String> getRepositoryCache(String url) {
+ if (resolved == null) {
+ resolved = new TreeMap<String, List<String>>();
+ }
+ List<String> ids = resolved.get(url);
+ if (ids == null) {
+ ids = new ArrayList<String>();
+ resolved.put(url, ids);
+ }
+ return ids;
+ }
+
+
+ protected Wagon getWagon(ArtifactRepository repo) throws Exception {
+
+ Repository repository = new Repository(repo.getId(), repo.getUrl());
+ Wagon wagon = wagonManager.getWagon(repository);
+
+ wagon.setTimeout(1000);
+
+ if (getLog().isDebugEnabled()) {
+ Debug debug = new Debug();
+
+ wagon.addSessionListener(debug);
+ wagon.addTransferListener(debug);
+ }
+
+ // FIXME when upgrading to maven 3.x : this must be changed.
+ AuthenticationInfo auth = wagonManager.getAuthenticationInfo(repo.getId());
+
+ ProxyInfo proxyInfo = getProxyInfo();
+ if (proxyInfo != null) {
+ wagon.connect(repository, auth, proxyInfo);
+ } else {
+ wagon.connect(repository, auth);
+ }
+
+ return wagon;
+ }
+
+ protected void disconnect(Wagon wagon) {
+ try {
+ wagon.disconnect();
+ }
+ catch (ConnectionException e) {
+ Log log = getLog();
+ if (log.isDebugEnabled()) {
+ log.error("Error disconnecting wagon - ignored", e);
+ } else {
+ log.error("Error disconnecting wagon - ignored");
+ }
+ }
+ }
+
+ protected ProxyInfo getProxyInfo() {
+ ProxyInfo proxyInfo = null;
+ if (proxy != null && !StringUtils.isEmpty(proxy.getHost())) {
+
+ proxyInfo = new ProxyInfo();
+ proxyInfo.setHost(proxy.getHost());
+ proxyInfo.setType(proxy.getProtocol());
+ proxyInfo.setPort(proxy.getPort());
+ proxyInfo.setNonProxyHosts(proxy.getNonProxyHosts());
+ proxyInfo.setUserName(proxy.getUsername());
+ proxyInfo.setPassword(proxy.getPassword());
+ }
+
+ return proxyInfo;
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/org/nuiton/helper/plugin/CheckAutoContainerPlugin.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Deleted: trunk/src/main/java/org/nuiton/helper/plugin/CheckCentralSafePlugin.java
===================================================================
--- trunk/src/main/java/org/nuiton/helper/plugin/CheckCentralSafePlugin.java 2010-06-19 00:41:12 UTC (rev 721)
+++ trunk/src/main/java/org/nuiton/helper/plugin/CheckCentralSafePlugin.java 2010-06-19 12:14:08 UTC (rev 722)
@@ -1,473 +0,0 @@
-/*
- * #%L
- * Maven helper plugin
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Lesser Public License for more details.
- *
- * You should have received a copy of the GNU General Lesser Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/lgpl-3.0.html>.
- * #L%
- */
-
-package org.nuiton.helper.plugin;
-
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.ArtifactUtils;
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.artifact.manager.WagonConfigurationException;
-import org.apache.maven.artifact.manager.WagonManager;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
-import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
-import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
-import org.apache.maven.artifact.resolver.ArtifactResolver;
-import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.settings.Proxy;
-import org.apache.maven.wagon.ConnectionException;
-import org.apache.maven.wagon.TransferFailedException;
-import org.apache.maven.wagon.UnsupportedProtocolException;
-import org.apache.maven.wagon.Wagon;
-import org.apache.maven.wagon.authentication.AuthenticationException;
-import org.apache.maven.wagon.authentication.AuthenticationInfo;
-import org.apache.maven.wagon.authorization.AuthorizationException;
-import org.apache.maven.wagon.observers.Debug;
-import org.apache.maven.wagon.proxy.ProxyInfo;
-import org.apache.maven.wagon.repository.Repository;
-import org.codehaus.plexus.util.StringUtils;
-import org.nuiton.plugin.AbstractPlugin;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * Check all dependencies are in central repository.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @goal check-central-safe
- * @phase verify
- * @requiresProject true
- * @requiresOnline true
- * @requiresDependencyResolution runtime
- * @since 1.2.5
- */
-public class CheckCentralSafePlugin extends AbstractPlugin {
-
- /**
- * Project.
- *
- * @parameter default-value="${project}"
- * @required
- * @readonly
- * @since 1.1.0
- */
- protected MavenProject project;
-
- /**
- * Active proxy from settings.
- *
- * @parameter default-value="${settings.activeProxy}"
- * @required
- * @readonly
- * @since 1.1.0
- */
- protected Proxy proxy;
-
- /**
- * A flag to activate verbose mode.
- *
- * @parameter expression="${helper.verbose}" default-value="${maven.verbose}"
- * @since 1.1.0
- */
- protected boolean verbose;
-
- /**
- * A flag to fail if project is not central safe.
- *
- * @parameter expression="${helper.failIfNotSafe}" default-value="false"
- * @since 1.1.0
- */
- protected boolean failIfNotSafe;
-
- /**
- * A flag to execute only once the mojo.
- * <p/>
- * <b>Note:</b> By default, value is {@code true} since it is not necessary
- * to inject twice secrets in session.
- *
- * @parameter expression="${helper.runOnce}" default-value="true"
- * @since 1.1.0
- */
- protected boolean runOnce;
-
- /**
- * Local Repository.
- *
- * @parameter expression="${localRepository}"
- * @required
- * @readonly
- * @since 1.0.0
- */
- protected ArtifactRepository localRepository;
-
- /**
- * @component
- * @readonly
- */
- protected ArtifactRepositoryFactory artifactRepositoryFactory;
-
- /**
- * Artifact Factory component.
- *
- * @component
- * @readonly
- */
- protected ArtifactFactory factory;
-
- /**
- * @component
- * @readonly
- */
- protected ArtifactResolver resolver;
-
- /**
- * @component
- * @readonly
- */
- protected WagonManager wagonManager;
-
- /**
- * Authorized Remote Repository.
- *
- * @since 1.0.0
- */
- protected List<ArtifactRepository> safeRepositories;
-
- /**
- * Map of extra remote Repositories. Keys are repository id and Values are repository url.
- *
- * @parameter
- * @since 1.0.0
- */
- protected Map<String, String> extraRepositories;
-
- /**
- * Dependencies of the project.
- *
- * @parameter expression="${project.artifacts}"
- * @required
- * @readonly
- * @since 1.1.0
- */
- protected Set<?> artifacts;
-
- @Override
- public boolean checkSkip() {
- if (runOnce) {
-
- // compute the unique key refering to parameters of plugin
-
- StringBuilder buffer = new StringBuilder("check-central-safe##");
- buffer.append(project.getArtifactId());
-
- // check if plugin was already done.
-
- String key = buffer.toString();
-
- if (verbose) {
- getLog().info("check if already done for key : " + key);
- }
- Object value = project.getProperties().get(key);
- if (value != null) {
- // ok was already done
- getLog().info("Goal was already executed, will skip goal.");
- return false;
- }
- long timestamp = System.nanoTime();
- project.getProperties().put(key, timestamp + "");
- if (verbose) {
- getLog().info("Adding cache key " + key +
- " with timestamp " + timestamp);
- }
- }
- return true;
- }
-
- @Override
- public void init() throws Exception {
-
- Log log = getLog();
-
- if (log.isDebugEnabled()) {
-
- // always be verbose in debug mode
- setVerbose(true);
- }
-
- safeRepositories = new ArrayList<ArtifactRepository>();
-
- ArtifactRepositoryLayout repositoryLayout = new DefaultRepositoryLayout();
-
- List<String> ids = new ArrayList<String>(extraRepositories.keySet());
- ids.add(0, "central");
- extraRepositories.put("central", "http://repo1.maven.org/maven2/");
-
- for (String id : ids) {
- String url = extraRepositories.get(id);
- url = url.trim();
-
- ArtifactRepository remoteRepo = artifactRepositoryFactory.createDeploymentArtifactRepository(
- String.valueOf(id),
- url,
- repositoryLayout, true);
-
- log.info("Will use Repository " + remoteRepo.getUrl());
- safeRepositories.add(remoteRepo);
- }
-
- // resolve also plugins
- artifacts.addAll(project.getPluginArtifacts());
-
- for (Iterator<?> iterator = artifacts.iterator(); iterator.hasNext();) {
- Artifact artifact = (Artifact) iterator.next();
-
- if (artifact.isSnapshot()) {
-
- log.warn("Remove snapshot dependency : " + artifact);
- iterator.remove();
- }
-
- if (project.getArtifactId().equals(artifact.getArtifactId()) &&
- project.getGroupId().equals(artifact.getGroupId()) &&
- project.getVersion().equals(artifact.getVersion())) {
-
- if (log.isDebugEnabled()) {
- log.debug("Skip artifact of the project : " + artifact);
- }
- iterator.remove();
- continue;
- }
-
- // let says the artifact is NOT resolved
- artifact.setResolved(false);
- }
-
- if (isVerbose()) {
- log.info("Detected artifacts : ");
- for (Object artifact : artifacts) {
- log.info(" - " + artifact);
-
- }
- }
- }
-
- @Override
- protected void doAction() throws Exception {
-
- Log log = getLog();
-
- checkDependenciesOnCentral();
-
- boolean safe = artifacts.isEmpty();
-
- if (safe) {
- log.info("All dependencies are central safe.");
- return;
- }
-
- log.warn("There is " + artifacts.size() + " none central safe dependencie(s) :");
- for (Object artifact : artifacts) {
- log.warn(" - " + artifact);
- }
- if (failIfNotSafe) {
- throw new MojoFailureException("There is still some none central safe artifacts");
- }
- }
-
- protected void checkDependenciesOnCentral() throws Exception {
-
- Log log = getLog();
-
- for (ArtifactRepository repository : safeRepositories) {
-
- Wagon wagon = getWagon(repository);
- try {
- if (verbose) {
- log.info("Will use repository " + repository.getUrl());
- }
-
- for (Iterator<?> itr = artifacts.iterator(); itr.hasNext();) {
- Artifact artifact = (Artifact) itr.next();
-
- if (verbose) {
- log.info("check artifact : " + artifact);
- }
-
- boolean resolved =
- dependencyExistsInRepo(wagon, repository, artifact);
-
- if (resolved) {
- artifact.setResolved(true);
-
- itr.remove();
- log.info(artifact + " resolved by " + repository.getUrl());
- } else {
- if (log.isDebugEnabled()) {
- log.debug("artifact was not resolved by " + repository.getUrl());
- }
- }
- }
- } finally {
- if (log.isDebugEnabled()) {
- log.debug("Will disconnect wagon : " + wagon);
- }
- disconnect(wagon);
- }
- }
- }
-
- @Override
- public MavenProject getProject() {
- return project;
- }
-
- @Override
- public void setProject(MavenProject project) {
- this.project = project;
- }
-
- @Override
- public boolean isVerbose() {
- return verbose;
- }
-
- @Override
- public void setVerbose(boolean verbose) {
- this.verbose = verbose;
- }
-
- public void setRunOnce(boolean runOnce) {
- this.runOnce = runOnce;
- }
-
- protected boolean dependencyExistsInRepo(Wagon wagon,
- ArtifactRepository repo,
- Artifact artifact) {
-
- Log log = getLog();
-
- if (!artifact.isSnapshot()) {
- }
- try {
-
- Artifact copyArtifact = ArtifactUtils.copyArtifact(artifact);
-
- String path = repo.getUrl() + "/" + repo.pathOf(copyArtifact);
-
- return wagon.resourceExists(StringUtils.replace(path, repo.getUrl(), ""));
- } catch (TransferFailedException e) {
- if (log.isDebugEnabled()) {
- log.error("Unable to determine if resource " + artifact + " exists in " + repo.getUrl(), e);
- } else {
- log.error("Unable to determine if resource " + artifact + " exists in " + repo.getUrl());
- }
- return false;
- } catch (AuthorizationException e) {
- if (log.isDebugEnabled()) {
- log.error("Unable to connect to: " + repo.getUrl(), e);
- } else {
- log.error("Unable to connect to: " + repo.getUrl());
- }
- return false;
- } catch (AbstractMethodError e) {
- log.error("Wagon " + wagon.getClass().getName() + " does not support the resourceExists method");
- return false;
- } finally {
- disconnect(wagon);
- }
- }
-
-
- protected Wagon getWagon(ArtifactRepository repo) throws WagonConfigurationException, UnsupportedProtocolException, AuthenticationException, ConnectionException {
-
- Repository repository = new Repository(repo.getId(), repo.getUrl());
- Wagon wagon = wagonManager.getWagon(repository);
-
- wagon.setTimeout(1000);
-
- if (getLog().isDebugEnabled()) {
- Debug debug = new Debug();
-
- wagon.addSessionListener(debug);
- wagon.addTransferListener(debug);
- }
-
- // FIXME when upgrading to maven 3.x : this must be changed.
- AuthenticationInfo auth = wagonManager.getAuthenticationInfo(repo.getId());
-
- ProxyInfo proxyInfo = getProxyInfo();
- if (proxyInfo != null) {
- wagon.connect(repository, auth, proxyInfo);
- } else {
- wagon.connect(repository, auth);
- }
-
- return wagon;
- }
-
- protected void disconnect(Wagon wagon) {
- try {
- wagon.disconnect();
- }
- catch (ConnectionException e) {
- Log log = getLog();
- if (log.isDebugEnabled()) {
- log.error("Error disconnecting wagon - ignored", e);
- } else {
- log.error("Error disconnecting wagon - ignored");
- }
- }
- }
-
- /**
- * Convenience method to map a <code>Proxy</code> object from the user system settings to a <code>ProxyInfo</code>
- * object.
- *
- * @return a proxyInfo object instanced or null if no active proxy is define in the settings.xml
- */
- private ProxyInfo getProxyInfo() {
- ProxyInfo proxyInfo = null;
- if (proxy != null && !StringUtils.isEmpty(proxy.getHost())) {
-
- proxyInfo = new ProxyInfo();
- proxyInfo.setHost(proxy.getHost());
- proxyInfo.setType(proxy.getProtocol());
- proxyInfo.setPort(proxy.getPort());
- proxyInfo.setNonProxyHosts(proxy.getNonProxyHosts());
- proxyInfo.setUserName(proxy.getUsername());
- proxyInfo.setPassword(proxy.getPassword());
- }
-
- return proxyInfo;
- }
-
-}
\ No newline at end of file
1
0