-
Notifications
You must be signed in to change notification settings - Fork 157
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
File 'xxxx/pom-default.xml' does not exist, and need to be published from publication xxx #92
Comments
Hi @tonytvo,
|
I tried to use the snapshot version and the problem still persists with Gradle 3.0 it's a little bit more troublesome to create mock project that would simulate the exact behaviors, I will take a stab at it and see what I can do. |
Thanks @tonytvo. |
Couple more information for you: Gradle 3.0 and build-info-extractor-gradle: 4.4.0 works for me, however, I saw the problem of the build not deploying artifacts to artifactory intermittently (I have created an issue for this) Gradle 2.14.1 and build-info-extractor-gradle:4.4.2 has the same problem of pom-default.xml does not exist |
The same behavior with Artifactory plugin 4.4.4 / gradle 3.0 |
@nucatus, |
After purging the |
I did blow away ~/.gradle cache and the problem still persists, I'm currently on gradle 3.1 and build-info-extractor-gradle 4.4.4 |
@eyalbe4 , I think I narrow down the problem a little bit.
Here's the snapshot of one of my gradle file of one of the sub modules:
Let me know if you need anything else from me |
@eyalbe4 , did I miss anything or do I have to add that afterEvaluate block? or do I have to wait for another cut 4.4.6 to get that addressed? |
@eyalbe4 , I wonder if you have a chance to tackle this? or is it on the radar for the next release? |
@tonytvo, version 4.4.7 has been released about two weeks ago. The release includes the following fix: |
@eyalbe4 , I cleared the ~/.gradle cache and the problem still persists... did I miss anything? |
@tonytvo, clearing the gradle cache is not relevant for this problem. Please try running grade --stop and then run the build. If the problem is resolved, use version 4.4.7, which includes the fix. |
|
@tonytvo, |
@eyalbe4 , I will try to make the sample project and post it here. |
@eyalbe4 , I'm sorry for the delay, I haven't been able to get to this, here's the sample version that doesn't work with 4.4.10 but work with 4.4.0 './gradlew buildAndPublishSample' would produce the problem with 4.4.10 but not with 4.4.0 my gradle version is 3.2.1 Again, I'm sorry for the delay |
@eyalbe4 , @DimaNevelev , @romangurevitch Do I need to create a new issue since this issue might have been expired, thank you very much guys |
No need @tonytvo. Thanks for sharing the sample project. |
thanks @eyalbe4 , let me know if you can reproduce the problem on your local machine with the sample projects. |
@tonytvo, I think I'm getting closer to the root cause of the issue. |
thanks @eyalbe4 , it seems to work for us. Note that we would prefer to keep org.gradle.configureondemand as we have over 100 gradle modules so we would need keep the configureondemand to skip configuring not needed gradle module on building local dev environment. Thank you very much for your promptly response. Much appreciated. |
Just a note for future spelunkers, this is still a problem for Gradle 3.5 and build-info-extractor-gradle:4.4.16. I'm trying to bootstrap and publish a bunch of interrelated libraries using |
I tried 4.4.18 and remove org.gradle.configureondemand from gradle.properties, and it can resolve the problem. |
I remove org.gradle.configureondemand and resolve it with version 4.0.1 |
Still happens with version 4.5.1 and Gradle 4.1-rc1. Removing 'configure on demand' is not an option for us, because full re-configuration takes way too long. My workaround is to add the following to each sub-module that needs to publish things to Artifactory.
|
I also experienced this problem when trying to publish an Android library to artifactory, using this as a starting point: https://github.com/JFrogDev/project-examples/blob/master/gradle-examples/4/gradle-android-aar/build.gradle In order to make sure the pom file is (re)generated I have added this to the library module build.gradle file:
|
Also able to reproduce this on https://github.com/groovy/groovy-android-gradle-plugin. |
For the groovy android plugin, updating to 4.5.0 causes the issue to appear, downgrading to 4.4.12 works as expected. Gradle: 4.3 |
I think we didn't generate pom file, try to run task |
I am also meeting this problem. Disabling configure on demand, seems to fix it. Running generatePom task also fixes it. The strange thing is, that I am not sure who is creating generatePom<..> task, If I just refer to it in an indirect dependsOn, it cannot find it, even if I preceed it with a evaluationDependsOn(':bla'). On the other hand, if I preceed it with evaluationDependsOnChildren, it does work. Strange. I keep researching. |
I think I have fixed this issue in this PR: The reason why I cannot depends on any generatePom task is because they are created using rules. I think after configuration phase. |
Hi guys, I wonder if any body experience this problem with the following environment settings:
gradle: 3.0
build-info-extractor-gradle: 4.4.2
I have seen the similar problem the jira ticket: https://www.jfrog.com/jira/browse/GAP-174
Any comments/suggestions works around would be much apreciated?
Cheers,
Tony
The text was updated successfully, but these errors were encountered: