RE: Beginning Maven

2007-07-20 Thread Robin Rigby
Personal Firewall (Norton Internet Security)

Just that.

I have not yet worked out why it allows: 

1. Firefox and IE to access the problem files but not Maven or wget.
2. Wget to access everything normally except these few files. 

Thanks for your help
 
Robin Rigby
[EMAIL PROTECTED]
http://www.gondolier.org.uk
07785 765017
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 16:23
To: Maven Users List
Subject: Re: Beginning Maven

Excellent. Do you mind telling us what software (in particular) was
blocking your access, so we know for the future?

This is one of the reasons why Windows is the bane of many people's
existence...

Wayne

On 7/20/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> Spot on.  Hello World works fine.
>
> Many thanks
>
> Robin
>
>
> -Original Message-
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: 20 July 2007 15:12
> To: Maven Users List
> Subject: Re: Beginning Maven
>
> Your simple domestic firewall (or something else in your PC) is
> preventing your connection to the "central" repo.
>
> We have had several Windows users give strange reports like yours due
> to firewalls and antivirus software. Turn off/disable ALL of that
> stuff for now, and try again.
>
> Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
> updates of plugins.
>
> Wayne
>
> On 7/20/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> > Thanks Dennis
> >
> > 1.  Internet connection is good.
> > 2.  I destroyed the entire .m2 directory two hours ago and restarted
with
> a
> > fresh download of Maven.
> > 3.  I am working from home.  There is no proxy that I know of and only a
> > simple domestic firewall.
> >
>
> -
> 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]
>
>

-
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]



RE: Beginning Maven

2007-07-20 Thread Robin Rigby
Spot on.  Hello World works fine.

Many thanks 
 
Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 15:12
To: Maven Users List
Subject: Re: Beginning Maven

Your simple domestic firewall (or something else in your PC) is
preventing your connection to the "central" repo.

We have had several Windows users give strange reports like yours due
to firewalls and antivirus software. Turn off/disable ALL of that
stuff for now, and try again.

Also, use mvn -X -U ... which will 1) turn on debug mode and 2) force
updates of plugins.

Wayne

On 7/20/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> Thanks Dennis
>
> 1.  Internet connection is good.
> 2.  I destroyed the entire .m2 directory two hours ago and restarted with
a
> fresh download of Maven.
> 3.  I am working from home.  There is no proxy that I know of and only a
> simple domestic firewall.
>

-
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]



RE: Rép. : RE: may not be this project's POM [ from co coon-users ]

2007-07-20 Thread Robin Rigby
 
Ok. Thanks for all your time and effort.  Bye
 
Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 15:28
To: Maven Users List
Subject: Re: Rép. : RE: may not be this project's POM [ from cocoon-users ]

Does your ISP perhaps block wget for some reason (mine blocks outgoing
mail unless it goes thru their server)? Are you running Trend Micro
Antivirus which seems to block java.exe? Or a McAfee/Norton/WinXP
firewall which is blocking java.exe from connecting to the Internet?

If you're running any of those things, make sure you go into the
settings and either grant Internet access to java.exe, or change so it
prompts you when a program wants to access the Internet rather than
auto-denying, etc.

Unfortunately, this is probably one of those problems where we really
can't help you. You've done everything right, and yet you still can't
connect. Do you have a Linux or Mac box available you could try, or
perhaps a Linux livecd you could boot into and try wget from there?

Wayne

On 7/20/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> What SSO could there be?  I don't have to sign on for anything, at least,
> not for any component of this problem.  Only Windows Login.
>
> I am at home. I have one machine, a simple wireless box and a phone
socket.
> All normal domestic security.  There is no proxy here.  I would know,
> wouldn't I?
>
>
> Robin
>
>
> -Original Message-
> From: Eric LECOCQ [mailto:[EMAIL PROTECTED]
> Sent: 20 July 2007 13:35
> To: Maven Users List
> Subject: Rép. : RE: may not be this project's POM [ from cocoon-users ]
>
>
> It looks like you have a SSO for your browsers but not for the wget.
>
> You have to provide your proxy and the authentication.
>

-
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]



RE: Beginning Maven

2007-07-20 Thread Robin Rigby
der):

- You don't have a connection to the internet
+ Solution: connect to the internet

- The meta-data for the plugin in question has been corrupted in your 
local repository
+ Solution: Remove the entire directory for that plugin in your local 
repository

- You are behind a proxy or firewall that prevents Maven from accessing 
the central repository
+ Solution: configure Maven to handle this, see
   http://maven.apache.org/guides/mini/guide-proxies.html

If none of the about helps you, please run Maven like this to give us 
more to go on. It will enable debug mode. Please post the results here.

