Ivan
Ivan

Reputation: 1763

Running maven plugins defined in a local project

Is there a way for a maven project to contain local maven plugin (maven mojo classes) that can be used within the project directly, from the local classpath, without a need to do a maven install first?

Upvotes: 1

Views: 101

Answers (1)

Gerold Broser
Gerold Broser

Reputation: 14762

With Maven the "build related code" (though declarative, not imperative) lies in your project's POM (Project Object Model, pom.xml). The runtime environment for these declarations is the installed Maven.

Once you become familiar with POMs and its ideas and concepts it's even simpler than coding build related things – at least from my, and many many others, POV.

If you really want or even must code something use GMavenPlus to use Groovy code inside your POM or create your own plugin(s) and use Maven as runtime environment for them.

Upvotes: 1

Related Questions