It seems like maven is unable to register the proprty mavenrepo.remote 
specified in project.properties. I also created a build.properties in 
{user.home} specifying this property again. But no change, maven is just unable 
to find this property. It is always tryign to download from 
http://repo1.maven.org/maven2.
I checked the batch script mvn.bat, m2.bat, m2.conf, and all property files and 
xml files. Everythign seems to be the way it should be. 

I am just unable to build displaytag from the sources. 
Please help.

I have a windows xp system, with JDK 5 and maven 2.
Here is the complete error message:

C:\Java\Display Tag\displaytag>mvn
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: displaytag
ArtifactId: displaytag-doc
Version: 1.1-SNAPSHOT

Reason: Unable to download the artifact from any
repository
  displaytag:displaytag-doc:1.1-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM
'displaytag:displaytag-doc' not found in repository:
Unable to download the artifact from any repository
  displaytag:displaytag-doc:1.1-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:359)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:276)
        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:585)
        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: POM
'displaytag:displaytag-doc' not found in repository:
Unable to download the artifact from any
repository
  displaytag:displaytag-doc:1.1-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:423)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:955)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:586)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:298)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:276)
        at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:509)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:441)
        at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:345)
        ... 11 more
Caused by:
org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
  displaytag:displaytag-doc:1.1-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:380)
        ... 18 more
Caused by:
org.apache.maven.wagon.ResourceDoesNotExistException:
Unable to download the artifact from any repository
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
        ... 20 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Nov 02 23:54:50 PST 2005
[INFO] Final Memory: 1M/2M
[INFO]
----------------------------------------------------------------------------

C:\Java\Display Tag\displaytag>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gupta,
Karan
Sent: Wednesday, November 02, 2005 10:01 AM
To: ML DisplayTag (E-mail)
Subject: [displaytag-user] How to build from source


I downloaded the development version yesterday via cvs.
I ran maven in the directory where the unzipped sources are but I keep getting 
errors:
"Cannot find displaytag-displaytagdoc.....Unable to download artifact from any 
repository."

Sorry I am at work now, and so don't have the complete text of the error with 
me. 
Is there a solution to this? I really need the development version to work on 
my machine.

Thank you,

Karan Gupta
Software Engineer
TransCore, San Diego 
(858) 826 - 2139 


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to