Giter Site home page Giter Site logo

ecj-maven-extension's Introduction

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

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

<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
    <extension>
        <groupId>me.qoomon</groupId>
        <artifactId>maven-git-versioning-extension</artifactId>
        <version>5.2.0</version>
    </extension>
</extensions>

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

sample config

<!-- <?xml version="1.0" encoding="UTF-8"?> -->
<profiles>
  <profile id="java8">
    <configuration>
      <fork>true</fork>
      <executable>/usr/bin/javac</executable>
      <compilerArgs>
        <arg>-proceedOnError</arg>
      </compilerArgs>
      <target>1.8</target>
      <source>1.8</source>
       <failOnError>false</failOnError>
    </configuration>
    <dependencies>
      <dependency>
        <version>1.0</version>
        <artifactId>rt.jar</artifactId>
        <groupId>rt.jar</groupId>
        <scope>system</scope>
        <systemPath>/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/resources.jar</systemPath>
      </dependency>
    </dependencies>
  </profile>
</profiles>

ecj-maven-extension's People

Contributors

cedric05 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.