settings.xml

<servers>
  <server>  
    <id>thirdparty</id>  
    <username>admin</username>  
    <password>admin</password>  
  </server>
</servers>

<profile>  
      <id>nexus</id>  
      <repositories>  
        <repository>  
            <id>nexus</id>  
            <name>local private nexus</name>  
            <url>http://xxxx:8081/nexus/content/groups/public/</url>  
            <releases><enabled>true</enabled></releases>  
            <snapshots><enabled>false</enabled></snapshots>  
        </repository>  
        <repository>  
            <id>nexus-snapshots</id>  
            <name>local private nexus</name>  
            <url>http://xxxx:8081/nexus/content/groups/public-snapshots/</url>  
            <releases><enabled>false</enabled></releases>  
            <snapshots><enabled>true</enabled></snapshots>  
        </repository>  
      </repositories>  
      <pluginRepositories>  
        <pluginRepository>  
            <id>nexus</id>  
            <name>local private nexus</name>  
            <url>http://xxxx:8081/nexus/content/groups/public/</url>  
            <releases><enabled>true</enabled></releases>  
            <snapshots><enabled>false</enabled></snapshots>  
        </pluginRepository>  
        <pluginRepository>  
            <id>nexus-snapshots</id>  
            <name>local private nexus</name>  
            <url>http://xxxx:8081/nexus/content/groups/public-snapshots/</url>  
            <releases><enabled>false</enabled></releases>  
            <snapshots><enabled>true</enabled></snapshots>  
        </pluginRepository>  
       </pluginRepositories>  
    </profile> 

<activeProfiles>
    <activeProfile>nexus</activeProfile>
  </activeProfiles> 

deploy

mvn deploy:deploy-file \
-DgroupId=com.xixicat \
-DartifactId=ojdbc14 \
-Dversion=10.2.0.4.0 \
-Dpackaging=jar \
-Dfile=/Users/xixicat/ojdbc14.jar \
-Durl=http://localhost:9090/nexus-2.2-01/content/repositories/thirdparty/ \
-DrepositoryId=thirdparty

codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...


引用和评论

0 条评论