Maven scenarios to recognize custom plugin version for Spring Boot project - 'plugin not found' scenarios
I've been working on this all day and I've hit a wall trying to I tried several approaches but none seem to work. I tried several approaches but none seem to work. I'm working on a Spring Boot application that uses a custom Maven plugin for generating code based on annotations. Despite specifying the plugin in my `pom.xml`, I'm working with a `plugin not found` behavior during the build process. The plugin is defined as follows: ```xml <build> <plugins> <plugin> <groupId>com.example</groupId> <artifactId>custom-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> </plugins> </build> ``` The behavior message I receive is: ``` [behavior] Failed to execute goal com.example:custom-maven-plugin:1.0.0:generate on project my-spring-app: plugin not found: com.example:custom-maven-plugin:1.0.0 -> [Help 1] ``` I've ensured that the plugin is installed locally by running `mvn install` in the plugin's directory. Additionally, I verified that my local repository (`~/.m2/repository/com/example/custom-maven-plugin/1.0.0`) contains the jar file. I've also tried cleaning the cache with `mvn clean install -U` to force updates from remote repositories, but the scenario continues. This Spring Boot project has a parent POM that manages its dependencies and plugins, and I'm not sure if there's something in the parent POM that might be affecting this. Could there be a question with how the plugin is scoped or a missing repository declaration? Any insights would be greatly appreciated! Thanks in advance! This is happening in both development and production on CentOS. Any advice would be much appreciated. I'm coming from a different tech stack and learning Java. Is there a better approach? I'm using Java latest in this project. I'm open to any suggestions. This is part of a larger web app I'm building. What's the correct way to implement this?