You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project snapshot/release repositories are configured
in a parent pom
in 2 mutually exclusive profiles
activated by the presence or absence of a property.
Its the same repos in each profile, but with different update intervals.
Flatten mode "defaults" runs in phase "initialize".
I found that my repositories tag was not included in the flattened pom.
Then I saw https://www.mojohaus.org/flatten-maven-plugin/flatten-mojo.html
that profiles are not resolved, but should be included in the flattened pom. But there are no profiles in the flatten pom either.
I see my profiles are added. I was expecting "only the Activation and the Dependency dependencies of a Profile are copied to the flattened POM" but here I see the repositories.
In my project snapshot/release repositories are configured
in a parent pom
in 2 mutually exclusive profiles
activated by the presence or absence of a property.
Its the same repos in each profile, but with different update intervals.
Flatten mode "defaults" runs in phase "initialize".
I found that my repositories tag was not included in the flattened pom.
Then I saw https://www.mojohaus.org/flatten-maven-plugin/flatten-mojo.html
that profiles are not resolved, but should be included in the flattened pom. But there are no profiles in the flatten pom either.
So I made this test project
mvn initialize -Drevision=2.4.2 -Dchangelist=-SNAPSHOT && cat .flattened-pom.xml
I see my profiles are added. I was expecting "only the Activation and the Dependency dependencies of a Profile are copied to the flattened POM" but here I see the repositories.
I gave up on configuring repositories in profiles.
The text was updated successfully, but these errors were encountered: