Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8768043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:58:19+00:00 2026-06-13T16:58:19+00:00

I have two Maven projects: The first defines an annotation , an annotation processor

  • 0

I have two Maven projects:

  • The first defines an annotation, an annotation processor and a provider-configuration file to trigger the annotation processor through the ServiceLoader API.
  • The other depends on the first and defines some classes and interfaces, and one of them is annotated with the annotation defined in the first project.

I invoke the build of the second project (after having built and installed the first) with mvn clean && mvn compile, just to be sure that compilation will happen and that annotation processing will run. It works as expected: the simple annontation processor just generates a resource file in the target/classes/ directory containing some dummy data.

When I tried to output some information using processingEnv.getMessager().printMessage(...) I started having some trouble. If I use Diagnostic.Kind.ERROR, the build stops and it prints the message, as I would expect. However, with any other Kind (such as NOTE or WARNING), the message is not written on the screen!

Some information on my environment:

Kubuntu 12.10
Linux 3.5.0-17-generic
Apache Maven 3.0.4 (r1232337; 2012-01-17 06:44:56-0200)
Java version: 1.7.0_09, vendor: Oracle Corporation

I didn’t explicitly declare the version of maven-compiler-plugin anywhere, so it must be using the default version (2.3.2? I’m not sure).

How does one enable the output of all the Kinds of messages on this setup? (ie, launching the annontation processor through maven)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:58:20+00:00Added an answer on June 13, 2026 at 4:58 pm

    Apparently, this is a bug in maven-compiler-plugin that has not been fixed: MCOMPILER-66 – Compiler swallows messages from annotation processors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have two maven profiles for running projects web tests: 1. first
I have two maven projects: project-api project-impl project-impl's POM specifies a dependency on project-api.
I have two maven projects, the second project extends some classes of first project.
Suppose I have two Java projects in Maven / Eclipse: An open source application
I have two maven projects Project AAA AAA-Core AAA-Other Project BBB BBB-Core BBB-AAA-specific I
At my work used jaxws-maven-plugin for code generation. I have two projects are common
I have two maven projects A and B, both of which I'm actively working
I have two java-projects configured with maven. One is a lib to the other.
Env: Maven 2.2.1 I have two java projects under svn (projectA, projectB). My maven
So I have a Maven project with two submodules. The first is the compiler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.