mvn -X archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Robin Rigby wrote:
> Starting again.  (Carrying on from thread "may not be this project's POM [
> from cocoon-users ]")
> 
> I have destroyed the maven-2.07 and .m2 directories.  Downloaded a fresh
> maven-2.0.7-bin.zip.  Start again with "Maven in 5 minutes".
> 
> I expect failures while plugins are downloaded.  The first four of these
are
> different, then they repeat.
> 
> There are three files in the .m2 directory (see below).  Two are
effectively
> empty.
> 
> No my-app directory has been created.
> 
> There is an enigmatic statement "Don't worry, there are ways to fix that"
> but no suggestion of what they are.  Nor link.
> 
> am worried ... 
> 
> Thanks
>  
> Robin
> 
> ===
> here is what happens
> ===
> 
> C:\Temp>mvn --version
> Maven version: 2.0.7
> Java version: 1.6.0
> OS name: "windows xp" version: "5.1" arch: "x86"
> 
> C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-app
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
> retrieved from repository: central due to an error: Error tr
> ansferring file
> [INFO] Repository 'central' will be blacklisted
> [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] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Fri Jul 20 12:40:42 BST 2007
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
> 
> C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-app
> [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 from repository: central due to an error: Error transferr
> ing file
> [INFO] Repository 'central' will be blacklisted
> [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] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Jul 20 12:42:12 BST 2007
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
> 
> C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-app
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for updates from central
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-archetype-plugin' could not be retrieved
from
> repository: c
> entral due to an error: Error transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO]
>

RE: Rép. : RE: may not be this project's POM [ from co coon-users ]

2007-07-20 Thread Robin Rigby
What SSO could there be?  I don't have to sign on for anything, at least,
not for any component of this problem.  Only Windows Login.

I am at home. I have one machine, a simple wireless box and a phone socket.
All normal domestic security.  There is no proxy here.  I would know,
wouldn't I? 

 
Robin
 

-Original Message-
From: Eric LECOCQ [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2007 13:35
To: Maven Users List
Subject: Rép. : RE: may not be this project's POM [ from cocoon-users ]


It looks like you have a SSO for your browsers but not for the wget.

You have to provide your proxy and the authentication.



>>> "Robin Rigby" <[EMAIL PROTECTED]> 07/20/07 2:30  >>>
Thanks for your help.  No, "mvn -U ..." has the same problem.  So does "mvn
clean".  Only "mvn --version is OK".

I don't think this is a transitory problem.  It has been 36 hours now. 

- Summary ---

Maven seems to fail when looking for

http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom 

The file is there -  I can read it with Firefox or Internet Explorer but
wget fails with a 403 error.

However, wget has no problem reading other files such as

http://maven.apache.org/guides/getting-started/index.html 

- End summary -

Baffled.  Something on the server?

I am going back to a fresh installation of Maven.

Thanks for your help.

Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 21:14
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

No, Maven does not expect calls over the internet from a remote server
into this machine. It works basically like wget.

I really don't know why you're having troubles. I'd assume a transient
network failure. Try "mvn -U ..." and see if things are working now.

Wayne

On 7/19/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> No proxy.  I am working at home.  I have a firewall built into the
wireless
> modem ...
>
> I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.
>
> Maven has successfully written a number of files to C:\Documents and
> Settings\username\.m2\repository\.
>
> Does Maven expect calls over the internet from a remote server into this
> machine?  Or on special ports?  It looks like straight HTTP on port 80,
> which is not a problem with wget and other servers.
>
> Robin
>
>
> -Original Message-
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: 19 July 2007 18:18
> To: Maven Users List
> Subject: Re: may not be this project's POM [ from cocoon-users ]
>
> I was not suggesting that you change the pom to include packaging in
> the parent, simply cut and paste some text from the pom file you were
> getting a 403 on.
>
> It sounds like you are behind a corporate web proxy or something, as
> IE and Mozilla work but wget and mvn fail. Can you confirm this? If
> so, you will need to configure your proxy before proceeding
> successfully with Maven.
>
> http://maven.apache.org/guides/mini/guide-proxies.html 
>
> Wayne
>
>
>
>
> -
> 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] 




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



***
Ce message et toutes les pieces jointes sont confidentiels.

Toute utilisation ou diffusion non autorisee est interdite.

Sanef decline toute responsabilite si ce message est altere, deforme ou
falsifie."
***-***


-
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]



Beginning Maven

2007-07-20 Thread Robin Rigby
Starting again.  (Carrying on from thread "may not be this project's POM [
from cocoon-users ]")

I have destroyed the maven-2.07 and .m2 directories.  Downloaded a fresh
maven-2.0.7-bin.zip.  Start again with "Maven in 5 minutes".

I expect failures while plugins are downloaded.  The first four of these are
different, then they repeat.

There are three files in the .m2 directory (see below).  Two are effectively
empty.

No my-app directory has been created.

