You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2014/07/02 15:45:01 UTC

[jira] (MNG-2463) Uniform access to phase properties of MavenProject

     [ https://jira.codehaus.org/browse/MNG-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated MNG-2463:
-------------------------------

    Fix Version/s:     (was: Issues to be reviewed for 3.x)

> Uniform access to phase properties of MavenProject
> --------------------------------------------------
>
>                 Key: MNG-2463
>                 URL: https://jira.codehaus.org/browse/MNG-2463
>             Project: Maven
>          Issue Type: Improvement
>          Components: Plugin API
>    Affects Versions: 2.0.4
>            Reporter: Jochen Kuhnle
>
> MavenProject has a distinct accessor for each phase's properties, e.g. getCompileSourceRoots for the compile and getTestCompileSourceRoots for the test phase. There are also many plugins that essentially do the same in more than one phase (e.g. the compiler plugin). If there was a uniform way to access the same property in different phases, these plugins would be easier to write, because we wouldn't need an abstract base class and different implementations for each phase.
> So what I propose basically is:
> MavenProject.getCompilePhase().getSourceRoots() and MavenProject.getTestPhase().getSourceRoots()



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)