You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2007/12/13 12:30:24 UTC

svn commit: r603888 - /commons/proper/commons-parent/trunk/pom.xml

Author: niallp
Date: Thu Dec 13 03:30:18 2007
New Revision: 603888

URL: http://svn.apache.org/viewvc?rev=603888&view=rev
Log:
COMMONSSITE-21 - Configure the maven-release-plugin in the "rc" and "release" profiles with an "arguments" to specify the profile. This will (hopefully) resolve the issue of the deploy plugin not picking up the distribution management from the correct profile.

Modified:
    commons/proper/commons-parent/trunk/pom.xml

Modified: commons/proper/commons-parent/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=603888&r1=603887&r2=603888&view=diff
==============================================================================
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Thu Dec 13 03:30:18 2007
@@ -154,6 +154,11 @@
           <artifactId>maven-assembly-plugin</artifactId>
           <version>2.2-beta-1</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.0-beta-7</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -297,6 +302,13 @@
             </executions>
           </plugin>
           <plugin>
+            <artifactId>maven-release-plugin</artifactId>
+            <configuration>
+              <!-- Pass these arguments to the deploy plugin. -->
+              <arguments>-Prelease</arguments>
+            </configuration>
+          </plugin>
+          <plugin>
             <artifactId>maven-javadoc-plugin</artifactId>
             <executions>
               <execution>
@@ -373,6 +385,13 @@
                 </goals>
               </execution>
             </executions>
+          </plugin>
+          <plugin>
+            <artifactId>maven-release-plugin</artifactId>
+            <configuration>
+              <!-- Pass these arguments to the deploy plugin. -->
+              <arguments>-Prc</arguments>
+            </configuration>
           </plugin>
           <plugin>
             <artifactId>maven-javadoc-plugin</artifactId>



Re: svn commit: r603888 - /commons/proper/commons-parent/trunk/pom.xml

Posted by Torsten Curdt <tc...@apache.org>.
On 13.12.2007, at 13:00, Niall Pemberton wrote:

> On Dec 13, 2007 11:39 AM, Torsten Curdt <tc...@apache.org> wrote:
>> We also need to pass on the gpg passphrase
>>
>>   mvn release:perform -Prc -Dgpg.passphrase=PASSPHRASE -Darguments="-
>> Prc -Dgpg.passphrase=PASSPHRASE"
>
> Are you sure? When did the commons-skin-2 I using the "rc" profile I
> was prompted for the passphrase and it worked no problem.

Oh ...OK. IIRC there was a bug that prevented the prompting from  
working last time I checked. But either way the problem is that the  
gpg plugin has no integration with the gpg keyagent, so typing (and  
even pasting) the passphrase for all signatures is a major PITA. At  
least for jci it would be (many artifacts).

On the other hand I am tempted to move away from the multiproject  
business because it still sucks so badly ...that would also mean less  
artifacts and less pain.

>> IMO this is a maven bug/misconception that one cannot just pass on
>> those parameters automatically. This whole 'arguments' business looks
>> like a nasty hack IMO.
>
> I agree, but I don't see an alternative ATM - if anyone has one  
> then great.

Maybe someone of our fellow maven'ers could comment on this :)

cheers
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: svn commit: r603888 - /commons/proper/commons-parent/trunk/pom.xml

Posted by Niall Pemberton <ni...@gmail.com>.
On Dec 13, 2007 11:39 AM, Torsten Curdt <tc...@apache.org> wrote:
> We also need to pass on the gpg passphrase
>
>   mvn release:perform -Prc -Dgpg.passphrase=PASSPHRASE -Darguments="-
> Prc -Dgpg.passphrase=PASSPHRASE"

Are you sure? When did the commons-skin-2 I using the "rc" profile I
was prompted for the passphrase and it worked no problem.

> IMO this is a maven bug/misconception that one cannot just pass on
> those parameters automatically. This whole 'arguments' business looks
> like a nasty hack IMO.

I agree, but I don't see an alternative ATM - if anyone has one then great.

Niall

P.S. I set up the following Jira ticket to discuss these changes here:

   https://issues.apache.org/jira/browse/COMMONSSITE-21


