Skip to content

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

Notifications You must be signed in to change notification settings

matozoid/javaparser-maven-plugin-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaParser Maven plugin sample

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

If you want to do this without bulding a custom plugin, get some inspiration from JavaParser's code generator which uses the exec-maven-plugin.

  • trace-code-plugin is the actual maven plugin. It demonstrates how to read and process source code and how to write it out again. The plugin itself simply adds a line to each method that prints its name (for "tracing.")
  • use-plugin is a little project that executes the plugin on some source code. The results can be found in its target directory.

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

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages