Results 1 to 2 of 2
  1. #1
    erwannleroy is offline Member
    Join Date
    Jul 2015
    Posts
    1
    Rep Power
    0

    Default Calling plugins from a custom Maven plugin

    Hi,

    I made a maven profile, constituted of some plugins.
    To let the pom project file more clean, I searched to define this profile elsewhere.

    2 options :
    - put the profile definition on a parent pom (I tried this but encountered some problems)
    - make my own plugin (I tried it with mojo executor api, but encountered somme problems too :)


    Firstly, I wonder if this is a good practice to make my own plugin in this case.
    Is Maven plugin API made for calling other plugins inside one ?
    If yes, is the API able to parse a profile part of a pom.xml and then to make the MojoExecution ?

    Thanks in advance,


    Erwann

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Calling plugins from a custom Maven plugin

    Making your own plugin is something that most Maven users won't do, so you're asking a question here that won't easily find an answer. I'd try to find a way to solve your requirement with existing plugins if I were you.

    I'm very confused what you actually are talking about here. "profile definition"? Generally profiles are maintained outside of the pom, in the settings.xml files. What about your profile makes you want to put it in the pom itself?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 0
    Last Post: 02-03-2015, 02:38 AM
  2. Replies: 0
    Last Post: 09-11-2014, 10:20 AM
  3. Maven plugin for eclipse 3.3.2
    By nareyugam in forum Apache Maven
    Replies: 3
    Last Post: 08-22-2013, 08:47 AM
  4. Replies: 0
    Last Post: 04-20-2009, 06:26 PM
  5. Docbkx Maven Plugin 2.0.5
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-20-2007, 08:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •