Hi,

Please reply directly as I'm not subscribed; thanks.

I've read a hundred web postings and I'm still stuck. I just established an ftp repository and can't access it.

My pom includes:
  <build>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ftp</artifactId>
      </extension>
    </extensions>

And later:
  <dependencies>
    <dependency>
      <groupId>com.mysql.clusterj</groupId>
      <artifactId>clusterj-api</artifactId>
      <version>7.1.3</version>
      <scope>compile</scope>
    </dependency>

I put this into my settings.xml:
      <profile>
        <id>mysql-repo</id>
<activation><activeByDefault>true</activeByDefault></ activation>
        <repositories>
          <repository>
            <id>MySQL FTP</id>
            <url>ftp://ftp.mysql.com/pub/mysql/maven-repo</url>
          </repository>
        </repositories>
      </profile>

From the above, I downloaded the wagon-ftp which I guess is still in beta release:

repository metadata for: 'artifact org.apache.maven.wagon:wagon-ftp' could not be retrieved from repository: MySQL FTP due to an error: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
[INFO] Repository 'MySQL FTP' will be blacklisted
[INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-beta-6/wagon-ftp-1.0-beta-6.pom

Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-providers/1.0-beta-6/wagon-providers-1.0-beta-6.pom

Downloading: 
http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0.pom

Downloading: 
http://repo1.maven.org/maven2/commons-net/commons-net/2.0/commons-net-2.0.jar
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ftp/1.0-beta-6/wagon-ftp-1.0-beta-6.jar

But after downloading wagon-ftp and its dependency it still fails.

So I copied the two jars to ~/.m2/lib and it still fails.

clr% ls -l ~/.m2/lib
total 16
lrwxr-xr-x 1 clr staff 61 Apr 15 14:49 commons-net-2.0.jar -> ../ repository/commons-net/commons-net/2.0/commons-net-2.0.jar lrwxr-xr-x 1 clr staff 82 Apr 15 14:47 wagon-ftp-1.0-beta-6.jar - > ../repository/org/apache/maven/wagon/wagon-ftp/1.0-beta-6/wagon- ftp-1.0-beta-6.jar

clr% mvn install
[INFO] Scanning for projects...
[INFO] artifact org.apache.maven.wagon:wagon-ftp: checking for updates from MySQL FTP [WARNING] repository metadata for: 'artifact org.apache.maven.wagon:wagon-ftp' could not be retrieved from repository: MySQL FTP due to an error: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
[INFO] Repository 'MySQL FTP' will be blacklisted
[INFO] ------------------------------------------------------------------------
[INFO] Building ClusterJ Core
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/com/mysql/clusterj/clusterj-api/7.1.3/clusterj-api-7.1.3.pom
[INFO] Unable to find resource 'com.mysql.clusterj:clusterj-api:pom: 7.1.3' in repository central (http://repo1.maven.org/maven2)
Downloading: 
http://repo1.maven.org/maven2/com/mysql/clusterj/clusterj-api/7.1.3/clusterj-api-7.1.3.jar
[INFO] Unable to find resource 'com.mysql.clusterj:clusterj-api:jar: 7.1.3' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

So I took out the extensions from the build to avoid blacklisting my MySQL FTP repository and still get this:

clr% mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ClusterJ Core
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------ [WARNING] Unable to get resource 'com.mysql.clusterj:clusterj-api:pom: 7.1.3' from repository MySQL FTP (ftp://ftp.mysql.com/pub/mysql/maven-repo ): Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
Downloading: 
http://repo1.maven.org/maven2/com/mysql/clusterj/clusterj-api/7.1.3/clusterj-api-7.1.3.pom
[INFO] Unable to find resource 'com.mysql.clusterj:clusterj-api:pom: 7.1.3' in repository central (http://repo1.maven.org/maven2) [WARNING] Unable to get resource 'com.mysql.clusterj:clusterj-api:jar: 7.1.3' from repository MySQL FTP (ftp://ftp.mysql.com/pub/mysql/maven-repo ): Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
Downloading: 
http://repo1.maven.org/maven2/com/mysql/clusterj/clusterj-api/7.1.3/clusterj-api-7.1.3.jar
[INFO] Unable to find resource 'com.mysql.clusterj:clusterj-api:jar: 7.1.3' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

So two questions:

1. Is ftp support for repositories planned to be a standard feature (no special wagons needed) at some point? I really don't want to have to explain to every user out there how to configure an ftp wagon.

2. What did I do wrong?

Thanks,

Craig

Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to