On 5/15/17, 7:27 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:
>
>So now the problem is keeping these defaults in sync with changed done in
>the templates used by FlashBuilder and Ant … correct?
>
>Alex correctly noticed that if you add non-existing config options to the
>plugin configuration, Maven simply ignores that. However we shouldn’t use
>that to pass though information. In IntelliJ a pom would be completely
>red and it could be problematic to get access to the configuration
>options as Maven is completely ignoring them.

I'm not sure I understood what error/problem you would get.  We could
teach the compiler to read IntelliJ project settings as well.

>One option I see that could be interesting, would be to provide a
>configuration option that we can add additional configuration to. So, in
>the plugin config we would have an “additionalConfiguration” element that
>can contain xml tags. This should be quite easy to implement and
>maintain. But we should not rely on this to keep the maven configs in
>sync with the ant ones. If the defaults change, these changes should be
>forwarded to the maven plugins defaults as it’s one of Mavens base
>principals that the default case should require almost no configuration
>at all.

You already added an "additionalCompilerOptions" element.


IMO, it would be better if we didn't have to keep anything "in sync".  The
words "in sync" imply that there are two copies of something.  So, I think
the problem to discuss is how can we have one master file for default
settings and have Ant and Maven and IDEs and command line users access
them, without dependencies on Maven.

And, the related problem is how we can add new compiler options without
having to keep BaseMojo in sync.

The only solution I can currently think of is my proposed "hack" that
relies on the fact that the settings are described in a Maven pom and
aren't so sophisticated that I can't just pull them out with an XML parser
and no Maven dependencies.

Other ideas are certainly welcome.  And no rush to close this discussion.
I have no plans to actually write such code any time soon unless folks
start asking me to.

-Alex

Reply via email to