You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by uday shankar <ad...@gmail.com> on 2011/05/13 12:21:35 UTC

DependencyResolutionException

Hi,
In my project I added all the jars required for Spring MVC in the local
repository(C:\Documents and Settings\username\.m2\repository created by
maven. 
And in the pom.xml of my project I added the dependencies information.I
created a web application and wanted to check if the jars added by me to the
local repository can be obtained or not.So, I gave the comman mvn package
but it gave an error that it is unable to fetch any dependency information. 
Please suggest a way forward. 

Error message :[ERROR] Failed to execute goal on project mywebtest: Could
not resolve dependenc
ies for project com.maventest:mywebtest:war:1.0-SNAPSHOT: The following
artifact
s could not be resolved: org.spring:spring-test:jar:2.5.6,
org.spring:spring-web
mvc:jar:2.5.6, org.spring:spring-webmvc-struts:jar:2.5.5,
org.spring:spring-jdbc
:jar:2.5.6, org.spring:spring-jms:jar:2.5.6,
org.spring:spring-dao:jar:2.0.7, or
g.spring:spring-core:jar:2.5.6, org.spring:spring-context:jar:2.5.6,
org.spring:
spring-beans:jar:2.5.6, org.spring:spring-aop:jar:2.5.6: Could not find
artifact
 org.spring:spring-test:jar:2.5.6 in central (http://repo1.maven.org/maven2)
->
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException

http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4392741.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by uday shankar <ad...@gmail.com>.
Hi Wayne,
Does Mule provide any online repositories to which can connect?
If yes, please explain how I can set up a connection with the online
repository provided by Mule.

On Sun, May 15, 2011 at 12:16 AM, Wayne Fay [via Maven] <
ml-node+4396321-370053039-208043@n5.nabble.com> wrote:

> > I do not have a Maven Repo set up but I want to set up a maven repo(Nexus
> or
> > any other).
> > I actually started workin on repo since the last two days..so if anyone
> of
> > you can take me through the set up of a online repository(any online
> repo).
> > it will be of great help
>
> Since you want to know how to set up a repo manager, you should
> determine which of the various options you will use (Nexus, Archiva,
> Artifactory etc) and then ask this same question the appropriate list.
> I assume each of those products has documentation and perhaps even
> online video instructions for accomplishing this task.
>
> This list is not going to be much help as that is not our area of
> expertise.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4396321&i=0>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4396321&i=1>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4396321.html
>   To unsubscribe from DependencyResolutionException, click here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4392741&code=YWRvbmlzLnVkYXlAZ21haWwuY29tfDQzOTI3NDF8MTQ3NjgzNTg0Mg==>.
>
>


--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4396994.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: DependencyResolutionException

Posted by Wayne Fay <wa...@gmail.com>.
> Does Mule provide any online repositories to which can connect?
> If yes, please explain how I can set up a connection with the online
> repository provided by Mule.

I have no knowledge of anything related to Mule. This is the Maven
Users list. You need to ask these questions on the Mule Users list.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by uday shankar <ad...@gmail.com>.
Does Mule provide any online repositories to which can connect?
If yes, please explain how I can set up a connection with the online
repository provided by Mule.
If I can set up a connection to the Mule online repository my job will be
done.
I think we have to do somethin in the <repository> tag.

--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4396997.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by Wayne Fay <wa...@gmail.com>.
> I do not have a Maven Repo set up but I want to set up a maven repo(Nexus or
> any other).
> I actually started workin on repo since the last two days..so if anyone of
> you can take me through the set up of a online repository(any online repo).
> it will be of great help

Since you want to know how to set up a repo manager, you should
determine which of the various options you will use (Nexus, Archiva,
Artifactory etc) and then ask this same question the appropriate list.
I assume each of those products has documentation and perhaps even
online video instructions for accomplishing this task.

This list is not going to be much help as that is not our area of expertise.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by uday shankar <ad...@gmail.com>.
I do not have a Maven Repo set up but I want to set up a maven repo(Nexus or
any other).
I actually started workin on repo since the last two days..so if anyone of
you can take me through the set up of a online repository(any online repo).
it will be of great help
Here, the actual requirement is to connect to the online repository provided
by Mule .So I have to setup a connection tot he online repo provided by
MULE.



--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4394727.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by uday shankar <ad...@gmail.com>.
I do not have a Maven Repo set up but I want to set up a maven repo(Nexus or
any other).
I actually started workin on repo since the last two days..so if anyone of
you can take me through the set up of a online repository(any
online repo). it will be of great help
Here, the actual requirement is to connect to the online repository provided
by Mule .So I have to setup a connection tot he online repo [rovided by
Mule. Sothat when I try to build the project using it connects to the online
repository and downloads all the required jars into our local repo

On Sat, May 14, 2011 at 2:41 AM, Ron Wheeler [via Maven] <
ml-node+4394269-315154965-208043@n5.nabble.com> wrote:

> Tons of people build with Spring.
> What is the error?
> Do you have a Maven Repo (Nexus or other) set up and working?
> What have you tested?
>
> Ron
>
>
> On 13/05/2011 12:26 PM, uday shankar wrote:
>
> > PRoblem : I have to create a project (SpringMVC project). For this I have
> to
> > connect to the online repository which provides the jars required for
> > running the Spring MVC project. And when we build the project using the
> > maven commands, the jars are copied into our local repository .
> > So, for this I need to connect to a Online repository first. Unable to go
>
> > ahead with the set up of a online repository.
> >
> > --
> > View this message in context:
> http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4393563.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4394269&i=0>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4394269&i=1>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4394269&i=2>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4394269&i=3>
>
>
>
> ------------------------------
>   If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4394269.html
>   To unsubscribe from DependencyResolutionException, click here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4392741&code=YWRvbmlzLnVkYXlAZ21haWwuY29tfDQzOTI3NDF8MTQ3NjgzNTg0Mg==>.
>
>


--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4394744.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: DependencyResolutionException

Posted by Ron Wheeler <rw...@artifact-software.com>.
Tons of people build with Spring.
What is the error?
Do you have a Maven Repo (Nexus or other) set up and working?
What have you tested?

Ron


On 13/05/2011 12:26 PM, uday shankar wrote:
> PRoblem : I have to create a project (SpringMVC project). For this I have to
> connect to the online repository which provides the jars required for
> running the Spring MVC project. And when we build the project using the
> maven commands, the jars are copied into our local repository .
> So, for this I need to connect to a Online repository first. Unable to go
> ahead with the set up of a online repository.
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4393563.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by uday shankar <ad...@gmail.com>.
PRoblem : I have to create a project (SpringMVC project). For this I have to
connect to the online repository which provides the jars required for
running the Spring MVC project. And when we build the project using the
maven commands, the jars are copied into our local repository .
So, for this I need to connect to a Online repository first. Unable to go
ahead with the set up of a online repository.

--
View this message in context: http://maven.40175.n5.nabble.com/DependencyResolutionException-tp4392741p4393563.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: DependencyResolutionException

Posted by Wayne Fay <wa...@gmail.com>.
> In my project I added all the jars required for Spring MVC in the local
> repository(C:\Documents and Settings\username\.m2\repository created by
> maven.

How did you "add all the jars"? Be specific, provide the command line
you executed or what steps you followed. Most likely, however you did
this was wrong or had an error.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org