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
Issue #201 assemble-maven-repository respect skip from maven-deploy-plugin #204
Issue #201 assemble-maven-repository respect skip from maven-deploy-plugin #204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, this looks fine to me but some adjustments would be good.
- I have already prepared an (incomplete) integration test here , maybe you can integrate this into your PR and complete it with the different cases you like to have covered?
- I have added some comments regarding code structure and logging
...repository-plugin/src/main/java/org/eclipse/tycho/plugins/p2/repository/MavenP2SiteMojo.java
Outdated
Show resolved
Hide resolved
...repository-plugin/src/main/java/org/eclipse/tycho/plugins/p2/repository/MavenP2SiteMojo.java
Outdated
Show resolved
Hide resolved
* @return the Maven plugin defined in <code>${project.build.plugins}</code> or in | ||
* <code>${project.build.pluginManagement}</code>, or <code>null</code> if not defined. | ||
*/ | ||
private static Plugin getPlugin(MavenProject p, String pluginId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laeubi wdym with above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this refers to "Maybe this is better placed in a common helper-class" but I don't see this as a blocker just thought it might better be placed in a common place, I'll check if I found a suitable place for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
org.eclipse.tycho.core.utils.MavenSessionUtils might be a good place so this code could be reused by other mojos as well...
* or <code>null</code> if not found. | ||
* @since 2.6 | ||
*/ | ||
private static String getPluginParameter(MavenProject p, String pluginId, String param) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is better placed in a common helper-class @mickaelistria any idea what one would be suitable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
org.eclipse.tycho.core.utils.MavenSessionUtils might be a good place so this code could be reused by other mojos as well...
...repository-plugin/src/main/java/org/eclipse/tycho/plugins/p2/repository/MavenP2SiteMojo.java
Outdated
Show resolved
Hide resolved
Great I will cherry-pick there. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Is there anything left from your side before we merge this?
@laeubi all looks good to me. |
Please allow me some more time to discuss and review before merging as I'm not confident coupling with other properties owned by other mojos and parsing poms instead of processing model is a good idea in general. |
can you explain where poms are parsed here? |
@mickaelistria finally the build succeeds, so this is "ready to review" if you are. I just wanted to note that as this is specifically enpower maven projects to publish p2-sites in a maven way it makes perfect sense to me to have some specialties. To clarify this a bit:
|
side note such skip already exists for javadoc plugin. apache/maven-javadoc-plugin#36 (https://issues.apache.org/jira/browse/MJAVADOC-613) |
@mickaelistria do you think we can proceed here? Do you need any further information/background? |
I'm OK about adding this functionality. However, are all the commits in the PR related? Please make sure only the relevant changes are merged (and squashed). |
…aven-deploy-plugin Signed-off-by: Olivier Lamy <olamy@apache.org> Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
c2beba7
to
2a1080a
Compare
everything is related and squash done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I'll merge this then once the build has passed.
Please make sure to add a note in the RELEASE_NOTES to describe what such feature can help with. |
It was already added to the release-notes and shows up in the documentation |
Signed-off-by: Olivier Lamy olamy@apache.org