Sample project with a basic Maven + JavaParser setup

Clone this repo:

Branches

  1. f0d27d5 updated now by AchyuthAch · 3 years, 6 months ago master
  2. 2d9f9ce Update pom.xml by AchyuthAch · 3 years, 6 months ago
  3. f3355cc sonar by AchyuthAch · 3 years, 6 months ago
  4. 4641539 nexus by AchyuthAch · 3 years, 6 months ago
  5. 0f74737 Upgrade JP version by Danny van Bruggen · 3 years, 9 months ago

JavaParser and Maven sample

A fully working sample Maven project that parses and generates code with JavaParser

This is targeted at people without Maven experience.

To build it, you will need to download and unpack the latest (or recent) version of Maven (https://maven.apache.org/download.cgi) and put the mvn command on your path. Then, you will need to install a Java 1.8 (or higher) JDK (not JRE!), and make sure you can run java from the command line. Now you can run mvn clean install and Maven will compile your project, an put the results it in a jar file in the target directory.

How you run this code is up to you, but usually you would start by using an IDE like NetBeans, Intellij IDEA, or Eclipse.

The Maven dependencies may lag behind the official releases a bit.

If you notice some problems with this setup, please open an issue.