lundi 21 février 2011

deploiement d'un fichier

Pour déployer un fichier sur archiva :

mvn deploy:deploy-file -Dfile=gwt-servlet.jar -DgroupId=com.google.gwt -DartifactId= -Dversion=1.3.0 -Dpackaging=jar -DrepositoryId=archiva.internal -Durl=http://archiva/repository/internal -DgeneratePom=true

Attention a bien fournir le proxy correct (https) et a fournir le user Id

 <proxies>
     <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http https</protocol>
      <host>proxy.mdp</host>
      <port>3128</port>
      <nonProxyHosts>vmjirarh01|archiva</nonProxyHosts>
    </proxy>
  </proxies>


 <server>
      <id>archiva.internal</id>
      <username>upload</username>
      <password>ftj0bs-09</password>
    </server>
    <server>
      <id>archiva.snapshots</id>
      <username>upload</username>
      <password>ftj0bs-09</password>
    </server>

Aucun commentaire: