HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🤩
개발
/
Java
Java
/
Maven
Maven
/
Maven Publish Plugin을 이용한 jar파일 배포

Maven Publish Plugin을 이용한 jar파일 배포

The Maven Publish Plugin
The Maven Publish Plugin

The Maven Publish Plugin

The Maven Publish Plugin provides the ability to publish build artifacts to an Apache Maven repository. A module published to a Maven repository can be consumed by Maven, Gradle (see Declaring Dependencies) and other tools that understand the Maven repository format. You can learn about the fundamentals of publishing in Publishing Overview.

A MavenPublication is the representation/configuration of how Gradle should publish something in Maven format. You directly add a named Maven publication the project's publishing.publications container by providing MavenPublication as the type.
publishing { publications { myPublicationName(MavenPublication) { // Configure the publication here } } }
 
publishing { publications { maven(MavenPublication) { groupId = "${group}" artifactId = "${rootProject.name}" version = "${version}" from components.java } } repositories { maven { url = uri("${buildDir}/publishing-repository") } } }
 
./gradlew :publish ./gradlew :publishmavenPublicationToMavenLocal