Storm Incubator and Eclipse Kepler - apache-storm

Is it possible to import the Apache Storm Incubator (0.9.3) Into Eclipse (Kepler), or should i just stop wasting my time?
I have tried the following, with the following results:
Attempt 1:
Clone (git clone ...).
Import as maven project into eclipse
A few hundred "LocalCluster could not be resolved to a type" and "LocalDRPC cannot be resolved to a type" errors follow. I assume that this is something to do with the clojure plugin not found/supported within eclipse, and the fact that Localcluster etc are written in clojure, but I have no idea where to even start to resolve that one.
Attempt 2:
Clone.
mvn eclipse:eclipse
Import project into eclipse
This provides the confusing:
"Project 'storm-core' is missing required source folder: '/home/dev/gitprojects/incubator-storm'"
This is confusing because it is the directory of the project I just imported, so I'm having a hard time seeing how it could be missing. I can remove it from the build path, but then I get to a few hundred "LocalCluster could not be resolved to a type" errors.
This is just a soul-destroying and/or demoralizing waste of my time right now. Is there any way of actually importing the incubator project so that it actually works? Any update I can make to Eclipse to make it work? Any help would be welcomed.
Thanks.
Dave

Related

Jenkins Travis-CI build fails in cli module (shade fails)

I am running a custom Jenkins 2.263.4 build on Travis-CI. We need a fix with relative pathes that never made it into the Jenkins core...well for us it is mandatory.
Based on release 2.263.4 I applied the fix in core/SecretRewriter.java and core/VirtualFile.java and also changed the version name to give it branding. This worked very well in the past releases. But the last update we did was one year ago.
Now I am running into the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project cli: Error creating shaded jar: duplicate entry: META-INF/services/io.jenkins.cli.shaded.org.apache.sshd.common.io.IoServiceFactoryFactory -> [Help 1]
I am not able to understand it at all.
Travis-CI is here: https://travis-ci.com/github/DanielWeber/jenkins
GitHub: https://github.com/DanielWeber/jenkins
I was not able to find this exact problem from somewhere else. I tried a bit with the shade config to set
<minimizeJar>false</minimizeJar>
and similar small things, but didn't really help.
My change is so small, I don't really understand what's happening.
If nothing helps, I might consider doing changes step by step then, rather than just merging the releae to our for, but hope someone sees the problem.
The issue is that the build is being execute two times based on the mvn install followed by mvn package which is defined in travis.yml file. This causes the issue.

Newbie problems running example cordapp

I'm new to Corda, so am following the "Getting started developing CorDapps".
On my MacBook Pro, I have:
- installed the JDK, IntelliJ Community edition and Git,
- have downloaded the sample project (using git clone) by following Step One)
- created an IntelliJ project (by following Step Two)
but, when following instructions for Deploy the CorDapp locally (using ./gradlew clean deployNodes), I get the following errors:
Task :contracts-java:compileJava FAILED
/Users/samples/cordapp-example/contracts-java/src/main/java/com/example/state/IOUState.java:5: error: package com.google.common.collect does not exist
import com.google.common.collect.ImmutableList;
^
... and another 3 similar.
I've searched google, gradle and IntelliJ forums, but cannot find anyhting that helps resolve my issue.
Can someone point me in the right direction please?
Thanks a lot!
As recommended here, Open IOUState.java and:
Remove this import: import com.google.common.collect.ImmutableList;
Modify ImmutableList.of(new IOUSchemaV1()) to Arrays.asList(new IOUSchemaV1())
The recent 4.4 upgrades have removed the ImmutableList from the dependencies. You could change the ImmutableList.of to Arrays.asList or Collections.singletonList as a workaround.
Thanks for raising this, we will fix it ASAP.

Eclipse JDT LS & Gradle - Resource Exception "Invalid project description"

Summary
I've been trying to get Eclipse's JDT LS (JLS) working with vim-lsp (in Neovim), but have been unsuccessful in synchronising the JLS with a Gradle project. I am, unfortunately, constrained to Windows.
The Problem
Using this configuration (commit #d1c7a25 at the time of posting), I cannot synchronise the JLS with a Gradle project "due to an error configuring Eclipse" because of an "invalid project description" (see log).
Trawling through Google and the GitHub issues of both the JLS and vim-lsp plugin has gotten me nowhere.
Remarks
I feel like it's most likely an issue with my configuration. If anyone has got this working with other LSP plugins aside from YouCompleteMe (such as CoC or LanguageClient) those setups are also welcome, but vim-lsp is preferred.
To reiterate, and just in case:
Windows 10 Pro (v1803 build 17134.407)
Neovim (v0.3.1) with plugin vim-lsp
Gradle wrapper (v4.10.2)
Eclipse JDT LS (v0.28.0 build 201811140630) [.tar.gz]
using this configuration (originally #d1c7a25)
Thanks!
Figured it out.
The workspace directory for the JLS (specified by the command line argument -data) can't be nested under the project's own directory.
*bashes head on desk*

error using swank-cdt for debug clojure : " unabled to add tools.jar to classpath"

I'm learning how debug a clojure app...I've tried several tools and no one has convinced me..now I'm trying swank-cdt which is based in CDT...I've read the instruction here:
http://georgejahad.com/clojure/swank-cdt.html
I've added my dev-dependencies to my lein project (in my case clojure-source "1.2.1" because I'm using clojure 1.2.1...)
I've run lein deps..and lein install...elein swank for use repl, and slime-connect for connect my repl...so far so good...I've used (use 'debugproject.core) run well...
now..when try (use 'swank.cdt) I get in my stacktrace:
com.sun.jdi.Bootstrap
[Thrown class java.lang.ClassNotFoundException]
and inside my repl :
warning: unabled to add tools.jar to classpath. This may cause CDT initialization to fail.
what am I doing wrong!??
thanks for your patience and for read all my post :D
and many thanks if you can help me
Swank-clojure 1.4.0, released yesterday, automatically sets up the tools.jar crap for you. You don't need to symlink or copy anything.
I've copied tools.jar into lib/dev

How do I set where my grails plugins should be installed?

I saw the light and install the joda-time plugin for grails.
However, when I tried to commit my changes to source control I realised that grails had located the files in:
C:\Users\Steve\.grails\1.1.1\plugins
instead of somewhere under the project directory of:
f:\grails\projects\myproject
Yeah I'm using windows :-\
So now when someone pulls down my changes from source control they are missing all the joda-time plugin lovelyness and they are wanting to spank me :)
What should I be setting so that grails doesn't put anything under my user directory?
(It isn't installed as a global plugin - just as a project one - at least I think so, I ran "grails install-plugin joda-time" )
Many thanks in advance.
P.S. Currently listening to Plug In Baby by Muse....how coincidental :D
The plugin is listed in application.properties, so when someone gets your code Grails will install missing plugins the first time they run 'grails run-app' or other commands.
If you want to revert to 1.0.x behavior just create grails-app/conf/BuildConfig.groovy with the line
grails.project.plugins.dir='plugins'
and your plugins will be in with the rest of the project files.

Resources