Dear

what is your maven2 version and ftp plugin version?
for example:

<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";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>hactlmain</groupId>
  <artifactId>scmtest</artifactId>
  <packaging>jar</packaging>
  <version>4.1</version>
  <name>Hactl Main Maven Quick Start Archetype</name>
  <url>http://www.hactl.com</url>
  <inceptionYear>2005</inceptionYear>
  <developers>
    <developer>
      <name>clark</name>
      <email>[EMAIL PROTECTED]</email>
      <roles><role>SA</role></roles>
    </developer>
  </developers>
  <scm>
    <connection></connection>
    <!
--<connection>scm:cvs:pserver:clark:[EMAIL 
PROTECTED]:2402/src/project/m-business_landside_20050810/bcf</connection>
-->
    <developerConnection></developerConnection>
    <!
--<developerConnection>scm:cvs:pserver:[EMAIL 
PROTECTED]:2402:/src/project/m-business_landside_20050810/bcf</developerConnection>
-->
    <tag>HEAD</tag>
    <url description="vist cvs
url">http://192.168.10.18/cgi-bin/viewcvs.cgi/</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <type>jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>maven</groupId>
      <artifactId>maven-j2ee-plugin</artifactId>
      <version>1.4</version>
      <type>jar</type>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src/java</sourceDirectory>
    <!--<sourceDirectory>${gssd.src.directory}</sourceDirectory>-->
    <outputDirectory>target</outputDirectory>

       <extensions>
          <extension>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ftp</artifactId>
            <version>1.0-alpha-5</version>
          </extension>
        </extensions>

    <defaultGoal>compile</defaultGoal>
    <resources>
     <resource>
       <directory>src/resources</directory>
       <filtering>true</filtering>
     </resource>
   </resources>
    <filters>
     <filter>conf/env.properties</filter>
    </filters>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <version>1.0-alpha-2</version>
        <executions>
          <execution>
            <id>scm</id>
            <phase>validate</phase>
            <goals>
               <goal>checkout</goal>
            </goals>
            <inherited>true</inherited>
            <configuration>
               <debug>true></debug>
               <password>clark</password>
               <excludes>*.class</excludes>
               <includes>*.java</includes>
               <workingDirectory>cvsout</workingDirectory>
               <username>clark</username>

<connectionUrl>scm:cvs:pserver:clark:[EMAIL 
PROTECTED]:2402/src/project:m-business_landside_20050810/bcf/</connectionUrl>
              </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
           <id>clean2</id>
            <phase>validate</phase>
            <goals>
              <goal>clean</goal>
            </goals>
            <configuration>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>andel</id>
            <phase>deploy</phase>
            <configuration>
              <tasks>
               <dir>cmd/login.bat</dir>
               <!--<exec dir="cmd" executable="login.bat" failonerror
="true"></exec>-->
              </tasks>
            </configuration>
            <goals>
            <!--  <goal>run</goal>-->
            </goals>
          </execution>
        </executions>
      </plugin>

  </plugins>
</build>


  <distributionManagement>
     <!--<repository>
        <id>distributeres</id>
        <name>distribution repository</name>
        <url>${settings.localRepository}</url>
     </repository>
      <snapshotRepository>
        <id>distributeres</id>
        <name>distribution repository</name>
        <url>file:///d:/test/distres</url>
     </snapshotRepository>-->
      <repository>
           <id>ftp-repository</id>
           <!--<url>file:///f:/test/scmtest/cvsout/</url>--> <!--ok-->
            <url>ftp://172.19.100.41/</url>
            <!--<url>file:///\\gslsvr01\TRAINING</url>-->

      </repository>

  </distributionManagement>
</project>






thanks.
Tel: (020)36315358-328 Fax: (020)36315170


                                                                                
                                                       
                      "Antonio                                                  
                                                       
                      PAROLINI"                To:       
<users@maven.apache.org>                                                      
                      <Antonio.Parolini        cc:                              
                                                       
                      @hcuge.ch>               Subject:  [m2] deploy with ftp   
                                                       
                                                                                
                                                       
                      16/11/2005 22:05                                          
                                                       
                      Please respond to                                         
                                                       
                      "Maven Users                                              
                                                       
                      List"                                                     
                                                       
                                                                                
                                                       
                                                                                
                                                       




Hello,

Trying to deploy my own m2 plugin using the ftp wagon. It's close to
work, since it put some files (jar, md5 and sha1) but not the pom, and
then I get this:

Thanks for your help

Antonio

[...]
Uploading:
ftp://gandalf/home/Borland/besadm/httpd/root/m2/jade/jade-war-plugin/2.0-beta-3-Jade/jade-war-plugin-2.0-beta-3-Jade.jar


38K uploaded
[INFO] Retrieving previous metadata from ftp-repository
[INFO]
----------------------------------------------------------------------------

[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------

[INFO] null
[INFO]
----------------------------------------------------------------------------

[INFO] Trace
java.lang.NullPointerException
        at
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.java:326)

        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:367)

        at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)

        at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:334)

        at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:379)

        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:83)

        at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
        at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
----------------------------------------------------------------------------

[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Nov 16 15:04:33 CET 2005
[INFO] Final Memory: 5M/10M
[INFO]
----------------------------------------------------------------------------



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



Hactl..........Moving forward with you.

Best Air Cargo Terminal - Asia 2005
Air Cargo Terminal of the Year 2002, 2003 & 2004

Web: http://www.hactl.com

DISCLAIMER :-
The information contained in this message, including any attachment, is
confidential and may also be privileged. The information is intended only
for the person or entity to which it is addressed. Any review,
re-transmission, copying, storage, distribution or other use or disclosure
of this information by persons or entities other than the intended
recipient is prohibited. If you are not the intended recipient, please
contact the sender immediately by return email and delete this message from
your system. Thank you.




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to