When I was releasing, I followed the guide here (which is referenced
by many other Apache projects):

http://www.apache.org/dev/publishing-maven-artifacts.html

and specifically set up my settings.xml file according to this:

http://www.apache.org/dev/publishing-maven-artifacts.html#settings

However, the 'mvn release:perform' task was still not hands off:

1.  Even though I had my gpg.passphrase property set in my
~/.m2/settings.xml, I was still prompted for it the first time
code-signing was performed (first module in the project).  Afterwards,
I was not prompted for any remaining modules.

Here is the relevant part of my profiles section:

<profiles>
  <profile>
    <id>apache-release</id>
    <properties>
      <gpg.passphrase>MY_GPG_PASSPHRASE_HERE</gpg.passphrase>
    </properties>
  </profile>

2.  Every time a module's site artifact was published to people.a.o, I
was prompted to enter my password, even though I had the following in
my settings.xml:

<servers>
...
  <server>
    <!-- This id matches that in the shiro-root POM's
distributionManagement section -->
    <id>shiro.website</id>
    <username>lhazlewood</username>
    <password>MY_PASSWORD_HERE</password>
    <filePermissions>664</filePermissions>
    <directoryPermissions>775</directoryPermissions>
  </server>
</servers>

This was particularly annoying because it happened for _every_ module :)

Any thoughts as to why I saw this behavior?  Was I doing something
wrong?  I thought I followed the documentation exactly.

Thanks for any ideas!

Les

Reply via email to