Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] wagon-maven-plugin not finding sesttings.xml password

I have the following configuration in the pom.

 

          <plugin>

          <groupId>org.codehaus.mojo</groupId>

          <artifactId>wagon-maven-plugin</artifactId>

          <version>1.0-beta-3</version>

          <configuration>

            <serverId>projectname</serverId>

            <fromFile>${project.build.directory}/${project.build.finalName}.war</fromFile>         

            <url>ftp://ftp.projectname.com/</url> 

          </configuration>   

        </plugin>

 

        <extensions>

   

         <!-- Enabling the use of FTP -->

           <extension>

             <groupId>org.apache.maven.wagon</groupId>

             <artifactId>wagon-ftp</artifactId>

             <version>1.0-beta-6</version>

           </extension>

         </extensions>

 

and in the settings.xml in .m2

 

<settings>

  <servers>

    <server>

      <id>projectname</id>

      <username>nigel@xxxxxxxxxxxxxxx</username>

      <password>password</password>

    </server>

  </servers>

</settings>

 

 

On “Run as Maven builds.....” goals: wagon:upload-single I get the following error.

 

Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project projectname: Unable to create a Wagon instance for ftp://ftp.projectname.com/: Password not specified for repository projectname

 

Any help appreciated.


Back to the top