eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.23k stars 867 forks source link

Documentation, geared towards front end #611

Open tamb opened 7 years ago

tamb commented 7 years ago

I'm a front end dev. This is mighty confusing for me. Can anyone do a write up on installing Java, Maven, setting Path Variables, then running through something basic like bundling js files in webpack. This would be amazing and I think help me and people like me who want to insert modern fe builds into Java environments. Thank you. Even a list of articles in the correct order would help greatly.

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Please mention your frontend-maven-plugin and operating system version.

tpraxl commented 7 years ago

If you're a Windows user, this article might be helpful: https://www.twilio.com/blog/2017/01/install-java-8-apache-maven-google-web-toolkit-windows-10.html

On linux, sdkman helps a lot (should also work on Mac OS). See http://sdkman.io/install.html sdkman may work on Windows as well, but I haven't used it there.

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java
sdk install maven

I don't have time to write down a complete guide, but maybe this helps to get you started.

[Edit] Notice that you currently only get openJDK when using sdkman. Oracle Java is currently not available that way. You can install an Oracle JDK locally and still use sdkman to manage your versions.

To do that, install it locally:

This is an article about installing oracle java on Ubuntu 14.x: https://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04

Then (example for Ubuntu 14.x):

sdk install java 8u131-oracle-local /usr/lib/jvm/java-8-oracle
sdk default java 8u131-oracle-local
tpraxl commented 7 years ago

Since I just set up an environment for such a project, here's a (not-so-)little guide for setting up a zero-turnaround-workflow for a frontend developer working with a JEE application (GlassFish).

https://gist.github.com/tpraxl/76dabfae96c91e5ed2456890ae09851b