GithubHelp home page GithubHelp logo

helayliu / project-info-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tdurieux/project-info-maven-plugin

0.0 0.0 0.0 23 KB

Extract the source folder and the classpath from maven projects

License: MIT License

Java 100.00%

project-info-maven-plugin's Introduction

Project Info

The goal of this maven plugin is to get the project information to be able to run repair tools on it.

Install

mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:get -DremoteRepositories=https://tdurieux.github.io/maven-repository/snapshots/ -Dartifact=com.github.tdurieux:project-config-maven-plugin:1.0-SNAPSHOT;

Usage

cd /somewhere/my-project-with-failing-tests

# check the failing tests
mvn test -DtrimStackTrace=false

# look for the configuration
mvn com.github.tdurieux:project-config-maven-plugin:info -q > info.json

Output

{
  // base directory of the project  
  "baseDir": "<root>/maven-project-config",
  // all test sources
  "tests": ["<root>/maven-project-config/src/test/java"],
  // all failing tests
  "failingTests": [],
  // all sources
  "sources": ["<root>/maven-project-config/src/main/java"],
  "binSources": ["<root>/maven-project-config/target/classes"],
  "classpath": [
    // full classpath
    "<root>/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar",
    "<root>/.m2/repository/org/apache/maven/resolver/maven-resolver-api/1.3.1/maven-resolver-api-1.3.1.jar",
    "<root>/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar",
    "<root>/.m2/repository/org/json/json/20180813/json-20180813.jar",
  ],
  "complianceLevel": 8,
  "modules": [{
    // module base directory  
    "baseDir": "<root>/maven-project-config",
    // module test sources
    "tests": ["<root>/maven-project-config/src/test/java"],
    // module failing tests
    "failingTests": [],
    // module sources
    "sources": ["<root>/maven-project-config/src/main/java"],
    // module source binaries
    "binSources": ["<root>/maven-project-config/target/classes"],
    "classpath": [
      // module classpath  
      "<root>/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.6.0/maven-plugin-annotations-3.6.0.jar",
      "<root>/.m2/repository/org/apache/maven/maven-artifact/3.0/maven-artifact-3.0.jar",
      "<root>/.m2/repository/org/apache/maven/maven-model/3.6.0/maven-model-3.6.0.jar",
      "<root>/.m2/repository/org/apache/maven/maven-plugin-api/3.6.0/maven-plugin-api-3.6.0.jar",
    ],
    "name": "Plugin to Automatically Fix failing test with",
    "complianceLevel": 8,
    "binTests": ["<root>/maven-project-config/target/test-classes"]
  }],
  "binTests": ["<root>/maven-project-config/target/test-classes"]
}

project-info-maven-plugin's People

Contributors

tdurieux 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.