You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sam Wun <sw...@gmail.com> on 2009/07/09 11:51:03 UTC
How to instruct maven look for local repository first?
Hi,
I want to setup maven to look for resteasy-maven-import pom file in
the local repository.
Here is the file in my local repository:
# !find
find . -name "resteasy-maven-import*"
./repository/org/jboss/resteasy/resteasy-maven-import
./repository/org/jboss/resteasy/resteasy-maven-import/1.2.RC1/resteasy-maven-import-1.2.RC1.pom
pom.xml file:
....
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-maven-import</artifactId>
<version>1.2.RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
.....
Errors:
# !mvn
mvn clean install
[INFO] Scanning for projects...
Downloading: http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
java.net (http://download.java.net/maven/1)
Downloading: http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:resteasy-maven-import:pom:null
Reason: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for
project: null:resteasy-maven-import:pom:null for project
null:resteasy-maven-import:pom:null
It seems it doesn't look for local repository.
How to change the pom.xml so taht it looks for local repository?
Thanks
Sam
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to instruct maven look for local repository first?
Posted by Norm Wright <nw...@mit.edu>.
thanks for the help.
I had this same problem.
I'm new to maven so the solution was not obvious.
reloading my jars (from google) into my local repository with the
-DgeneratePom=true
option saves me tons of times on my recompiles!:-)
--
View this message in context: http://www.nabble.com/How-to-instruct-maven-look-for-local-repository-first--tp24407280p25577795.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: How to instruct maven look for local repository first?
Posted by Sam Wun <sw...@gmail.com>.
Oh yeah. I need to to change my glasses. :p
On Thu, Jul 9, 2009 at 8:16 PM, Anders Hammar<an...@hammar.net> wrote:
> If you look at the error message you see that the problem is that the
> parent of resteasy-maven-import
> (org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1) can't be found.
> The resteasy-maven-import artifact is indeed found in the local repo.
>
> /Anders
>
> On Thu, Jul 9, 2009 at 11:51, Sam Wun<sw...@gmail.com> wrote:
>> Hi,
>>
>> I want to setup maven to look for resteasy-maven-import pom file in
>> the local repository.
>> Here is the file in my local repository:
>>
>> # !find
>> find . -name "resteasy-maven-import*"
>> ./repository/org/jboss/resteasy/resteasy-maven-import
>> ./repository/org/jboss/resteasy/resteasy-maven-import/1.2.RC1/resteasy-maven-import-1.2.RC1.pom
>>
>> pom.xml file:
>> ....
>> <dependencyManagement>
>> <dependencies>
>> <dependency>
>> <groupId>org.jboss.resteasy</groupId>
>> <artifactId>resteasy-maven-import</artifactId>
>> <version>1.2.RC1</version>
>> <type>pom</type>
>> <scope>import</scope>
>> </dependency>
>> </dependencies>
>> </dependencyManagement>
>> .....
>>
>> Errors:
>> # !mvn
>> mvn clean install
>> [INFO] Scanning for projects...
>> Downloading: http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-jaxrs-all-1.2.RC1.pom
>> [INFO] Unable to find resource
>> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
>> java.net (http://download.java.net/maven/1)
>> Downloading: http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
>> [INFO] Unable to find resource
>> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
>> maven repo (http://repo1.maven.org/maven2/)
>> Downloading: http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
>> [INFO] Unable to find resource
>> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
>> jboss (http://repository.jboss.org/maven2)
>> Downloading: http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
>> [INFO] Unable to find resource
>> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
>> scannotation (http://scannotation.sf.net/maven2)
>> Downloading: http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
>> [INFO] Unable to find resource
>> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
>> central (http://repo1.maven.org/maven2)
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>> Project ID: null:resteasy-maven-import:pom:null
>>
>> Reason: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for
>> project: null:resteasy-maven-import:pom:null for project
>> null:resteasy-maven-import:pom:null
>>
>> It seems it doesn't look for local repository.
>> How to change the pom.xml so taht it looks for local repository?
>>
>> Thanks
>> Sam
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to instruct maven look for local repository first?
Posted by Anders Hammar <an...@hammar.net>.
If you look at the error message you see that the problem is that the
parent of resteasy-maven-import
(org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1) can't be found.
The resteasy-maven-import artifact is indeed found in the local repo.
/Anders
On Thu, Jul 9, 2009 at 11:51, Sam Wun<sw...@gmail.com> wrote:
> Hi,
>
> I want to setup maven to look for resteasy-maven-import pom file in
> the local repository.
> Here is the file in my local repository:
>
> # !find
> find . -name "resteasy-maven-import*"
> ./repository/org/jboss/resteasy/resteasy-maven-import
> ./repository/org/jboss/resteasy/resteasy-maven-import/1.2.RC1/resteasy-maven-import-1.2.RC1.pom
>
> pom.xml file:
> ....
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.jboss.resteasy</groupId>
> <artifactId>resteasy-maven-import</artifactId>
> <version>1.2.RC1</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> </dependencies>
> </dependencyManagement>
> .....
>
> Errors:
> # !mvn
> mvn clean install
> [INFO] Scanning for projects...
> Downloading: http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-jaxrs-all-1.2.RC1.pom
> [INFO] Unable to find resource
> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
> java.net (http://download.java.net/maven/1)
> Downloading: http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
> [INFO] Unable to find resource
> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
> maven repo (http://repo1.maven.org/maven2/)
> Downloading: http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
> [INFO] Unable to find resource
> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
> jboss (http://repository.jboss.org/maven2)
> Downloading: http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
> [INFO] Unable to find resource
> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
> scannotation (http://scannotation.sf.net/maven2)
> Downloading: http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
> [INFO] Unable to find resource
> 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
> central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:resteasy-maven-import:pom:null
>
> Reason: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for
> project: null:resteasy-maven-import:pom:null for project
> null:resteasy-maven-import:pom:null
>
> It seems it doesn't look for local repository.
> How to change the pom.xml so taht it looks for local repository?
>
> Thanks
> Sam
>
> ---------------------------------------------------------------------
> 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