Hi everybody,
 
we have our internal repository on a public (=internet) server. The upload 
should work over FTP, "security" is sufficient for that. However, some people 
(like me) cannot ftp directly from the intranet to the internet but only 
through a FTP Gateway. The gateway works so, that you ftp to an internal 
server, and give [EMAIL PROTECTED] as username, and the normal password as the 
password.
 
How do I configure that? The POM should be the same for everybody
 
1) First I tried to configure a proxy with <protocol>ftp</protocol>, since the 
browser is apparently capable of ftp'ing without the gateway. but this didn't 
work out:
 

        [INFO] [deploy:deploy]
        [INFO] Retrieving previous build number from JSR264 internal
        [WARNING] repository metadata for: 'snapshot 
ossj.jsr264:oss_om_spec_jvt:0.9-SNAPSHOT' could not be
        retrieved from repository: JSR264 internal due to an error: 
Authentication failed: Could not connect
         to server.
        [INFO] Repository 'JSR264 internal' will be blacklisted
        [INFO] 
------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO] 
------------------------------------------------------------------------
        [INFO] Error deploying artifact: Authentication failed: Could not 
connect to server.
        No route to host: connect

 
2) Use a property in the pom for the distribution management:

        <distributionManagement>
          <repository>
            <id>JSR264 internal</id>
            <url>ftp://{$JSR264internal}/httpdocs</url>
          </repository>
          <snapshotRepository>
            <id>JSR264 internal</id>
            <url>ftp://{$JSR264internal}/httpdocs</url>
          </snapshotRepository>
        </distributionManagement>

But how do I change the settings accordingsly? The problem is that not only the 
server changes, but also the login credentials. The username to the gateway is 
[EMAIL PROTECTED], while for the direct connect the username is just the plain 
username. And in the settings.xml the servers section does not belong to 
profile. 
 
So, any ideas how I can do that? Your help is (again) very much appreciated!
 
Andreas Ebbert-Karroum 
  Senior Software Design Engineer - Nokia Networks Services / Middleware 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 


________________________________

This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia GmbH does not accept legal responsibility for the 
contents of this message as it has been transmitted over a public network. 
Thank you. 

Nokia GmbH, Nokia Networks is a German Company. Further information about the 
Company is available from its principal offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nokia.com/ 
________________________________


Reply via email to