RE: [M2] Manual installation of plugins

2005-10-27 Thread Jörg Schaible
Eric Parpal wrote on Thursday, October 27, 2005 7:11 PM:

>> Are these two networks completly separated or is it possible to
>> reach the one machine, that has an internet connection? If so, you
>> can install there the Maven-proxy. 
>> 
> Unfortunately, there is the Internet network and there is a
> secured network.
> No way to connect them, even for a minute ...

:-/

> So, I would like to install manually all the necessaries
> files but I don't
> know exactly what files are missing 

this is the problem. The brain-dead way is to make a mirror of ibiblio/maven2 
available in your secured net, but this means really *a lot* of data. Otherwise 
you're stuck to a tedious trial and error.

>and where to copy them. :-(

Just use a local repository. Either configure it in the user's settings.xml or 
in the master POM of your projects.

- Jörg

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



[M2] Manual installation of plugins

2005-10-27 Thread Eric Parpal


Are these two networks completly separated or is it possible to reach the 
one machine, that has an internet connection? If so, you can install there 
the Maven-proxy.


Unfortunately, there is the Internet network and there is a secured network. 
No way to connect them, even for a minute ...
So, I would like to install manually all the necessaries files but I don't 
know exactly what files are missing and where to copy them. :-(


_
Une chance par jour de gagner un voyage au soleil avec Magic Search ! 
http://www.magicsearch.fr



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



RE: [M2] Manual installation of plugins

2005-10-27 Thread Jörg Schaible
Eric Parpal wrote on Thursday, October 27, 2005 5:34 PM:

> Hello,
> I installed Maven2 on a protected network not connected to
> Internet. On the other side, I installed Maven2 on a machine
> connected to the internet network in the aim to download
> automatically all the 
> necessaries files (and
> then to transfer them to the other network).

Are these two networks completly separated or is it possible to reach the one 
machine, that has an internet connection? If so, you can install there the 
Maven-proxy.

[snip]

- Jörg

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



[M2] Manual installation of plugins

2005-10-27 Thread Eric Parpal

Hello,
I installed Maven2 on a protected network not connected to Internet.
On the other side, I installed Maven2 on a machine connected to the internet 
network in the aim to download automatically all the necessaries files (and 
then to transfer them to the other network).
I get an error message (see below) when I launch the following command 
(taken from the Getting Started Guide) :

mvn archetype:create -DgroupId=com.dcn.app -DartifactId=my-app
I get the same error trying with more options (I saw these options in some 
mails of the maven archive users list) :
mvn -e archetype:create -DgroupId=com.dcn.app -DartifactId=my-app 
-DarchetypeGroupId=org.apache.maven.archetypes 
-DarchetypeArtifactId=maven-archetype-site -DarchetypeVersion=1.0-alpha-2


Here is the output :

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exist or no valid version could be found
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid 
version could be found
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1124)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1356)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:376)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)

   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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: 
The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist 
or no valid version could be found
   at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
   at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095)

   ... 14 more
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Thu Oct 27 15:49:15 CEST 2005
[INFO] Final Memory: 1M/2M
[INFO] 



I precise that I tried with a proxy configuration in ~/.m2/settings.xml and 
I also tried with the -Dmaven.proxy.host and -Dmaven.proxy.port options but 
I always get the same result.


So please, here are my questions :
Did I miss something ?
As a workaround, what are the required files and how to manually installed 
them ? That is :

do I have to download
http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-1/maven-archetype-plugin-1.0-alpha-1.jar
OR  
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-site/1.0-alpha-2/maven-archetype-site-1.0-alpha-2.jar

OR both ? (in fact, what is the difference ?)
and where do I have to copy this (or these) files ?
Thank you for your help.
Eric

_
Tout savoir sur la sécurité de vos enfants sur Internet ! 
http://go.msn.fr/10-channel/80-security/protection/default.asp



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