There is an enigmatic statement "Don't worry, there are ways to fix that"
but no suggestion of what they are.  Nor link.

am worried ... 

Thanks
 
Robin

===
here is what happens
===

C:\Temp>mvn --version
Maven version: 2.0.7
Java version: 1.6.0
OS name: "windows xp" version: "5.1" arch: "x86"

C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: central due to an error: Error tr
ansferring file
[INFO] Repository 'central' will be blacklisted
[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] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jul 20 12:40:42 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[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 from repository: central due to an error: Error transferr
ing file
[INFO] Repository 'central' will be blacklisted
[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] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jul 20 12:42:12 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-archetype-plugin' could not be retrieved from
repository: c
entral 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
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jul 20 12:49:41 BST 2007
[INFO] Final Memory: 1M/4M
[INFO]


C:\Temp>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[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] For more information, run Maven with the -e switch
[INFO]
-

RE: may not be this project's POM [ from cocoon-users ]

2007-07-20 Thread Robin Rigby
Thanks for your help.  No, "mvn -U ..." has the same problem.  So does "mvn
clean".  Only "mvn --version is OK".

I don't think this is a transitory problem.  It has been 36 hours now. 

- Summary ---

Maven seems to fail when looking for

http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom

The file is there -  I can read it with Firefox or Internet Explorer but
wget fails with a 403 error.

However, wget has no problem reading other files such as

http://maven.apache.org/guides/getting-started/index.html

- End summary -

Baffled.  Something on the server?

I am going back to a fresh installation of Maven.

Thanks for your help.

Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 21:14
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

No, Maven does not expect calls over the internet from a remote server
into this machine. It works basically like wget.

I really don't know why you're having troubles. I'd assume a transient
network failure. Try "mvn -U ..." and see if things are working now.

Wayne

On 7/19/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> No proxy.  I am working at home.  I have a firewall built into the
wireless
> modem ...
>
> I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.
>
> Maven has successfully written a number of files to C:\Documents and
> Settings\username\.m2\repository\.
>
> Does Maven expect calls over the internet from a remote server into this
> machine?  Or on special ports?  It looks like straight HTTP on port 80,
> which is not a problem with wget and other servers.
>
> Robin
>
>
> -Original Message-
> From: Wayne Fay [mailto:[EMAIL PROTECTED]
> Sent: 19 July 2007 18:18
> To: Maven Users List
> Subject: Re: may not be this project's POM [ from cocoon-users ]
>
> I was not suggesting that you change the pom to include packaging in
> the parent, simply cut and paste some text from the pom file you were
> getting a 403 on.
>
> It sounds like you are behind a corporate web proxy or something, as
> IE and Mozilla work but wget and mvn fail. Can you confirm this? If
> so, you will need to configure your proxy before proceeding
> successfully with Maven.
>
> http://maven.apache.org/guides/mini/guide-proxies.html
>
> Wayne
>
>
>
>
> -
> 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]




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



RE: may not be this project's POM [ from cocoon-users ]

2007-07-19 Thread Robin Rigby
No proxy.  I am working at home.  I have a firewall built into the wireless
modem ...

I looked through 'Configuring Maven' and 'Configuring a HTTP Proxy'.  

Maven has successfully written a number of files to C:\Documents and
Settings\username\.m2\repository\.

Does Maven expect calls over the internet from a remote server into this
machine?  Or on special ports?  It looks like straight HTTP on port 80,
which is not a problem with wget and other servers.
 
Robin
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 18:18
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

I was not suggesting that you change the pom to include packaging in
the parent, simply cut and paste some text from the pom file you were
getting a 403 on.

It sounds like you are behind a corporate web proxy or something, as
IE and Mozilla work but wget and mvn fail. Can you confirm this? If
so, you will need to configure your proxy before proceeding
successfully with Maven.

http://maven.apache.org/guides/mini/guide-proxies.html

Wayne




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



RE: may not be this project's POM [ from cocoon-users ]

2007-07-19 Thread Robin Rigby
nal Memory: 1M/4M
[INFO]


C:\Temp>

= End error report ==  


 
Robin Rigby
[EMAIL PROTECTED]
http://www.gondolier.org.uk
07785 765017
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2007 17:24
To: Maven Users List
Subject: Re: may not be this project's POM [ from cocoon-users ]

I just tried the apache-4.pom link and it worked fine for me:
  org.apache
  apache
  4
  pom
etc

Try again?

Wayne

On 7/19/07, Robin Rigby <[EMAIL PROTECTED]> wrote:
> Hi
>
> Started this thread on the cocoon-users mailing list ...
>
> Project uses Cocoon 2.1, which is not based on Maven.  Need updated file
> from the current Cocoon snapshot, so yesterday downloaded Cocoon 2.2,
> discovered it requires Maven, downloaded Maven 2.07.  Documents indicate
it
> should all compile out of the box but instead:
>
> Error building POM (may not be this project's POM).
>
> (complete error report below).   Tried to download the missing POM with
wget
> and get
>
> ERROR 403: Forbidden.
>
> (error report also below).  Curiously, can read this file with both IE and
> Firefox.  Not forbidden.
>
> Advice from cocoon-users is to seek help here with access to this file or,
> failing that, with configuring a local copy.  Also suggested establish
> whether Maven can download any other files but, as the newest newbie,
would
> need guidance even for that.
>
> Very grateful for your help
>
> Robin Rigby
> [EMAIL PROTECTED]
> http://www.gondolier.org.uk <http://www.gondolier.org.uk/>
> 07785 765017
>
>
> = Maven error compiling Cocoon 2.2 ==
>
> D:\cocoon-2.2\cocoon>mvn -Dmaven.test.skip=true -P allblocks install
> [INFO] Scanning for projects...
> Downloading:
> <http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom>
> http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
> Downloading:
> <http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom>
> http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.cocoon:cocoon:pom:5-SNAPSHOT
>
> Reason: Cannot find parent: org.apache:apache for project:
> org.apache.cocoon:cocoon:pom:5-SNAPSHOT for project
org.apache.cocoon:cocoon
> :pom:5-SNAPSHOT
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.apache:apache for project: org.apache.cocoon:cocoon:pom:5-SNA
> PSHOT for project org.apache.cocoon:cocoon:pom:5-SNAPSHOT
>at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>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: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.project.ProjectBuildingException: Cannot find
> parent: org.apache:apache for project: org.apache.cocoon:coco
> on:pom:5-SNAPSHOT for project org.apache.cocoon:cocoon:pom:5-SNAPSHOT
>at
>
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
> avenProjectBuilder.java:1261)
>at
>
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
> enProjectBuilder.java:747)
>at
>
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
> nal(DefaultMavenProjectBuilder.java:479)
>at
>
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
> tBuilder.java:200)
>at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
>at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.ja

may not be this project's POM [ from cocoon-users ]

2007-07-19 Thread Robin Rigby
Hi 
 
Started this thread on the cocoon-users mailing list ...
 
Project uses Cocoon 2.1, which is not based on Maven.  Need updated file
from the current Cocoon snapshot, so yesterday downloaded Cocoon 2.2,
discovered it requires Maven, downloaded Maven 2.07.  Documents indicate it
should all compile out of the box but instead:
 
Error building POM (may not be this project's POM).
 
(complete error report below).   Tried to download the missing POM with wget
and get
 
ERROR 403: Forbidden.
 
(error report also below).  Curiously, can read this file with both IE and
Firefox.  Not forbidden.
 
Advice from cocoon-users is to seek help here with access to this file or,
failing that, with configuring a local copy.  Also suggested establish
whether Maven can download any other files but, as the newest newbie, would
need guidance even for that.
 
Very grateful for your help 
 
Robin Rigby
[EMAIL PROTECTED]
http://www.gondolier.org.uk <http://www.gondolier.org.uk/> 
07785 765017
 
 
= Maven error compiling Cocoon 2.2 ==
 
D:\cocoon-2.2\cocoon>mvn -Dmaven.test.skip=true -P allblocks install
[INFO] Scanning for projects...
Downloading:
<http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom>
http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
Downloading:
<http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom>
http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).
 

Project ID: org.apache.cocoon:cocoon:pom:5-SNAPSHOT
 
Reason: Cannot find parent: org.apache:apache for project:
org.apache.cocoon:cocoon:pom:5-SNAPSHOT for project org.apache.cocoon:cocoon
:pom:5-SNAPSHOT
 

[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache:apache for project: org.apache.cocoon:cocoon:pom:5-SNA
PSHOT for project org.apache.cocoon:cocoon:pom:5-SNAPSHOT
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
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: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.project.ProjectBuildingException: Cannot find
parent: org.apache:apache for project: org.apache.cocoon:coco
on:pom:5-SNAPSHOT for project org.apache.cocoon:cocoon:pom:5-SNAPSHOT
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1261)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
enProjectBuilder.java:747)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
nal(DefaultMavenProjectBuilder.java:479)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache:apache' not found in repository: Unable to download the a
rtifact from any repository
 
  org.apache:apache:pom:4
 
from the specified remote repositories:
  central ( <http://repo1.maven.org/maven2> http://repo1.maven.org/maven2)
 for project org.apache:apache
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:573)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBuilder.java:1257)
... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
 
  org.apache:apache:pom:4
 
from the specified remote repositories:
  central ( <http://repo1.maven.org/maven2> http://repo1.maven.org/maven2)
 
at
org.apache.maven.artifact.resolver.DefaultArtif