MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jadeite1000
Post subject: DisplayTag Maven Dependencies Error  PostPosted: Dec 28, 2009 - 11:46 AM
Registered Member
Registered Member


Joined: Apr 19, 2006
Posts: 105

Hi All:

I am new to displaytag and Maven. I download the displaytag-examples from the url "http://sourceforge.net/projects/displaytag/files/" it is part of the "displaytag-1.2-src.zip"
I am using MyEclipse 5.5 and Weblogic 11g.
I got all of the artifacts download. I was able to do "Mavern Install" and "Mavern Package" successfully on the project


In the "displaytag-example" java project. I see the following Problem "Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library 'C:\Documents and Settings\alam\.m2\repository\commons-lang\commons-lang] -->.3\commons-lang-2.3.jar' displaytag-examples Build path Build Path Problem
"
I ran the following command and the jar file was copy to the respective directory under .m2:
mvn install:install-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/test5/commons-lang-2.3.jar

But I noticed that in the directory C:\Documents and Settings\alam\.m2\repository\commons-lang\commons-lang] -->.3 there was only the commons-lang-2.3.jar file but the following files doesnot exist:
commons-lang-2.3.jar.sha1
commons-lang-2.3.pom
commons-lang-2.3.pom.sha1

This is the result of running the following command:
mvn install:install-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/test5/commons-lang-2.3.jar

Result:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] org.apache.maven.plugins: checking for updates from plugin-central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: plugin-central due to an error: Error transferring file: t
orapprd08
[INFO] Repository 'plugin-central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install:install-file] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [install:install-file {execution: default-cli}]
[INFO] Installing C:\test5\commons-lang-2.3.jar to C:\Docume~1\alam\.m2\reposito
ry\commons-lang\commons-lang] -->.3\commons-lang-2.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Dec 28 03:33:13 EST 2009
[INFO] Final Memory: 3M/6M

The strange thing is that even in the pom.xml dependencies I changed it to common-lang:2.4 and I made sure in the local maven repository "C:\Documents and Settings\alam\.m2\repository\commons-lang\commons-lang] -->.4" exists with the correct
jar but I don't know why my java project in eclipse 3.5 is giving the error:
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library 'C:\Documents and Settings\alam\.m2\repository\commons-lang\commons-lang] -->.3\commons-lang-2.3.jar' displaytag-examples Build path Build Path Problem

I donot see 2.3 being referenced in the pom.xml. Could it be somewhere else being referenced in the eclipse project. If so where?

Any help or hint would be greatly appreciated it!!!

Yours,

Frustrated.
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: DisplayTag Maven Dependencies Error  PostPosted: Dec 30, 2009 - 10:50 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

The referred link (http://sourceforge.net/projects/displaytag/files) is not a displaytag-example. It is "Display Tag Library", which is an open source suite of custom tags that provide high-level web presentation patterns which will work in an MVC model.

Since you are new to Maven, I would recommend you to go through our tutorials here to develop Maven based application

http://www.myeclipseide.com/documentation/quickstarts/maven_overview
http://www.myeclipseide.com/documentation/quickstarts/maven/mavenCreateTutorial
http://www.myeclipseide.com/documentation/quickstarts/maven/mavenJavaTutorial
http://www.myeclipseide.com/documentation/quickstarts/maven/mavenRunTutorial
http://www.myeclipseide.com/documentation/quickstarts/maven_tips

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits