How to deploy in nexus (supported by security)?

As recommended in the previous SO answer , I run the VmWare secureci image as a preconfigured development infrastructure containing maven, nexus, hudson, svn.

Now I want to configure maven on my Windows XP computer to deploy my artifacts to nexus. But when I configure my pom.xml like this (taken from Deploying artifacts in Nexus ):

<distributionManagement>
    <!-- use the following if you're not using a snapshot version. -->
    <repository>
        <id>nexus</id>
        <name>RepositoryProxy</name>
        <url>scp://192.168.0.197/nexus/content/repositories/releases</url>
    </repository>
    <!-- use the following if you ARE using a snapshot version. -->
    <snapshotRepository>
        <id>nexus</id>
        <name>RepositoryProxy</name>
        <url>scp://192.168.0.197/nexus/content/repositories/snapshots</url>
    </snapshotRepository>
</distributionManagement>

... mvn deploydisplays an error message:

Error deploying artifact: Exit code: 1 - 
    mkdir: cannot create directory `/nexus': Permission denied

In settings.xmlI configured the username and password as follows:

<servers>
  <server>
    <id>nexus</id>
    <username>tangens</username>
    <password>********</password>
  </server>
</servers>

Question: What configuration should I use for deployment in nexus?


https scp, maven .

http scp, secureci , 80 (http), -.

EDIT:

, nexus /root/sonatype-work/nexus/storage/snapshots/. settings.xml.

EDIT:

Q: Nexus?

, .

Q: Nexus 80?

80 apache. Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/1.3 Python/2.5.2

Q: HTTP, HTTP- IP- ?

, SecureCI , . , , .

+5
2

: tangens /nexus . , scp , . tangens sshd, root, .

, , scp - Nexus. scp, Nexus , . Nexus 9.4.2. POM: Nexus, HTTP PUT. , distributionManagement :

  <distributionManagement>
    ...
    <repository>
      <id>releases</id>
      <name>Internal Releases</name>
      <url>http://localhost:8081/nexus/content/repositories/releases</url>
    </repository>
    ...
  </distributionManagement>

, , SecureCI , 80. , SecureCI , ( , ) :

  • Nexus?
  • Nexus 80?
  • HTTP, HTTP- IP- ?

EDIT:. OP, , HTTPS "" SecureCI. HTTPS, CA SecureCI ( ) JDK. . , :

  • SecureCI ( )?

, , .

+12

. .

, : Maven HTTP- 80 ( ).

HTTP- . /trac/secureci/wiki/HowTo/EnableHttp SecureCI ( " HowTo ", " HTTP-?" ).

/etc/apache 2/ssl/.

, ( ) SecureCI at/trac/secureci/wiki/HowTo/InstallSslCert ( SSL?). .

+1

All Articles