-
Notifications
You must be signed in to change notification settings - Fork 102
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
org.sonatype.maven.polyglot.TeslaModelProcessor.locatePom(File) ignores files ending in.xml #192
Comments
I imagine this is some old stuff from unsupported Maven version that has been staying there for long without annoying anyone so far. I think this whole condition could be replaced with |
@mickaelistria not yet, but I think it would be better that a maintainer takes a look at it, becuase there is also another issue: javadoc states "The path to the (possibly non-existent) POM file, never null." for the called manager, but code still checks for null (what can hide malformed Managers, better would to throw an exception then). |
Ok, let's wait for feedback. But if you don't receive any in a good time, just send a PR. Maintainers often looks at PR with more interest than they look at issues; once "hooked" on the PR, some maintainers who were silent on issues give interesting feedback ;) |
I would have to look into this in more detail but probably wont have time soon. Can you see what happens if you change.... it might have weird side effects since we generate the pom.xml file . Not sure how good test coverage around that is either. Definitely worth checking out though so I encourage you to look into it so we can fix it .. |
@laeubi do you mind creating PR for your commit so we can see polyglot-maven devs review on it? |
Already there: #196 |
Fix #192 TeslaModelProcessor.locatePom(File) ignores files ending in.xml
redirected here from https://issues.apache.org/jira/browse/MNG-6742
in org.sonatype.maven.polyglot.TeslaModelProcessor.locatePom(File) there is the following code:
This makes it impossible to return any file with xml ending as alternative to pom.xml, in my case data is stored in a file named category.xml and i can't use it because then my Mapping is never called.
The text was updated successfully, but these errors were encountered: