Last but not least, as stated here (step 7):我必须添加:pom {... withXml { val dependenciesNode = asNode().appendNode("dependencies") configurations.getByName("implementation") { dependencies.forEach { val dependencyNode = dependenciesNode.appendNode("dependency") dependencyNode.appendNode("groupId", it.group) dependencyNode.appendNode("artifactId", it.name) dependencyNode.appendNode("version", it.version) } } }} 这篇关于找不到名称为"java"的SoftwareComponentInternal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-13 12:01