-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiles defined inside tiles don't appear to work. #53
Comments
Really? I have a profile working in my tile just fine...
|
Interesting, I don't have any |
I can't even get it to work when setting the environment variable that triggers the profile activation. |
Do you have a sample project for us to check @Tzrlk ? |
I have a sample project mvn org.apache.maven.plugins:maven-release-plugin:2.3.2:perform -Ppromote-to-central -DconnectionUrl=scm:git:[email protected]:StickySource/sticky-tile-upload-nexus.git -Dtag=sticky-tile-upload-nexus-1.1 |
illustration of issue with profiles
hi all I've looked at this a little bit as we make use of profiles extensively. I created a test project in a fork of your repo with a hack that seems to resolve the issue If you guys could give me some pointers as to where in the lifecycle I should try and implement a solution, I will happily give it a bash - the changes I've made are more for an illustrative point than anything else |
your solution looks fine to me @timothysparg - is there a reason we shouldn't just use it? |
@rvowles I just wasn't sure if that was the correct place in the project lifecycle to place the code. I have created a submission via GerritHub If you're happy with it |
Please hold on this - I was doing some checking on this this morning, and although I can now see the profiles use help:effective-pom, they still don't seem to activate |
ok. They may be appearing too late - Maven does variable resolution before it hits the lifecycle plugin, which is what makes using variables in versions painful. I suspect we may have to run the activation logic ourselves and merge them into the POM. |
With maven 3.5.0 and tiles 2.11, it appears that the profiles are activated, but maven gives a warning that they are unknown:
This is the last line of output from by build, even though the dev profile exists (inside a tile) and is activated. If you can inject the profile into the pom model, that would probably fix that warning and also make the profile show up with |
@timothysparg Just pulled the review and ran it locally, and still see the warning being mentioned as @udalrich mentions, did you ever manage to resolve that at all? |
No, I initially thought this would be a quick fix, but maven seems to handle profile evaluation differently to how it handles other sections of the pom. I can't remember all the semantic issues right now, but I do remember that my pr did not resolve the issue satisfactorily |
Do you have any news about this issue? Profiles aren't copied even in the latest version |
No, since it hasn't affected me I haven't looked at it. We do welcome PRs
in case you'd like to attempt to figure out the deep dark depths of why
Maven isn't passing this info on.
…On Thu, Dec 6, 2018 at 5:03 AM Tayeb Chlyah ***@***.***> wrote:
Do you have any news about this issue? Profiles aren't copied even in the
latest version
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADZ2EZaH3EiZSMeQtPLz7fWDmwpENi7ks5u1-5DgaJpZM4HW1O6>
.
--
---
Richard Vowles,
Full stack - from Kubernetes, through Node & Java, Web and Mobile
development in Flutter - software developer for hire!
ph: +64275467747, web: www.google.com/+RichardVowles
|
From my uses - profiles appear to copy and run as expected - EXCEPT that maven reports that the profile doesn't exist at the end of a build still - even tho it used it. @tchlyah are you seeing different behaviour or? |
I don't mind the warning as I normally do not select profiles explicitly but activate them based on system properties. The problem I have is with compound tiles like
And then using it together with single tiles:
I cannot get the profile from I guess this is because tiles are expanded breadth first and not depth first:
If I explicitly list
then it works |
I got a little confused when we started using Maven Tiles, I got the same behaviour profiles work as expected but maven reports they do not exsist. Is this how it's should behave? |
No description provided.
The text was updated successfully, but these errors were encountered: