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 8214867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:35:46+00:00 2026-06-07T11:35:46+00:00

I would like to run the following basic procedure within my Maven 3.0.4 project.

  • 0

I would like to run the following basic procedure within my Maven 3.0.4 project. I have all the basics in place and haven’t had any issues but am running into problems on step #3. For some reason the basic solution is eluding me, since it seems like something that should be very obvious.

  1. Run a basic clean/install (without annotation processing)
  2. Request that a site build be run
  3. Before the site build kicks off, run annotation processing on the compiled classes using an annotation processor class that was compiled in the initial steps

I tried setting up the annotation processing goal as follows:

<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <executions>
    <execution>
      <id>process</id>
      <goals>
        <goal>process</goal>
      </goals>
      <phase>pre-site</phase>
      <configuration>
        <outputDirectory>${basedir}/target/generated-documentation</outputDirectory>
        <processors>
          <processor>com.mydomain.MyFancyAnnotationProcessor</processor>
        </processors>
      </configuration>
    </execution>
  </executions>
</plugin>

For some reason this doesn’t seem to be working.
I feel like I’m doing something very, very silly that is preventing it from working.

I am using the Maven Annotation Plugin instead of the basic, Mojo Apt Plugin. I don’t mind switching if someone has a working solution with that one. I tried both without any immediate signs of success. Again, it feels like it’s just something obvious that I’m overlooking.

Error received:

[INFO] diagnostic error: Annotation processor 'com.mydomain.MyFancyAnnotationProcessor' not found
[ERROR] error on execute: error during compilation
  • 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-07T11:35:48+00:00Added an answer on June 7, 2026 at 11:35 am

    My guess would be that the plugin is not including the current project itself in its classpath. The best solution would be to separate the annotation processor into its own (sub-)module if possible. If you can’t do that, you may be able to just add this project itself as a dependency of the plugin (using a <dependencies> section under the plugin node).

    As a diagnostic note, you can run maven with the ‘-X’ argument to see detailed info about the build. This should show you exactly what is on the classpath when the plugin is executed.

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

Sidebar

Related Questions

I have a basic C# console application that I would like to run as
I have a GWT application which I would like to run from within a
I would like to run the following SQL select: SELECT ID, NUMERATOR, (SELECT m.COLUMNNAME
I would like to run a jar file extracted from my java project to
I would like to run the following Django command (to dump the contents of
I would like to run the following code (below). I want to spawn two
I've got some heavyweight process, which does some video processing. I would like run
I would like to run this script (embed drive list in a site) that
I would like to run a script in production. This script generates a record
I would like to run my node.js application without the automatic logs it prints

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.