What's the recommended way to get a KeyCzar binary?

182 views
Skip to first unread message

Will Sargent

unread,
Oct 3, 2015, 2:42:57 PM10/3/15
to Keyczar Discuss
Hi all,

What's the recommended way to get a KeyCzar binary?  It's not clear how I would include the latest release without building directly from the github repository.

KeyCzar does not exist in a Maven repository, as far as I can tell.

The latest release of KeyCzar for Java is 0.71g, but there is only a source release:


and when I try to create a package, it thinks it's a git repo and dies:

➜  code  mvn -e package
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Keyczar 0.71g
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0:create (default) @ keyczar ---
[INFO] Storing buildNumber: 100315 at timestamp: 1443897300731
[INFO] Executing: /bin/sh -c cd /Users/wsargent/work/keyczar-Java_release_0.71g/java/code && git show
[INFO] Working directory: /Users/wsargent/work/keyczar-Java_release_0.71g/java/code
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.969 s
[INFO] Finished at: 2015-10-03T11:35:00-07:00
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project keyczar: Cannot get the branch information from the scm repository :
[ERROR] Exception while executing SCM command. UnsupportedOperationException
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project keyczar: Cannot get the branch information from the scm repository :
Exception while executing SCM command.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot get the branch information from the scm repository :
Exception while executing SCM command.
at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:653)
at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:464)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command.
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
at org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeCommand(AbstractGitScmProvider.java:290)
at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:620)
... 23 more
Caused by: java.lang.UnsupportedOperationException
at org.apache.maven.scm.provider.git.gitexe.command.info.GitInfoCommand.executeCommand(GitInfoCommand.java:56)
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)

The Maven instructions in  https://github.com/google/keyczar/wiki/MavenInstructions still point to the SVN repository, which only contains 0.66:



➜  keyczar  ls -l /Users/wsargent/work/keyczar-Java_release_0.71g/java/maven/org/keyczar/keyczar
total 48
drwxr-xr-x@  6 wsargent  staff  204 Sep  6  2013 0.65b-SNAPSHOT
drwxr-xr-x@ 11 wsargent  staff  374 Sep  6  2013 0.66
drwxr-xr-x@  5 wsargent  staff  170 Sep  6  2013 0.6b-SNAPSHOT
-rwxr-xr-x@  1 wsargent  staff  389 Sep  6  2013 maven-metadata-keyczar.xml
-rwxr-xr-x@  1 wsargent  staff   40 Sep  6  2013 maven-metadata-keyczar.xml.sha1
-rwxr-xr-x@  1 wsargent  staff  350 Sep  6  2013 maven-metadata-local.xml
-rwxr-xr-x@  1 wsargent  staff  294 Sep  6  2013 maven-metadata.xml
-rwxr-xr-x@  1 wsargent  staff   32 Sep  6  2013 maven-metadata.xml.md5
-rwxr-xr-x@  1 wsargent  staff   40 Sep  6  2013 maven-metadata.xml.sha1

➜  0.66  ls -l .
total 472
-rwxr-xr-x@ 1 wsargent  staff   96101 Sep  6  2013 keyczar-0.66-sources.jar
-rwxr-xr-x@ 1 wsargent  staff      32 Sep  6  2013 keyczar-0.66-sources.jar.md5
-rwxr-xr-x@ 1 wsargent  staff      40 Sep  6  2013 keyczar-0.66-sources.jar.sha1
-rwxr-xr-x@ 1 wsargent  staff  110165 Sep  6  2013 keyczar-0.66.jar
-rwxr-xr-x@ 1 wsargent  staff      32 Sep  6  2013 keyczar-0.66.jar.md5
-rwxr-xr-x@ 1 wsargent  staff      40 Sep  6  2013 keyczar-0.66.jar.sha1
-rwxr-xr-x@ 1 wsargent  staff    4297 Sep  6  2013 keyczar-0.66.pom
-rwxr-xr-x@ 1 wsargent  staff      32 Sep  6  2013 keyczar-0.66.pom.md5
-rwxr-xr-x@ 1 wsargent  staff      40 Sep  6  2013 keyczar-0.66.pom.sha1

Are there any packaged 0.71 binaries out there?

Will.

Will Sargent

unread,
Oct 3, 2015, 2:53:39 PM10/3/15
to Keyczar Discuss
For the record, this is what I do for a source build:

git clone g...@github.com:google/keyczar.git
cd keyczar
git checkout -b java_release_0.71f java_release_0.71f
cd keyczar/java/code
mvn -e clean compile test package
cd target
cp *.jar ~/keytool-binaries
Reply all
Reply to author
Forward
0 new messages