1

I am writing a maven plugin that generates source code. I have created my plugin project using the maven-archetype-plugin archetype.

The maven-archetype-plugin archetype creates a project-to-test under src/test/resources.

I would like to execute the compile lifecycle on this project as part of an automated test. What is the right way to do this?

spierepf
  • 2,774
  • 2
  • 30
  • 52
  • The location `src/test/resources` is simply wrong...generated code should be located in `target/generated-sources/XXX` ... – khmarbaise Mar 03 '19 at 10:10
  • You may have misunderstood me. The `project-to-test` is created as part of `mvn archetype:generate`. – spierepf Mar 03 '19 at 11:09
  • It's unclear what your question is. The compile phase will automatically be run if you run `mvn test` – Ardesco Mar 05 '19 at 13:25

0 Answers0