Hi,

I'm trying to sign and deploy some artifacts for the Apache Mahout project
(the POM is at
https://svn.apache.org/repos/asf/lucene/mahout/trunk/pom.xml).

I have it set up to use the GPG Sign plugin and the relevant configuration
is:
<execution>
                <id>create-hadoop-core-artifact</id>
                <phase>deploy</phase>
                <goals>
                  <goal>sign-and-deploy-file</goal>
                </goals>
                <configuration>
                  <file>core/lib/hadoop-core-0.20.1.jar</file>
                  <groupId>org.apache.mahout.hadoop</groupId>
                  <artifactId>hadoop-core</artifactId>
                  <packaging>jar</packaging>
                  <version>0.20.1</version>
                  <generatePom>true</generatePom>
                </configuration>
              </execution>

When I run this during release (under the release profile I have setup, I
get)

[INFO] [DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-gpg-plugin:1.0-alpha-4:sign-and-deploy-file'
-->
[INFO] [DEBUG]   (f) artifactId = hadoop-core
[INFO] [DEBUG]   (f) file =
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar
[INFO] [DEBUG]   (f) generatePom = true
[INFO] [DEBUG]   (f) groupId = org.apache.mahout.hadoop
[INFO] [DEBUG]   (s) localRepository = Repository[local|file:///Volumes/...]
[INFO] [DEBUG]   (f) packaging = jar
[INFO] [DEBUG]   (f) passphrase = XXXXXX
[INFO] [DEBUG]   (f) repositoryId = mahout.dist
[INFO] [DEBUG]   (f) repositoryLayout = default
[INFO] [DEBUG]   (f) settings = org.apache.maven.settings.setti...@6f824c0c
[INFO] [DEBUG]   (f) uniqueVersion = true
[INFO] [DEBUG]   (f) url =
https://repository.apache.org/service/local/staging/deploy/maven2/
[INFO] [DEBUG]   (f) useAgent = false
[INFO] [DEBUG]   (f) version = 0.20.1
[INFO] [DEBUG] -- end configuration --
[INFO] [INFO] [gpg:sign-and-deploy-file {execution:
create-hadoop-core-artifact}]
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] /bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar
not found.
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [DEBUG] Trace
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException:
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar not found.
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
...
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException:
/bld/mah/target/checkout/maven/core/lib/hadoop-core-0.20.1.jar not found.
[INFO]  at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:204)
[INFO]  at
org.apache.maven.plugin.gpg.SignAndDeployFileMojo.execute(SignAndDeployFileMojo.java:250)
[INFO]  at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
 

Now, I have a maven subdirectory, but that is not where I would think this
path would be relative too, since I run this out of the root Mahout
directory and thus assume that all paths are relative to that one.

In looking at
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-gpg-plugin/src/main/java/org/apache/maven/plugin/gpg/SignAndDeployFileMojo.java,
I'm guessing the reason this is happening is because of the baseDirectory or
homeDirectory calculation at:
        signer.setBaseDirectory( new File( "foo"
).getAbsoluteFile().getParentFile().getAbsoluteFile() );
        signer.setHomeDirectory( homedir );

Anyone know what is going wrong here?  Note, I've also tried using
../core/lib/... and am currently trying ${basedir}/core/lib.

Thanks,
Grant Ingersoll

-- 
View this message in context: 
http://old.nabble.com/SignAndDeploy-issue-tp26305689p26305689.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to