Coder Social home page Coder Social logo

ekryd / echo-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 4.0 592 KB

A maven plugin that lets you output text during Maven build

License: BSD 3-Clause "New" or "Revised" License

Java 98.28% Groovy 1.72%
echo hacktoberfest java maven maven-plugin output print

echo-maven-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

echo-maven-plugin's Issues

Debug level does not seem to work at all

What steps will reproduce the problem?
Configure the plugin with debug level and run the plugin without switch -X

What is the expected output? What do you see instead?
The message should not be shown at all, only with the -X switch turned on

Please use labels and text to provide additional information.
The output is also strange with the other labels. They are in lower case 
letters instead of capital letters.

Original issue reported on code.google.com by [email protected] on 19 Apr 2014 at 8:20

Call Echo on Event

I discover this plugin when playing with sortpom.

As an opensource library maintainer, I think it could be a useful plugin to share information to developer which try to build my project.

Thinking about that, I have the idea that it could be cool to print/echo some information on some particular event :

Imagine you have a code formating check in your build,
When it failed you want to print to information about how to handle this. (how to get formatter or which mvn goal to launch to format ...)

So I search if I can do that and for now I understand there is no way to do that without code :
https://stackoverflow.com/questions/41893919/run-a-maven-plugin-when-the-build-fails

Maybe a possible feature could be to make possible to echo on given event (see https://maven.apache.org/ref/3.8.2/apidocs/org/apache/maven/execution/ExecutionEvent.html) like :

  • on build success
  • on build failed
  • on plugin with given artifactid failed

I share the idea just in case ๐Ÿ™‚

Implement filtering on fromFile

I see properties can be used in the message but not in the text file.
It would be handy to say in the text file:

The default goal is "${project.build.defaultGoal}"

and read

The default goal is "clean install"

Log levels no work

Couple of things

  • without specifying a log level Id expect INFO, but there's no log level prefix in the output [INFO]
  • when I use WARN as mentioned at https://github.com/Ekryd/echo-maven-plugin/wiki I get a message saying level must be either FAIL, ERROR, WARNING, INFO or DEBUG. Was: WARN
  • from a logging point of view fail and error are the same - suggest drop FAIL

Null pointer exception for fromFile and characterOutput

What steps will reproduce the problem?
Configure the plugin with:
          <fromFile>welcome.txt</fromFile>
          <characterOutput>true</characterOutput>


What is the expected output? What do you see instead?
Got NullPointerException:
Caused by: java.lang.NullPointerException
    at echo.CharacterOutput.getOutput(CharacterOutput.java:31)
    at echo.EchoPlugin.echo(EchoPlugin.java:44)
    at echo.EchoMojo.echo(EchoMojo.java:109)
    at echo.EchoMojo.execute(EchoMojo.java:88)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106



Original issue reported on code.google.com by [email protected] on 19 Apr 2014 at 7:52

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.


Warning

Renovate failed to look up the following dependencies: Failed to look up maven package com.github.ekryd.echo-maven-plugin.its:module1.

Files affected: maven-plugin/src/it/echo-fromClassResouce/module2/pom.xml


Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

circleci
.circleci/config.yml
  • maven 1.4.1
  • cimg/openjdk 11.0.22
  • cimg/openjdk 20.0
  • cimg/openjdk 21.0.2
  • cimg/openjdk 17.0.11
github-actions
.github/workflows/build.yml
  • actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/setup-java v4.2.2@6a0805fcefea3d4657a47ac4c165951e33482018
  • dependabot/fetch-metadata v2.2.0
.github/workflows/codeql-analysis.yml
  • actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
maven
echo/pom.xml
maven-plugin/pom.xml
  • com.github.ekryd.echo-maven-plugin:echo-output 2.1.1-SNAPSHOT
  • com.github.ekryd.echo-maven-plugin:echo-maven-plugin 2.1.0
maven-plugin/src/it/default-configuration/pom.xml
maven-plugin/src/it/echo-fromClassResouce/module1/pom.xml
maven-plugin/src/it/echo-fromClassResouce/module2/pom.xml
  • com.github.ekryd.echo-maven-plugin.its:module1 0.0.1-SNAPSHOT
maven-plugin/src/it/echo-fromClassResouce/pom.xml
maven-plugin/src/it/echo-fromFile/pom.xml
maven-plugin/src/it/mojo-description/pom.xml
  • org.apache.maven.plugins:maven-help-plugin 3.4.1
maven-plugin/src/it/skip-echo/pom.xml
pom.xml
  • org.junit:junit-bom 5.10.3
  • commons-io:commons-io 2.16.1
  • org.apache.maven:maven-plugin-api 3.9.8
  • org.apache.maven.plugin-tools:maven-plugin-annotations 3.13.1
  • com.github.ekryd.reflection-utils:reflection-utils 1.2.0
  • org.hamcrest:hamcrest 3.0
  • org.mockito:mockito-core 5.12.0
  • org.apache.maven.plugins:maven-antrun-plugin 3.1.0
  • org.apache.maven.plugins:maven-assembly-plugin 3.7.1
  • org.apache.maven.plugins:maven-clean-plugin 3.4.0
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.apache.maven.plugins:maven-dependency-plugin 3.7.1
  • org.apache.maven.plugins:maven-deploy-plugin 3.1.2
  • org.apache.maven.plugins:maven-install-plugin 3.1.2
  • org.apache.maven.plugins:maven-invoker-plugin 3.7.0
  • org.apache.maven.plugins:maven-jar-plugin 3.4.2
  • org.apache.maven.plugins:maven-plugin-plugin 3.13.1
  • org.apache.maven.plugins:maven-resources-plugin 3.3.1
  • org.apache.maven.plugins:maven-site-plugin 3.12.1
  • org.apache.maven.plugins:maven-surefire-plugin 3.3.1
  • org.codehaus.mojo:versions-maven-plugin 2.17.1
  • org.jacoco:jacoco-maven-plugin 0.8.12
  • org.sonarsource.scanner.maven:sonar-maven-plugin 4.0.0.4121
  • com.github.ekryd.echo-maven-plugin:echo-maven-plugin 2.1.0
  • com.github.ekryd.sortpom:sortpom-maven-plugin 4.0.0
  • com.spotify.fmt:fmt-maven-plugin 2.23
  • org.apache.maven.plugins:maven-enforcer-plugin 3.5.0
  • org.apache.maven.plugins:maven-release-plugin 3.1.1
  • org.eluder.coveralls:coveralls-maven-plugin 4.3.0
  • javax.xml.bind:jaxb-api 2.4.0-b180830.0359
  • org.sonatype.plugins:nexus-staging-maven-plugin 1.7.0
  • org.apache.maven.plugins:maven-javadoc-plugin 3.8.0
  • org.apache.maven.plugins:maven-source-plugin 3.3.1
  • org.apache.maven.plugins:maven-gpg-plugin 3.2.4

  • Check this box to trigger a request for Renovate to run again on this repository

No echo

This echo-maven-plugin never echos anything to the console.
I've tried different phases but nothing works.
What would I have to type at the command line to see the DEBUG_BUILD message?

    <plugin>
        <groupId>com.github.ekryd.echo-maven-plugin</groupId>
        <artifactId>echo-maven-plugin</artifactId>
        <version>1.2.0</version>
        <inherited>false</inherited>
        <executions>
            <execution>
                <id>someId</id>
                <phase>clean</phase>
                <goals>
                    <goal>echo</goal>
                </goals>
                <configuration>
                    <message>DEBUG_BUILD: a</message>
                </configuration>
            </execution>
        </executions>
    </plugin>

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.