mvn clean deploy -Dmaven.test.skip=true

https://www.baeldung.com/maven-deploy-nexus

https://www.lesstif.com/java/maven-deploy-plugin-8912900.html


https://joochang.tistory.com/109


https://devocean.sk.com/blog/techBoardDetail.do?ID=163425

    <distributionManagement>
        <repository>
            <id>release</id>
            <name>nexus repository</name>
            <url>${repository.server}/repository/maven-release</url>
        </repository>
        <snapshotRepository>
            <id>snapshot</id>
            <name>Public Repository(snapshot)</name>
            <url>${repository.server}/repository/maven-snapshots</url>
            <uniqueVersion>true</uniqueVersion>
        </snapshotRepository>
    </distributionManagement>

version에 -SNAPSHOT이 붙으면 <snapshotRepository>에 deploy
version에 -RELEASE가 붙거나 없으면 <repository>에 deploy

groupId, artifactId를 환경별로 다르게 줄 수도 있음


- snapshot timestamp
https://www.baeldung.com/maven-snapshot-release-repository





Posted by 張's blog
,