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>
</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>
<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.