> cheers
> --
> Torsten
>
>
> On 13.12.2007, at 12:30, niallp@apache.org wrote:
>
> > Author: niallp
> > Date: Thu Dec 13 03:30:18 2007
> > New Revision: 603888
> >
> > URL: http://svn.apache.org/viewvc?rev=603888&view=rev
> > Log:
> > COMMONSSITE-21 - Configure the maven-release-plugin in the "rc" and
> > "release" profiles with an "arguments" to specify the profile. This
> > will (hopefully) resolve the issue of the deploy plugin not picking
> > up the distribution management from the correct profile.
> >
> > Modified:
> >     commons/proper/commons-parent/trunk/pom.xml
> >
> > Modified: commons/proper/commons-parent/trunk/pom.xml
> > URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/
> > trunk/pom.xml?rev=603888&r1=603887&r2=603888&view=diff
> > ======================================================================
> > ========
> > --- commons/proper/commons-parent/trunk/pom.xml (original)
> > +++ commons/proper/commons-parent/trunk/pom.xml Thu Dec 13 03:30:18
> > 2007
> > @@ -154,6 +154,11 @@
> >            <artifactId>maven-assembly-plugin</artifactId>
> >            <version>2.2-beta-1</version>
> >          </plugin>
> > +        <plugin>
> > +          <groupId>org.apache.maven.plugins</groupId>
> > +          <artifactId>maven-release-plugin</artifactId>
> > +          <version>2.0-beta-7</version>
> > +        </plugin>
> >        </plugins>
> >      </pluginManagement>
> >      <plugins>
> > @@ -297,6 +302,13 @@
> >              </executions>
> >            </plugin>
> >            <plugin>
> > +            <artifactId>maven-release-plugin</artifactId>
> > +            <configuration>
> > +              <!-- Pass these arguments to the deploy plugin. -->
> > +              <arguments>-Prelease</arguments>
> > +            </configuration>
> > +          </plugin>
> > +          <plugin>
> >              <artifactId>maven-javadoc-plugin</artifactId>
> >              <executions>
> >                <execution>
> > @@ -373,6 +385,13 @@
> >                  </goals>
> >                </execution>
> >              </executions>
> > +          </plugin>
> > +          <plugin>
> > +            <artifactId>maven-release-plugin</artifactId>
> > +            <configuration>
> > +              <!-- Pass these arguments to the deploy plugin. -->
> > +              <arguments>-Prc</arguments>
> > +            </configuration>
> >            </plugin>
> >            <plugin>
> >              <artifactId>maven-javadoc-plugin</artifactId>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: svn commit: r603888 - /commons/proper/commons-parent/trunk/pom.xml

Posted by Torsten Curdt <tc...@apache.org>.
We also need to pass on the gpg passphrase

  mvn release:perform -Prc -Dgpg.passphrase=PASSPHRASE -Darguments="- 
Prc -Dgpg.passphrase=PASSPHRASE"

IMO this is a maven bug/misconception that one cannot just pass on  
those parameters automatically. This whole 'arguments' business looks  
like a nasty hack IMO.

cheers
--
Torsten

On 13.12.2007, at 12:30, niallp@apache.org wrote:

> Author: niallp
> Date: Thu Dec 13 03:30:18 2007
> New Revision: 603888
>
> URL: http://svn.apache.org/viewvc?rev=603888&view=rev
> Log:
> COMMONSSITE-21 - Configure the maven-release-plugin in the "rc" and  
> "release" profiles with an "arguments" to specify the profile. This  
> will (hopefully) resolve the issue of the deploy plugin not picking  
> up the distribution management from the correct profile.
>
> Modified:
>     commons/proper/commons-parent/trunk/pom.xml
>
> Modified: commons/proper/commons-parent/trunk/pom.xml
> URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/ 
> trunk/pom.xml?rev=603888&r1=603887&r2=603888&view=diff
> ====================================================================== 
> ========
> --- commons/proper/commons-parent/trunk/pom.xml (original)
> +++ commons/proper/commons-parent/trunk/pom.xml Thu Dec 13 03:30:18  
> 2007
> @@ -154,6 +154,11 @@
>            <artifactId>maven-assembly-plugin</artifactId>
>            <version>2.2-beta-1</version>
>          </plugin>
> +        <plugin>
> +          <groupId>org.apache.maven.plugins</groupId>
> +          <artifactId>maven-release-plugin</artifactId>
> +          <version>2.0-beta-7</version>
> +        </plugin>
>        </plugins>
>      </pluginManagement>
>      <plugins>
> @@ -297,6 +302,13 @@
>              </executions>
>            </plugin>
>            <plugin>
> +            <artifactId>maven-release-plugin</artifactId>
> +            <configuration>
> +              <!-- Pass these arguments to the deploy plugin. -->
> +              <arguments>-Prelease</arguments>
> +            </configuration>
> +          </plugin>
> +          <plugin>
>              <artifactId>maven-javadoc-plugin</artifactId>
>              <executions>
>                <execution>
> @@ -373,6 +385,13 @@
>                  </goals>
>                </execution>
>              </executions>
> +          </plugin>
> +          <plugin>
> +            <artifactId>maven-release-plugin</artifactId>
> +            <configuration>
> +              <!-- Pass these arguments to the deploy plugin. -->
> +              <arguments>-Prc</arguments>
> +            </configuration>
>            </plugin>
>            <plugin>
>              <artifactId>maven-javadoc-plugin</artifactId>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org