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

Maven build and pacakge doesn't work. #6

Open
sumedhyadav opened this issue Sep 16, 2020 · 2 comments
Open

Maven build and pacakge doesn't work. #6

sumedhyadav opened this issue Sep 16, 2020 · 2 comments

Comments

@sumedhyadav
Copy link

Command: mvn clean package
Complete output:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.github.simplesteph.kafka.streams:udemy-reviews-fraud:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 142, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.github.simplesteph.kafka.producer:udemy-reviews-producer:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 105, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.github.simplesteph.kafka.streams:udemy-reviews-aggregator:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 118, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] udemy-reviews-producer                                             [jar]
[INFO] udemy-reviews-fraud                                                [jar]
[INFO] udemy-reviews-aggregator                                           [jar]
[INFO] udemy-reviews-parent-project                                       [pom]
[INFO] 
[INFO] ----< com.github.simplesteph.kafka.producer:udemy-reviews-producer >----
[INFO] Building udemy-reviews-producer 1.0-SNAPSHOT                       [1/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- avro-maven-plugin:1.8.2:schema (default) @ udemy-reviews-producer ---
[INFO] 
[INFO] --- avro-maven-plugin:1.8.2:protocol (default) @ udemy-reviews-producer ---
[INFO] 
[INFO] --- avro-maven-plugin:1.8.2:idl-protocol (default) @ udemy-reviews-producer ---
[INFO] 
[INFO] --- build-helper-maven-plugin:3.0.0:add-source (add-source) @ udemy-reviews-producer ---
[INFO] Source directory: /home/sumedh/Documents/Development/Kafka/end-to-end/medium-blog-kafka-udemy-master/udemy-reviews-producer/target/generated-sources/avro added.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ udemy-reviews-producer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ udemy-reviews-producer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /home/sumedh/Documents/Development/Kafka/end-to-end/medium-blog-kafka-udemy-master/udemy-reviews-producer/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for udemy-reviews-parent-project 1.0-SNAPSHOT:
[INFO] 
[INFO] udemy-reviews-producer ............................. FAILURE [  0.949 s]
[INFO] udemy-reviews-fraud ................................ SKIPPED
[INFO] udemy-reviews-aggregator ........................... SKIPPED
[INFO] udemy-reviews-parent-project ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.041 s
[INFO] Finished at: 2020-09-16T15:50:32+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project udemy-reviews-producer: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] 
[ERROR] -> [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/MojoFailureException
@sumedhyadav
Copy link
Author

sumedhyadav commented Sep 16, 2020

However,
Package works from IntelliJ IDE for the root project @simplesteph.

@pavelu19990
Copy link

You should use JDK instead of JRE. Change from JRE to JDK in the run configurations

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