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
.tesla.xxx.pom issues #3
Comments
it is a hack and I agree with you that a better solution is needed. but let's see your points first - it should be possible to put that .tesla.pom* into the 'target' directory which should eliminate point 1 and 3 though it might impose another problem that 'target' needs to be hardcoded (or not - let's see) yes, the install plugin would be the right place to "translate" the internal used model into xml and then make sure the deploy does use it as well. but the install plugin is outside the immediate scope of tesla-polyglot and with 'install' working (via that hack) tesla can be used on "real" projects. I totally agree with pom.xxx having higher priority than pom.xml which I did so with the ruby part, i.e. the reactor and the parent resolution will pick the pom.rb as well. but when I start pom.scala I would expect the parent and reactor to use pom.scala files for that as well (not sure if that is ONLY my expectation) |
Hi @mkristian - thanks for the response. Generating the |
I will ask Jason on how to it get into install-plugin which is probably the right place for ensuring the pom.XML |
Awesome. Thanks. |
the target thingy did not work as hoped but I now mark that .tesla.* files let's keep the issue open since we still need to find a way to move those |
I was wondering how the target/ approach would work - the pom files are expected in the project root right? deleteOnExit will be an improvement, but we are left with the third issue i.e. conforming to restrictions such as license files. |
yes, the problem is the project.basedir which is the directory in which the the license check - well for tesla itself we could add to the excludes list about the install thing - in order to proceed without hopin on maven itself |
Yeah, not just a tesla issue though perhaps... I can see this kind or problem occurring elsewhere. |
@mkristian Is this still a problem? |
the files are still generated otherwise mvn install does not work but they if maven proper would serialize the current model and use that - then we would say keep the issue open for now. |
I will take a look shortly to find a general solution. |
this is still needed to the extend that the generated the 'polyglot.dump.pom' property to permanently dump the temporary pom and pom.xml can be safely removed as the polyglot-translate-plugin can be used instead. maybe an extra config which allows to add this to generated pom.xml: https://github.com/takari/polyglot-maven/blob/master/polyglot-common/src/main/java/org/sonatype/maven/polyglot/TeslaModelProcessor.java#L45 |
What is the current state? I'm working with polyglot-scala in many projects, and there are no issue at all when installing or deploying. An update to this issue would be very appreciated. If the interop issues are solved for all dialects, please note this here, so that I can send a PR for the main README, to reflect the more stable nature of polyglot. |
Good question... |
As of commit bfc16c7, the creation of a
.tesla.xxx.pom
poses some new issues:.tesla*
files;.tesla.xxx.pom
must conform to any restrictions imposed on the pom it was produced from.I'm particularly concerned about the restriction conformance. For example on the tesla modules, the poms must have license headers. Generated poms do have such headers of course.
The approach of generating a
.tesla.xxx.pom
is concerning. According to commit bfc16c7 it is because the install plugin requires a pom.xml to deploy. Perhaps there's another way to approach this e.g. have atranslate
occur as part of the install plugin and reference the updated install plugin as part of the tesla build. Thepom.xxx
file should also be installed alongside anypom.xml
. This approach would also requirepom.xxx
files to have a higher priority thanpom.xml
(which I think is a good thing anyhow).The text was updated successfully, but these errors were encountered: