Friday, January 10, 2014

Building Weka source code GPG error and resolution

Tried to check out svn repository of Weka using

"svn co https://svn.cms.waikato.ac.nz/svn/weka/tags/stable-3-6-10"


Loaded it as Maven project in Idea Intellij 13.

From Pom targets hit compile - it succeeds.
Pom target -> build succeeds.
Pom target install -> Build hangs at following message :

[INFO] Building jar: C:\Users\user\Desktop\Code\Weka\stable-3-6-10\weka\dist\weka-stable-3.6.10-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-gpg-plugin:1.1:sign (sign-artifacts) @ weka-stable ---
GPG Passphrase:   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...



It will keep on printing ***s on the console and never stop !!

Found the addition of following in your pom.xml to be resolving the issue.

------------------------
<configuration>
       <skip>true</skip>
</configuration>
------------------------

which may finally look like this

-----------------------
<plugin>
  <groupid>org.apache.maven.plugins</groupid>
  <artifactid>maven-gpg-plugin</artifactid>
  <configuration>
    <skip>true</skip>
  </configuration>
  <version>1.1</version>
  <executions>
    <execution>
      <id>sign-artifacts</id>
      <phase>verify</phase>
      <goals>
        <goal>sign</goal>
      </goals>
    </execution>
  </executions>
</plugin>
-----------------------


The general idea behind this plugin is to protect what you might create and share, with a passphrase that only you know. More information about what it does and how to use it is here http://maven.apache.org/plugins/maven-gpg-plugin/usage.html

However as in my case it became a bottleneck in the build process of a freshly downloaded source, not sure what the bug was there, but adding the skip tag bypassed it and the build succeeded.

No comments: