Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 84507 invoked from network); 11 Sep 2008 07:27:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 07:27:09 -0000 Received: (qmail 23794 invoked by uid 500); 11 Sep 2008 07:26:57 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 23735 invoked by uid 500); 11 Sep 2008 07:26:57 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 23724 invoked by uid 99); 11 Sep 2008 07:26:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 00:26:57 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sim085@hotmail.com designates 65.54.246.172 as permitted sender) Received: from [65.54.246.172] (HELO bay0-omc2-s36.bay0.hotmail.com) (65.54.246.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 07:25:56 +0000 Received: from BAY118-W38 ([207.46.8.201]) by bay0-omc2-s36.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Sep 2008 00:26:06 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_45e2a259-32bf-4374-8e59-e47492af4584_" X-Originating-IP: [194.158.51.60] From: Simon Aquilina To: Maven Users List Subject: RE: Using springframework in maven project Date: Thu, 11 Sep 2008 09:26:06 +0200 Importance: Normal In-Reply-To: <3a15f5ad0809100837y47459402v869e74e6f5af1cbb@mail.gmail.com> References: <3a15f5ad0809100832r9deb10by535d5c27cf091948@mail.gmail.com> <3a15f5ad0809100837y47459402v869e74e6f5af1cbb@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 11 Sep 2008 07:26:06.0480 (UTC) FILETIME=[A773F900:01C913DF] X-Virus-Checked: Checked by ClamAV on apache.org --_45e2a259-32bf-4374-8e59-e47492af4584_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I think the problem I have is proxy related since I need a proxy to browse = the internet from work. I therefore opened the settings.xml configuration f= ile and entered the following in it=3B true http http://redhat1/pxy.pac 3168 With these settings I do manage to browse the internet from a local browser= however maven still blocks when downloading the wanted libraries! :( I als= o tried setting the port equal to port 80 and also tried downloading spring= rather then spring full. Any other ideas? Thanks for all the help already = given :) Regards=2C Simon J. > Date: Wed=2C 10 Sep 2008 17:37:19 +0200 > From: nick.stolwijk@gmail.com > To: users@maven.apache.org > Subject: Re: Using springframework in maven project >=20 > Maybe your company explicitly forbids the spring-full dependency as > many artifacts depends on one or more spring modules. When you have a > dependency on spring-full this could break your build. Ie. if one of > your deps depends on spring-core and you on spring-full you will have > the spring-core and the spring full jar on the classpath=2C each of > which could have different versions. Here be dragons! >=20 > Why are you including spring-full and not just the modules you need? >=20 > Hth=2C >=20 > Nick Stolwijk > ~Java Developer~ >=20 > Iprofs BV. > Claus Sluterweg 125 > 2012 WS Haarlem > www.iprofs.nl >=20 >=20 >=20 > On Wed=2C Sep 10=2C 2008 at 5:32 PM=2C Nick Stolwijk wrote: > > It looks like you have mirrored the "central" repository in your > > settings.xml or that Maven needs a proxy to connect to the internet. > > > > Hth=2C > > > > Nick Stolwijk > > ~Java Developer~ > > > > Iprofs BV. > > Claus Sluterweg 125 > > 2012 WS Haarlem > > www.iprofs.nl > > > > > > > > On Wed=2C Sep 10=2C 2008 at 5:29 PM=2C Simon Aquilina wrote: > >> Hi=2C > >> > >> I am trying to use springframework inside a maven project. My dependen= cy is as follows: > >> > >> > >> org.springframework > >> spring-full > >> 1.2.8 > >> > >> > >> However when I enter the command mvn compile I get the following error= : > >> > >> [console] > >> D:\Projects\test>mvn compile > >> [INFO] Scanning for projects... > >> [INFO] ---------------------------------------------------------------= --------- > >> [INFO] Building test Maven Webapp > >> [INFO] task-segment: [compile] > >> [INFO] ---------------------------------------------------------------= --------- > >> [INFO] [resources:resources] > >> [INFO] Using default encoding to copy filtered resources. > >> Downloading: http://repo1.maven.org/maven2/org/springframework/spring-= full/1.2.8 > >> /spring-full-1.2.8.pom > >> Downloading: http://repo1.maven.org/maven2/org/springframework/spring-= full/1.2.8 > >> /spring-full-1.2.8.jar > >> [INFO] ---------------------------------------------------------------= --------- > >> [ERROR] BUILD ERROR > >> [INFO] ---------------------------------------------------------------= --------- > >> [INFO] Failed to resolve artifact. > >> > >> Missing: > >> ---------- > >> 1) org.springframework:spring-full:jar:1.2.8 > >> > >> Try downloading the file manually from the project website. > >> > >> Then=2C install it using the command: > >> mvn install:install-file -DgroupId=3Dorg.springframework -Dartifa= ctId=3Dspring > >> -full -Dversion=3D1.2.8 -Dpackaging=3Djar -Dfile=3D/path/to/file > >> > >> Alternatively=2C if you host your own repository you can deploy the f= ile there: > >> > >> mvn deploy:deploy-file -DgroupId=3Dorg.springframework -Dartifact= Id=3Dspring-f > >> ull -Dversion=3D1.2.8 -Dpackaging=3Djar -Dfile=3D/path/to/file -Durl= =3D[url] -Drepositor > >> yId=3D[id] > >> > >> Path to dependency: > >> 1) com.test:test:war:1.0-SNAPSHOT > >> 2) org.springframework:spring-full:jar:1.2.8 > >> > >> ---------- > >> 1 required artifact is missing. > >> > >> for artifact: > >> com.test:test:war:1.0-SNAPSHOT > >> > >> from the specified remote repositories: > >> central (http://repo1.maven.org/maven2) > >> > >> > >> [INFO] ---------------------------------------------------------------= --------- > >> [INFO] For more information=2C run Maven with the -e switch > >> [INFO] ---------------------------------------------------------------= --------- > >> [INFO] Total time: 42 seconds > >> [INFO] Finished at: Wed Sep 10 17:25:07 CEST 2008 > >> [INFO] Final Memory: 2M/5M > >> [INFO] ---------------------------------------------------------------= --------- > >> > >> D:\Projects\test> > >> [/console] > >> > >> I cannot understand why it is not working since the path to the spring= resource I want is correct " http://repo1.maven.org/maven2/org/springframe= work/spring-full/1.2.8 > >> > >> /spring-full-1.2.8.pom". > >> > >> Does anyone know how this can be solved? I read on the internet that i= t could be because I need the jmx library as well. I tried to include this = as a dependency but also failed! :( > >> > >> Regards=2C > >> Simon J. > >> > >> _________________________________________________________________ > >> News=2C entertainment and everything you care about at Live.com. Get i= t now! > >> http://www.live.com/getstarted.aspx > > >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: users-unsubscribe@maven.apache.org > For additional commands=2C e-mail: users-help@maven.apache.org >=20 _________________________________________________________________ News=2C entertainment and everything you care about at Live.com. Get it now= ! http://www.live.com/getstarted.aspx= --_45e2a259-32bf-4374-8e59-e47492af4584_--