Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions to build a jar capsule #144

Closed
akumaigorodski opened this issue Aug 25, 2017 · 7 comments
Closed

Instructions to build a jar capsule #144

akumaigorodski opened this issue Aug 25, 2017 · 7 comments

Comments

@akumaigorodski
Copy link
Contributor

Can you please provide an instruction on how to build a jar?

Think I've discovered a bug in channel reestablish as of eclair-node-javafx_2.11-0.2-alpha4-c85823f-capsule-fat but the reestablish code has changed substantially since then so I'd like to build a current master jar capsule to launch multiple instances and do some proper tests.

$ cd ecliar-master
$ mvn package capsule:build

results in

[ERROR] Failed to execute goal on project eclair-node-gui_2.11: Could not resolve dependencies for project fr.acinq.eclair:eclair-node-gui_2.11:jar:0.2-SNAPSHOT: Could not find artifact fr.acinq.eclair:eclair-node_2.11:jar:0.2-SNAPSHOT in sonatype snapshots (https://oss.sonatype.org/content/repositories/snapshots/) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

@pm47
Copy link
Member

pm47 commented Aug 25, 2017

Did you try simply (see BUILD.md)?

$ mvn package

@pm47
Copy link
Member

pm47 commented Aug 25, 2017

Note that we have recently changed the jar names in 305420b.

@akumaigorodski
Copy link
Contributor Author

$ mvn package -e outputs the following:

[INFO] eclair_2.11 ........................................ SUCCESS [  0.501 s]
[INFO] eclair-core_2.11 ................................... FAILURE [  0.172 s]
[INFO] eclair-node ........................................ SKIPPED
[INFO] eclair-node-gui .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.756 s
[INFO] Finished at: 2017-08-25T18:56:24+03:00
[INFO] Final Memory: 16M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.2:revision (default) on project eclair-core_2.11: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.2:revision (default) on project eclair-core_2.11: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	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:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	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:498)
	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: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
	at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:402)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 20 more
Caused by: pl.project13.maven.git.GitCommitIdExecutionException: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml
	at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:356)
	... 22 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :eclair-core_2.11

@pm47
Copy link
Member

pm47 commented Aug 25, 2017

Are you within a git repository? The error seems quite straighforward, there is a plugin trying to extract the current commit it, which fails because it can't find a .git directory.

if you just clone our git repo this should not happen.

@akumaigorodski
Copy link
Contributor Author

I was not... For some reason Eclipse refuses to compile if I clone so I just downloaded sources. Anyway, it all works now and I have a jar, thanks!

@pm47
Copy link
Member

pm47 commented Aug 25, 2017

May I suggest you give intellij a try? 😄

@akumaigorodski
Copy link
Contributor Author

actually I do use Idea, have no umm idea why I wrote "eclipse" there. Perhaps enough working for today haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants