You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by ni...@uom.gr.INVALID on 2020/04/21 10:12:35 UTC
Compiling source code with Maven (Beginner)
Hello,
I am Nicole, I am a PhD candidate and I am working on scheduling
decisions in the cloud. I am a newcomer in Apache Storm and I think that
your help would be of great importance to me. I've studied carefully the
code regarding Storm's scheduler and now I try to implement mine using
the IScheduler interface. Unfortunately, I have never worked with Maven
before and I encounter some difficulties. I am sorry if my questions are
primitive. I installed Maven successfully, downloaded the Apache Storm
1.2.3 source code but when I tried to compile it using Maven I got the
following results:
[INFO] Reactor Summary for Storm 1.2.3:
[INFO]
[INFO] Storm .............................................. SUCCESS [
0.967 s]
[INFO] multilang-javascript ............................... SUCCESS [
0.561 s]
[INFO] multilang-python ................................... SUCCESS [
0.039 s]
[INFO] multilang-ruby ..................................... SUCCESS [
0.034 s]
[INFO] maven-shade-clojure-transformer .................... SUCCESS [
0.886 s]
[INFO] storm-maven-plugins ................................ SUCCESS [
0.464 s]
[INFO] Storm Core ......................................... FAILURE [
11.317 s]
[INFO] storm-rename-hack .................................. SKIPPED
[INFO] storm-autocreds .................................... SKIPPED
.....
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project storm-core: Compilation failure:
Compilation failure:
[ERROR]
/Users/nicole/Maven/teststorm/apache-storm-1.2.3/storm-core/src/jvm/org/apache/storm/generated/GlobalStreamId.java:[27,18]
package javax.annotation does not exist
....
The problem is repeated mentioning that "package javax.annotation does
not exist".
I am using java version "11.0.6", Java(TM) SE Runtime Environment 18.9.
Do you have any idea about what I am doing wrong?
In case there is any guide that could help me make my own pluggable
scheduler, it would be more than welcome.
Thank you in advance.
Regards,
Nicole
Re: Compiling source code with Maven (Beginner)
Posted by Ethan Li <et...@gmail.com>.
I think storm 1.2.3 won't build with Java 11. You can try downgrade to jdk
1.8 and retry. Or you could work on storm-2.x instead of 1.x. Packages
like javax.annotation got removed since JDK9.
In storm-2.x, we had to add them in the dependencies explicitly
https://github.com/apache/storm/blob/master/storm-client/pom.xml#L69-L86
On Tue, Apr 21, 2020 at 5:12 AM <ni...@uom.gr.invalid> wrote:
> Hello,
>
> I am Nicole, I am a PhD candidate and I am working on scheduling
> decisions in the cloud. I am a newcomer in Apache Storm and I think that
> your help would be of great importance to me. I've studied carefully the
> code regarding Storm's scheduler and now I try to implement mine using
> the IScheduler interface. Unfortunately, I have never worked with Maven
> before and I encounter some difficulties. I am sorry if my questions are
> primitive. I installed Maven successfully, downloaded the Apache Storm
> 1.2.3 source code but when I tried to compile it using Maven I got the
> following results:
>
>
> [INFO] Reactor Summary for Storm 1.2.3:
> [INFO]
> [INFO] Storm .............................................. SUCCESS [
> 0.967 s]
> [INFO] multilang-javascript ............................... SUCCESS [
> 0.561 s]
> [INFO] multilang-python ................................... SUCCESS [
> 0.039 s]
> [INFO] multilang-ruby ..................................... SUCCESS [
> 0.034 s]
> [INFO] maven-shade-clojure-transformer .................... SUCCESS [
> 0.886 s]
> [INFO] storm-maven-plugins ................................ SUCCESS [
> 0.464 s]
> [INFO] Storm Core ......................................... FAILURE [
> 11.317 s]
> [INFO] storm-rename-hack .................................. SKIPPED
> [INFO] storm-autocreds .................................... SKIPPED
> .....
>
> [INFO] BUILD FAILURE
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
> (default-compile) on project storm-core: Compilation failure:
> Compilation failure:
> [ERROR]
> /Users/nicole/Maven/teststorm/apache-storm-1.2.3/storm-core/src/jvm/org/apache/storm/generated/GlobalStreamId.java:[27,18]
>
> package javax.annotation does not exist
> ....
>
> The problem is repeated mentioning that "package javax.annotation does
> not exist".
> I am using java version "11.0.6", Java(TM) SE Runtime Environment 18.9.
> Do you have any idea about what I am doing wrong?
> In case there is any guide that could help me make my own pluggable
> scheduler, it would be more than welcome.
>
> Thank you in advance.
>
> Regards,
> Nicole
>