Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedric05/ecj-maven-extension
maven extension to modify compiler plugin for all projects
https://github.com/cedric05/ecj-maven-extension
automation extension java lifecycle maven maven-extension
Last synced: 13 days ago
JSON representation
maven extension to modify compiler plugin for all projects
- Host: GitHub
- URL: https://github.com/cedric05/ecj-maven-extension
- Owner: cedric05
- Created: 2020-08-28T03:55:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-29T15:32:44.000Z (over 4 years ago)
- Last Synced: 2024-10-05T23:21:36.197Z (3 months ago)
- Topics: automation, extension, java, lifecycle, maven, maven-extension
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Maven extension to modify plugins.
# Goal
Modify compiler for maven projects to use non javac compiler.# Non Goal
Modify entire pom or other plugins.## Install
⚠️ minimal required maven version is `3.6.3`
[Follow](https://maven.apache.org/studies/extension-demo/)#### Configure for all projects
Or add jar file in `${maven.home}/lib/ext/` (enables for all projects)
#### Configure for specific project
just create or update `${basedir}/.mvn/extensions.xml` file```xml
me.qoomon
maven-git-versioning-extension
5.2.0
```
## Usage
Follows profile behaviour like we have in maven. User can define multiple profiles in `~/.m2/compile-config.xml`.To activate particular profile `java8` pass `-Decj-native=java8` while running `$ mvn compile`.
extension expects `~/.m2/compile-config.xml` to have something like this.Schema for compile-config.xml is defined [here](./compile-config.xsd)
## sample config
```xml
true
/usr/bin/javac
-proceedOnError
1.8
1.8
false
1.0
rt.jar
rt.jar
system
/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/resources.jar
```