Hello,

I am having trouble deploying to an internal remote repository using ftp 
with m2. I previously had it working using file:/// but so far haven't had 
much luck with ftp. I changed the url to ftp:/// and added a server 
section to my settings.xml for authentication. I also downloaded the 
wagon-ftp jar and added it to my maven2/lib folder. That seems to have 
worked a little because it changed the error I was getting.

Here's the output: (btw, the app I'm building is the sample I created from 
the maven site instructions)

E:\STC\mavenFull\mavenTest>m2 deploy
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [deploy]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 1 source file to E:\STC\mavenFull\mavenTest\target\classes
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
Compiling 1 source file to E:\STC\mavenFull\mavenTest\target\test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir: 
E:\STC\mavenFull\mavenTest\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[surefire] Running com.stchome.mavenTest.AppTest
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec

Results :
[surefire] Tests run: 1, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar: 
E:\STC\mavenFull\mavenTest\target\mavenTest-1.1-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing 
E:\STC\mavenFull\mavenTest\target\mavenTest-1.1-SNAPSHOT.jar to 
e:\stc\mavenRepo\com\stchome
\mavenTest\mavenTest\1.1-SNAPSHOT\mavenTest-1.1-SNAPSHOT.jar
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from STCRepo
-----------------------------------------------------
this realm = plexus.core.maven
urls[0] = file:/d:/STC/maven2/bin/../lib/commons-cli-1.0.jar
urls[1] = file:/d:/STC/maven2/bin/../lib/doxia-sink-api-1.0-alpha-4.jar
urls[2] = file:/d:/STC/maven2/bin/../lib/jline-0.9.1.jar
urls[3] = file:/d:/STC/maven2/bin/../lib/jsch-0.1.21.jar
urls[4] = file:/d:/STC/maven2/bin/../lib/maven-artifact-2.0-beta-2.jar
urls[5] = 
file:/d:/STC/maven2/bin/../lib/maven-artifact-manager-2.0-beta-2.jar
urls[6] = file:/d:/STC/maven2/bin/../lib/maven-core-2.0-beta-2.jar
urls[7] = file:/d:/STC/maven2/bin/../lib/maven-model-2.0-beta-2.jar
urls[8] = file:/d:/STC/maven2/bin/../lib/maven-monitor-2.0-beta-2.jar
urls[9] = file:/d:/STC/maven2/bin/../lib/maven-plugin-api-2.0-beta-2.jar
urls[10] = 
file:/d:/STC/maven2/bin/../lib/maven-plugin-descriptor-2.0-beta-2.jar
urls[11] = 
file:/d:/STC/maven2/bin/../lib/maven-plugin-registry-2.0-beta-2.jar
urls[12] = file:/d:/STC/maven2/bin/../lib/maven-profile-2.0-beta-2.jar
urls[13] = file:/d:/STC/maven2/bin/../lib/maven-project-2.0-beta-2.jar
urls[14] = 
file:/d:/STC/maven2/bin/../lib/maven-reporting-api-2.0-beta-2.jar
urls[15] = 
file:/d:/STC/maven2/bin/../lib/maven-repository-metadata-2.0-beta-2.jar
urls[16] = file:/d:/STC/maven2/bin/../lib/maven-settings-2.0-beta-2.jar
urls[17] = 
file:/d:/STC/maven2/bin/../lib/plexus-input-handler-1.0-alpha-2.jar
urls[18] = file:/d:/STC/maven2/bin/../lib/wagon-file-1.0-alpha-4.jar
urls[19] = file:/d:/STC/maven2/bin/../lib/wagon-ftp-1.0-alpha-3.jar
urls[20] = 
file:/d:/STC/maven2/bin/../lib/wagon-http-lightweight-1.0-alpha-4.jar
urls[21] = 
file:/d:/STC/maven2/bin/../lib/wagon-provider-api-1.0-alpha-4.jar
urls[22] = file:/d:/STC/maven2/bin/../lib/wagon-ssh-1.0-alpha-4.jar
Number of imports: 0


this realm = plexus.core
urls[0] = 
file:/d:/STC/maven2/bin/../core/plexus-container-default-1.0-alpha-6.jar
urls[1] = file:/d:/STC/maven2/bin/../core/plexus-utils-1.0.3.jar
Number of imports: 0
-----------------------------------------------------
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Diagnosis: Error deploying artifact
[INFO] 
----------------------------------------------------------------------------
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Oct 06 08:46:40 EDT 2005
[INFO] Final Memory: 3M/8M
[INFO] 
----------------------------------------------------------------------------


POM.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  <parent>
    <groupId>com.stchome</groupId>
    <artifactId>mavenFull</artifactId>
    <version>1.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.stchome.mavenTest</groupId>
  <artifactId>mavenTest</artifactId>
  <packaging>jar</packaging>
  <version>1.1-SNAPSHOT</version>
  <name>Maven Quick Start Archetype</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
  <id>STCRepo</id>
<url>ftp://sv1</url>
    </repository>
  </distributionManagement>
</project>

Settings:
<settings>
  <localRepository>e:/stc/mavenRepo</localRepository>
  <interactiveMode>true</interactiveMode>
  <offline>false</offline>
  <proxies>
  </proxies>

  <servers>
    <server>
      <id>STCRepo</id>
      <username>user</username>
      <password>pass</password>
    </server>

  </servers>

  <mirrors>

    <mirror>
      <id>Cordella-STCRepo</id>
      <mirrorOf>STCRepo</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://cordella:9999/repository</url>
    </mirror>
    <mirror>
      <id>Cordella-Central</id>
      <mirrorOf>central</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://cordella:9999/repository</url>
    </mirror>
  </mirrors>

<profiles>
 <profile>
  <id>default</id>
<repositories>
   <repository>
    <id>STCRepo</id>
<url>ftp://sv1</url>
   </repository>
</repositories>
 </profile>
</profiles>

<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>


</settings>


I'm not sure what to look at next because the output isn't really telling 
me about an error, just apparently the classpath. Also, I am confused why 
I need to put jars into my lib folder manually...it seems like maven wants 
to download plugins automatically, why is the ftp one different? 

TIA,
Brian





Reply via email to