Skip to content

BuildInfoRecorder can upload "stale" POM when using maven-shade plugin #3

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

Merged
merged 1 commit into from
May 28, 2013
Merged

Conversation

aldaris
Copy link
Contributor

@aldaris aldaris commented May 24, 2013

When using maven-shade plugin, the plugin tends to create a dependency-reduced-pom.xml, which basically contains a slightly modified version of the original POM (dependencies removed, or modified to have provided scope).
When using Jenkins in conjuction with artifactory-plugin suddenly the dependency-reduced-pom.xml starts to get ignored, and always the original POM gets deployed to Artifactory.

After hours of debugging I think I've nailed it down to BuildInfoRecorder#addArtifactsToCurrentModule where the deployable artifact would refer to an incorrect POM (rather than using the correct POM from the ProjectArtifactMetadata), changing that seems to resolve the problem for me. I've ran tests with single module and multi module project and the uploaded POMs looked okay as far as I could see.

@jbaruch
Copy link
Contributor

jbaruch commented May 26, 2013

Peter, thanks for the pull request, it looks 👍

Can you please see the "how to contribute" guide before we can merge it in?

Thanks!

@aldaris
Copy link
Contributor Author

aldaris commented May 26, 2013

I'm having a really hard time finding this guide, could you provide a link? :)

@jbaruch
Copy link
Contributor

jbaruch commented May 27, 2013

Oh, silly me :-) here you go! http://wiki.jfrog.org/confluence/display/OSS/How+to+Contribute

@aldaris
Copy link
Contributor Author

aldaris commented May 27, 2013

Done.

OrKoren pushed a commit that referenced this pull request May 28, 2013
BuildInfoRecorder can upload "stale" POM when using maven-shade plugin
@OrKoren OrKoren merged commit d1fcad1 into jfrog:master May 28, 2013
@OrKoren
Copy link
Contributor

OrKoren commented May 28, 2013

Pull request merged

yahavi pushed a commit to yahavi/build-info that referenced this pull request Dec 27, 2018
# This is the 1st commit message:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#2:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#3:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#4:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#5:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#6:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#7:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#8:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#9:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#10:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#11:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#12:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#13:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#14:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#15:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#16:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#17:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#18:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#19:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#20:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#21:

HAP-1044 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#22:

BI-465 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#23:

BI-465 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#24:

BI-465 - Support for NPM in the Jenkins Artifactory Plugin

# This is the commit message jfrog#25:

BI-465 - Support for NPM in the Jenkins Artifactory Plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants