I want to migrate from gradle to maven I tried and build successfully but I am facing issue while running my application
I took this gradle project https://github.com/spring-projects/spring-security-kerberos from git, its working fine as gradle project.
But my requirement is maven project please tell me how I can do it.
You can try and add the Maven Publishing plugin and its maven-publish in order to generate a pom.xml
.
A
MavenPublication
is the representation/configuration of how Gradle should publish something in Maven format.
You directly add a named Maven Publication the project'spublishing.publications
container by providingMavenPublication
as the type.
publishing {
publications {
myPublicationName(MavenPublication) {
// Configure the publication here
}
}
}
使用archiveTask
您可以生成pom.xml http://www.gradle.org/docs/current/userguide/maven_plugin.html#sec:maven_pom_generation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.