apache / apache/maven

[MNG-6903] Extensions support Profiles - Improvement / New Feature

Open
#8,414 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[John Patrick](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nhoj.patrick)** opened **[MNG-6903](https://issues.apache.org/jira/browse/MNG-6903?redirect=false)** and commented

Maybe a Maven 4 feature...

At the moment you can add extensions using `'.mvn/extensions.xml'`. But some extensions or executions it might make sense if they can be enabled or disabled via a profiles.

So buildtime profiler, useful to understand how long builds are taking and what is consuming the time, but I don't want it to always execution because it does cause more confusion supporting other developers to understand the output. So at the moment it is checked into git as `'.mvn/extensions.xml.disabled'`, and `README.md` mentions renaming the file locally if you want to enable the extension.

So currently;

```xml


com.soebes.maven.extensions
maven-buildtime-profiler
0.2.0

```

To something like this;

```xml





com.soebes.maven.extensions
maven-buildtime-profiler
0.2.0

```

No real preference if `extension` is nested within another element within profile, but `extensions->profiles->profile->extensions->extension` does seam a little overkill, but it would make it more inline with `'settings.xml'` and `'pom.xml'`.

I just would like `-PaProfile` and help to also consider `'.mvn/extensions.xml'`.

---

**Affects:** 3.6.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.