Skip to content

[MNG-6912] File based profile activation results in absolute paths in OriginalModel #8410

Closed

Description

@jira-importer

Arnoud Glimmerveen opened MNG-6912 and commented

If a project has one or more profiles activated using file(s), the OriginalModel that a maven plugin can obtain from the MavenProject, holds the absolute path to these files, rather than the raw value from the pom.xml file.

This is caused by the DefaultModelBuilder using the 'rawModel' to determine the active profiles, which has the side-effect of interpolating the files to absolute paths.


Affects: 3.6.3

Issue Links:

  • MNG-6802 FileProfileActivator changes FileProfileActivator.exists which lets flattened resolveCiFriendliesOnly depending fail activating profile
    ("duplicates")

Remote Links:

1 votes, 2 watchers

Activity

  1. jira-importer commented on May 22, 2020

    @jira-importer
    Author

    Arnoud Glimmerveen commented

    I noticed there was already an issue for this problem.

  2. jira-importer commented on May 22, 2020

    @jira-importer
    Author

    Arnoud Glimmerveen commented

    There is also a PR open for MNG-6802 [1], I'll leave this issue (and PR) open, allowing the maintainers to choose which solution to use.

    [1] #347

  3. added
    bug
    priority:major
    on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions