버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
titlesettings.xml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<settings   xmlns="http://maven.apache.org/SETTINGS/1.0.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <mirrors>
    <mirror>
      <id>maven-spring-public</id>
      <name>maven-spring-public</name>
      <url>http://192.168.33.10:8089[maven repository url]:[maven repository port]/repository/spring-central/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>

...

코드 블럭
titlesettings.xml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<settings   xmlns="http://maven.apache.org/SETTINGS/1.0.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
			
	<mirrors>
		<mirror>
		  <id>maven-public</id>
		  <name>maven-public</name>
		  <url>http://192.168.33.10:8089[maven repository url]:[maven repository port]/repository/maven-public/</url>
		  <mirrorOf>central</mirrorOf>
		</mirror>
	</mirrors>

	<!-- pom.xml의 snapshotRepository id와 Nexus username 및 password를 입력해줍니다. -->
	<servers>
	   <server>
		  <id>nexus-snapshots</id>
		  <username>admin</username>
		  <password>****</password>
	   </server>
	</servers>

</settings>

...

코드 블럭
titlepom.xml
... 생략

	<build>
        <plugins>
            ... 생략
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>${maven-deploy-plugin.version}</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.5.1</version>
                <executions>
                    <execution>
                        <id>default-deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <serverId>nexus</serverId>
                    <nexusUrl>http://192.168.33.10:8089[maven repository url]:[maven repository port]/repository/maven-snapshots/</nexusUrl>
                    <skipStaging>true</skipStaging>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <distributionManagement>
        <snapshotRepository>
            <id>nexus-snapshots</id>
            <url>http://192.168.33.10:8089[maven repository url]:[maven repository port]/repository/maven-snapshots/</url>
        </snapshotRepository>
    </distributionManagement>

... 생략

...