Re: ssh pluginRepository not recognized by maven 3.0.4

2012-07-13 Thread Jason van Zyl
https://github.com/jvanzyl/maven-recipes/tree/master/deploy-with-scp-extension

On Jul 13, 2012, at 12:11 PM, Thanos Kyritsis wrote:

> Hello,
> 
> I am trying to migrate from maven 2.2.1 to maven 3.0.4. My configuration 
> involves a private ssh/scp server acting both as a repository and a 
> pluginRepository. The problem is that maven 3 cannot recognize the 
> pluginRepository properly, it fails with the following combination of warning 
> and errors:
> 
> [WARNING] Could not transfer metadata my-group/maven-metadata.xml from/to 
> myrepop (scpexe://myhost): No connector available to access repository 
> altsolp (scpexe://myhost) of type default using the available factories 
> WagonRepositoryConnectorFactory
> 
> [ERROR] No plugin found for prefix 'myrepop' in the current project and in 
> the plugin groups [my-group, org.apache.maven.plugins, org.codehaus.mojo] 
> available from the repositories [local (~/.m2/repository), myrepop 
> (scpexe://myhost), central (http://repo.maven.apache.org/maven2)]
> 
> I also tried using the fullpath:
> mvn my-group:my-plugin:my-version:myTarget
> 
> Then the warning doesn't show up, just the following error (which is the same 
> problem description in other words):
> 
> [ERROR] Plugin my-group:my-plugin:my-version or one of its dependencies could 
> not be resolved: Failed to read artifact descriptor for 
> my-group:my-plugin:my-version: Could not transfer artifact 
> my-group:my-plugin:my-version from/to myrepop (scpexe://myhost): No connector 
> available to access repository myrepop (scpexe://myhost) of type default 
> using the available factories WagonRepositoryConnectorFactory -> [Help 1]
> 
> It seems impossible to convince Maven 3 to operate the pluginRepository 
> server using wagon-ssh-external. If I switch it to http://, it works like a 
> charm, but I prefer to access it using ssh.
> 
> Using scpexe://myhost as a maven repo works ok for Maven 3. Maven 2 also 
> works with the same configuration for both repo and pluginRepo.
> 
> Does anyone have a clue ? Is it somehow possible to use ssh 
> pluginRepositories ?
> Thanks in advance for your help.
> 
> 
> My settings.xml includes:
> 
> 
>my.package
> 
> 
> 
>
>  myrepo
>  me
>  
>ssh
>scp
>  
>
>
>  myrepop
>  me
>  
>ssh
>scp
>  
>
> 
> 
> 
> 
>  
>
>  myrepo
>  myrepo
>  scpexe://myhost
>
>  
> 
>  
>
>  myrepop
>  myrepop
>  scpexe://myhost
>
>  
> 
> 
> My project's pom.xml includes:
> 
> 
> 
>
>
> org.apache.maven.wagon
> wagon-ssh-external
>2.2 
>
>
> 
> 
>  
>my.package
>my-plugin
>my-version
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

Thanks,

Jason

--
Jason van Zyl
Founder & CTO, Sonatype
Founder,  Apache Maven
http://twitter.com/jvanzyl
-

First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.

  -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)







Re: ssh pluginRepository not recognized by maven 3.0.4

2012-07-13 Thread Stephen Connolly
the default wagons in Maven 3.0 were trimmed. you will need to add the
appropriate wagon as a build extension

On 13 July 2012 17:11, Thanos Kyritsis  wrote:

> Hello,
>
> I am trying to migrate from maven 2.2.1 to maven 3.0.4. My configuration
> involves a private ssh/scp server acting both as a repository and a
> pluginRepository. The problem is that maven 3 cannot recognize the
> pluginRepository properly, it fails with the following combination of
> warning and errors:
>
> [WARNING] Could not transfer metadata my-group/maven-metadata.xml from/to
> myrepop (scpexe://myhost): No connector available to access repository
> altsolp (scpexe://myhost) of type default using the available factories
> WagonRepositoryConnectorFactor**y
>
> [ERROR] No plugin found for prefix 'myrepop' in the current project and in
> the plugin groups [my-group, org.apache.maven.plugins, org.codehaus.mojo]
> available from the repositories [local (~/.m2/repository), myrepop
> (scpexe://myhost), central 
> (http://repo.maven.apache.org/**maven2
> )]
>
> I also tried using the fullpath:
> mvn my-group:my-plugin:my-version:**myTarget
>
> Then the warning doesn't show up, just the following error (which is the
> same problem description in other words):
>
> [ERROR] Plugin my-group:my-plugin:my-version or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> my-group:my-plugin:my-version: Could not transfer artifact
> my-group:my-plugin:my-version from/to myrepop (scpexe://myhost): No
> connector available to access repository myrepop (scpexe://myhost) of type
> default using the available factories WagonRepositoryConnectorFactor**y
> -> [Help 1]
>
> It seems impossible to convince Maven 3 to operate the pluginRepository
> server using wagon-ssh-external. If I switch it to http://, it works like
> a charm, but I prefer to access it using ssh.
>
> Using scpexe://myhost as a maven repo works ok for Maven 3. Maven 2 also
> works with the same configuration for both repo and pluginRepo.
>
> Does anyone have a clue ? Is it somehow possible to use ssh
> pluginRepositories ?
> Thanks in advance for your help.
>
>
> My settings.xml includes:
>
> 
> my.package
> 
>
> 
> 
>   myrepo
>   me
>   
> ssh
> scp
>   
> 
> 
>   myrepop
>   me
>   
> ssh
> scp
>   
> 
> 
>
> 
>
>   
> 
>   myrepo
>   myrepo
>   scpexe://myhost
> 
>   
>
>   
> 
>   myrepop
>   myrepop
>   scpexe://myhost
> 
>   
>
>
> My project's pom.xml includes:
>
>
> 
> 
> 
> org.apache.maven.**wagon
> wagon-ssh-**external
> 2.2 
> 
> 
>
> 
>   
> my.package
> my-plugin
> my-version
> 
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@maven.**apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


ssh pluginRepository not recognized by maven 3.0.4

2012-07-13 Thread Thanos Kyritsis

Hello,

I am trying to migrate from maven 2.2.1 to maven 3.0.4. My configuration 
involves a private ssh/scp server acting both as a repository and a 
pluginRepository. The problem is that maven 3 cannot recognize the 
pluginRepository properly, it fails with the following combination of 
warning and errors:


[WARNING] Could not transfer metadata my-group/maven-metadata.xml 
from/to myrepop (scpexe://myhost): No connector available to access 
repository altsolp (scpexe://myhost) of type default using the available 
factories WagonRepositoryConnectorFactory


[ERROR] No plugin found for prefix 'myrepop' in the current project and 
in the plugin groups [my-group, org.apache.maven.plugins, 
org.codehaus.mojo] available from the repositories [local 
(~/.m2/repository), myrepop (scpexe://myhost), central 
(http://repo.maven.apache.org/maven2)]


I also tried using the fullpath:
mvn my-group:my-plugin:my-version:myTarget

Then the warning doesn't show up, just the following error (which is the 
same problem description in other words):


[ERROR] Plugin my-group:my-plugin:my-version or one of its dependencies 
could not be resolved: Failed to read artifact descriptor for 
my-group:my-plugin:my-version: Could not transfer artifact 
my-group:my-plugin:my-version from/to myrepop (scpexe://myhost): No 
connector available to access repository myrepop (scpexe://myhost) of 
type default using the available factories 
WagonRepositoryConnectorFactory -> [Help 1]


It seems impossible to convince Maven 3 to operate the pluginRepository 
server using wagon-ssh-external. If I switch it to http://, it works 
like a charm, but I prefer to access it using ssh.


Using scpexe://myhost as a maven repo works ok for Maven 3. Maven 2 also 
works with the same configuration for both repo and pluginRepo.


Does anyone have a clue ? Is it somehow possible to use ssh 
pluginRepositories ?

Thanks in advance for your help.


My settings.xml includes:


my.package




  myrepo
  me
  
ssh
scp
  


  myrepop
  me
  
ssh
scp
  





  

  myrepo
  myrepo
  scpexe://myhost

  

  

  myrepop
  myrepop
  scpexe://myhost

  


My project's pom.xml includes:





org.apache.maven.wagon
wagon-ssh-external
2.2 





  
my.package
my-plugin
my-version



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org