What 2.0.5? That's something like 2 years old. Better off starting with 2.0.9

-----Original Message-----
From: rohan chauhan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 01, 2008 11:46 AM
To: Maven Users List
Subject: Re: urgent plz help me.. this error stop my entire poject. a common 
error but no solution working.

can u tell me what are the things i needed to setup maven?
i download  maven 2.0.5
unzip it in apache software foundation in folder maven-2.0.5
n change settings.xml as bellow mention.
n i found it is going to read there in xml file. 
but still showing same error.

do i need to configure some other place or file. 
i just did this things only.

M2_HOME=C:\Program Files\Apache Software Foundation\maven-2.0.5
M2_REPO=C:\Documents and Settings\user1\.m2\repository

CONTENT OF SETTINGS.XML in conf directory
<settings>
    <offline>false</offline>
  <proxies>
  <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <host>10.10.136.103</host>
  <port>8080</port>
    <username>solusoftindia\rchauhan</username>
      <password>AAABBBCCC</password>
  </proxy>
  </proxies>
</settings>

i'm then running bellow command and found this error

C:\Temp>mvn -e archetype:create -DgroupId=testapp -DartifactId=testapp
+ 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 exi
st or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version could be
 found
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
        at 
org.apache.maven..lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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 p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val
id version could be found
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:228)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:161)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
        ... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Oct 01 21:05:07 IST 2008
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

what should i do? what other info u need to identify this error? 



 

________________________________
Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !

________________________________

________________________________
* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought

________________________________





----- Original Message ----
From: rohan chauhan <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Wednesday, 1 October, 2008 8:50:12 PM
Subject: Re: urgent plz help me.. this error stop my entire poject. a common 
error but no solution working.

hi

for ur 2nd point i just found that it is reading from settings.xml
i just reading one closing tag and it shows error in settings.xml

its content just change that its domain name \ user (i wrote b4 
domainname/username)

but it still shows me same error as bellow
C:\Temp>mvn -e archetype:create -DgroupId=testapp -DartifactId=testapp
+ 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 exi
st or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version could be
found
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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 p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val
id version could be found
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:228)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
        at 
org.apache.maven.plugin..DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:161)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
        ... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Oct 01 20:44:38 IST 2008
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

my content in settings.xml is

<settings>
    <offline>false</offline>
  <proxies>
  <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <host>10.10.136.103</host>
  <port>8080</port>
    <username>SOLUSOFTINDIA\rchauhan</username>
      <password>aaabbbccc</password>
  </proxy>
  </proxies>
</settings>

----- Original Message ----
From: Gabriel Garcia <[EMAIL PROTECTED]>
To: Maven Users List <[EMAIL PROTECTED]>
Sent: Wednesday, 1 October, 2008 8:27:03 PM
Subject: Re: urgent plz help me.. this error stop my entire poject. a common 
error but no solution working.

I can think of two other problems:

1. Proxy:
Maybe you're not authenticating properly? Can you check the logfile to
see if there's any activity when you run maven? One thought: your
username looks like [domain]/[user], if it's a Windows proxy, maybe it
should be [domain]\[user], but not sure about it.

2. Not reading settings.xml:
Try to use the -s option when you execute maven and force it to load
your settings..xml with your proxy settings.

I really don't think this is a problem with Maven at all, would you be
able to test this from a direct connection to the internet to rule
that out?

2008/10/1 rohan chauhan <[EMAIL PROTECTED]>:
> yes i'm able to access directory having content following.
>
>
>
>  mojo-archetypes/                 11-Feb-2008 03:20    -
>  nbm-archetype/                   13-Mar-2008 07:27    -
>  netbeans-platform-app-archetype/ 26-May-2008 02:28    -
>
>
> then i went to mojo-archetypes/ (first link)
> its having following
>
>  1/                                    11-Feb-2008 03:20    -
>  maven-metadata..xml                    11-Feb-2008 03:20  336
>  maven-metadata.xml.md5                11-Feb-2008 03:20   32
>  maven-metadata.xml.sha1               11-Feb-2008 03:20   40
>
>
> i'm able to access all file by my browser just having extension .xml (not 
> .md5, .sha1)
>
> but yes i can download by my browser all the files.
>
>
>
>
>
> ----- Original Message ----
> From: Gabriel Garcia <[EMAIL PROTECTED]>
> To: Maven Users List <[email protected]>
> Sent: Wednesday, 1 October, 2008 7:59:57 PM
> Subject: Re: urgent plz help me... this error stop my entire poject. a common 
> error but no solution working.
>
> I think you might have a problem accessing the Maven 2 repository:
> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
> retrieved from repository: central due to an error: Error transferring
> file
> [INFO] Repository 'central' will be blacklisted
>
> Can you open a browser and see if you can get to
> http://repo1.maven.org/maven2/org/codehaus/mojo/archetypes/? If so,
> can you navigate further (into the latest version of the archetype
> mojo) and try to download the artifacts manually?
>
> 2008/10/1 rohan chauhan <[EMAIL PROTECTED]>:
>> i'm using maven 2.0.5 for androMDA
>>
>> i follows all instruction they mention.
>>
>> I also set up settings.xml file in cong directory. which i just attached
>> here.
>> also i delete my .m2 directory. but this error still comes in my way.
>>
>> C:\Temp>mvn -e archetype:create -DgroupId=testapp -DartifactId=testapp
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO] org.codehaus.mojo: checking for updates from central
>> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
>> retrieved fr
>> om repository: central due to an error: Error transferring file
>> [INFO] Repository 'central' will be blacklisted
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache..maven.plugins:maven-archetype-plugin' does not
>> exi
>> st or no valid version could be found
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven..lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.m
>> aven.plugins:maven-archetype-plugin' does not exist or no valid version
>> could be
>>  found
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
>> ultLifecycleExecutor.java:1286)
>>         at
>> org..apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
>> (DefaultLifecycleExecutor.java:1522)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
>> AggregationNeeds(DefaultLifecycleExecutor.java:386)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:138)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven..java:330)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>>         at org.apache.maven..cli..MavenCli.main(MavenCli.java:272)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl..
>> java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         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 p
>> lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
>> val
>> id version could be found
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
>> uginVersion(DefaultPluginVersionManager.java:228)
>>         at
>> org.apache..maven.plugin.version.DefaultPluginVersionManager.resolvePl
>> uginVersion(DefaultPluginVersionManager.java:90)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
>> inManager.java:161)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
>> ultLifecycleExecutor.java:1257)
>>         ... 14 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 6 seconds
>> [INFO] Finished at: Wed Oct 01 19:30:32 IST 2008
>> [INFO] Final Memory: 1M/4M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> ________________________________
>> Do not follow where the path may lead. Go instead where there is no path and
>> leave a trail ! ! !
>> ________________________________
>> ________________________________
>> * Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
>> something outside of yourself to make you happy in the future..  Think how
>> really precious is the time you have to spend, whether it's at work or with
>> your family..  Every minute should be enjoyed and savored
>> by forgetting problems. * - My Thought
>> ________________________________
>>
>>
>> ________________________________
>> Add more friends to your messenger and enjoy! Invite them now.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>      Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/

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


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


      From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/

Reply via email to