Build?

53 views
Skip to first unread message

Will O'Brien

unread,
Jun 5, 2015, 10:08:57 AM6/5/15
to keyczar...@googlegroups.com
Hey All,

Fantastic project, so thank you for that. Any idea how I can get a hold of jars or build my own? I'm not much of a java-er, so mvn is greek to me. `mvn package` gives me an index out of bound error.

Trying to build KeyczarTool, specifically. A few months ago I could download this directly from google-code (iirc), but all the old download links seem to redirect to github.

Stack trace:

[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project keyczar: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: Index: 0, Size: 0 -> [Help 1]                                                              [0/1035]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on proje
ct keyczar: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: Index: 0, Size: 0
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        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:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.PluginExecutionException: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: I$
dex: 0, Size: 0
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:637)
        at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:464)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more


-- Will

Shawn Willden

unread,
Jun 5, 2015, 11:11:11 AM6/5/15
to keyczar...@googlegroups.com, devin lundberg

Hey Devin,

Do you think you could help Will? I'm AFK until the end of next week.


--
You received this message because you are subscribed to the Google Groups "Keyczar Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keyczar-discu...@googlegroups.com.
To post to this group, send email to keyczar...@googlegroups.com.
Visit this group at http://groups.google.com/group/keyczar-discuss.
For more options, visit https://groups.google.com/d/optout.

devin lundberg

unread,
Jun 5, 2015, 1:02:05 PM6/5/15
to Shawn Willden, keyczar...@googlegroups.com

Looks like it builds correctly on my machine. Running "mvn package" from the java/code directory builds all of the jars including Keyczar Tool in the target directory. What version of maven are you using? 

I'm running 3.3.1 with java 1.8.0_05 on mac osx.

I could email you the KeyczarTool build if you would prefer that, but I'd also like to find out what the problem is.

Reply all
Reply to author
Forward
0 new messages