Please add following block in your maven settings.xml:
<servers>
<server>
<id>scm-server</id>
<username>YOUR_USER_NAME</username>
<password>YOUR_ENCRYPTED_PASSWORD</password>
</server>
</servers>
<servers>
<server>
<id>scm-server</id>
<username>YOUR_USER_NAME</username>
<password>YOUR_ENCRYPTED_PASSWORD</password>
</server>
</servers>
Please note the released project pom doesn't contain SNAPSHOT dependencies.
To use it locally,1. mvn release:clean
2. mvn release:prepare
3. mvn release:perform
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<connectionType>connection</connectionType>
<goals>deploy</goals>
<autoversionsubmodules>true</autoversionsubmodules>
</configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
<configuration>
<pomFileName>com.td.dpu.common/pom.xml</pomFileName>
</configuration>
</execution>
</executions>
</plugin>
No comments:
Post a Comment