jira-importer commented on issue #265:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/265#issuecomment-2771520136

   **[Richard 
Gomes](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rgomes1997)**
 commented
   
   You can see my pom.xml at
   https://jquant.svn.sourceforge.net/svnroot/jquant/trunk/jquantlib/pom.xml
   
   Near the beginning I explain that release managers and Continuum need to use 
Maven 2.1.0-M1 otherwise the deployiment does not work. Other developers dont 
need to deploy anything, so they are OK with Maven 2.0.9.
   
   Explaining these details to you I've got the solution:
   
   I have a profile called 'manager' which requires Maven 2.1.0-M1 and defines 
the correct versions for plugins, like this:
   
   \<profile>
        \<id>[role=manager]\</id>
        \<activation>
                \<property>
                        \<name>role\</name>
                        \<value>manager\</value>
                \</property>
        \</activation>
        \<properties>
                \<maven.required.version>2.1.0-M1\</maven.required.version>
                
\<extension.wagon-ftp.version>1.0-beta-5-SNAPSHOT\</extension.wagon-ftp.version>
                
\<extension.wagon-ssh.version>1.0-beta-4\</extension.wagon-ssh.version>
                
\<extension.wagon-file.version>1.0-beta-4\</extension.wagon-file.version>
                
\<extension.wagon-ftp.urlbase>ftp://ftp.jquantlib.org\</extension.wagon-ftp.urlbase>
                
\<extension.wagon-ssh.urlbase>sftp://ftp.jquantlib.org/srv/users/continuum\</extension.wagon-ssh.urlbase>
                
\<extension.wagon-file.urlbase>file://target\</extension.wagon-file.urlbase>
        \</properties>
   \</profile>
   
   Then I tried again and requested the profile I need (-Drole=manager), like 
this:
   
   mvn --update-plugins deploy:deploy-file -DpomFile=joda-primitives-0.6.pom 
-Durl=sftp://ftp.jquantlib.org/maven2/repos/external_free 
-DrepositoryId=jquantlib-external_free -Dfile=lib/joda-primitives-0.6.jar -X -e 
> mvn-deploy.txt -Drole=manager
   
   but oddly it istill picking up the wrong version of the plugin. Please see 
attached file mvn-deploy-2.txt, cos I'm not plenty sure.
   I also tried to upgrade to 1.0-beta-5 but without any better result :(
   
   Thanks
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to