RE: Why is maven trying to download installed jars?
A question here... Let's say that my project depends on project A that depends on project B. Project A has a correct pom but project B does not. Can I do something that makes maven generate a pom for project B when looking for dependencies? /Ludwig -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: den 25 maj 2010 06:48 To: Maven Users List Subject: Re: Why is maven trying to download installed jars? Please remember that this generated minimal pom just holds the required GAV info. There is no info about dependencies, which makes it...well, minimal. Maven will then not be able to help you with transitive deps and dependency management. So, you should always create a correct pom (including dependency info) IMO. /Anders On Mon, May 24, 2010 at 23:13, Wayne Fay wayne...@gmail.com wrote: So is this flag (generatePom) not default because of a bug or should I just add it every time I add file to the repository? It is the default in sufficiently recent versions of the install plugin. To be safe, just add the -D flag when you install artifacts locally. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is maven trying to download installed jars?
No, there is currently no such feature out-of-the-box. There are several tools that can help you though. I use CDA ( http://www.dependency-analyzer.org) and jaranalyzer ( http://www.kirkk.com/main/Main/JarAnalyzer). /Anders On Tue, May 25, 2010 at 09:26, Ludwig Magnusson lud...@itcatapult.comwrote: A question here... Let's say that my project depends on project A that depends on project B. Project A has a correct pom but project B does not. Can I do something that makes maven generate a pom for project B when looking for dependencies? /Ludwig -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: den 25 maj 2010 06:48 To: Maven Users List Subject: Re: Why is maven trying to download installed jars? Please remember that this generated minimal pom just holds the required GAV info. There is no info about dependencies, which makes it...well, minimal. Maven will then not be able to help you with transitive deps and dependency management. So, you should always create a correct pom (including dependency info) IMO. /Anders On Mon, May 24, 2010 at 23:13, Wayne Fay wayne...@gmail.com wrote: So is this flag (generatePom) not default because of a bug or should I just add it every time I add file to the repository? It is the default in sufficiently recent versions of the install plugin. To be safe, just add the -D flag when you install artifacts locally. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is maven trying to download installed jars?
On Mon, May 24, 2010 at 4:18 PM, D D dawi...@gmail.com wrote: Could someone help me on this annoying issue? I added several jars that do not exist in any known Maven repositories. Now every time I run maven is attempts to load them from repo1. Example message is: Unable to find resource 'com.xxx.yyy:aaa:pom:vvv' in repository central ( ^^^ It's not trying to download the jars, it's trying to download the poms. Try re-installing them with -DgeneratePom=true (which should really be the default...) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is maven trying to download installed jars?
Thank you Wendy! It worked like a charm. So is this flag (generatePom) not default because of a bug or should I just add it every time I add file to the repository? Dave On Mon, May 24, 2010 at 3:23 PM, Wendy Smoak wsm...@gmail.com wrote: Try re-installing them with -DgeneratePom=true (which should really be the default...)
Re: Why is maven trying to download installed jars?
So is this flag (generatePom) not default because of a bug or should I just add it every time I add file to the repository? It is the default in sufficiently recent versions of the install plugin. To be safe, just add the -D flag when you install artifacts locally. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is maven trying to download installed jars?
Please remember that this generated minimal pom just holds the required GAV info. There is no info about dependencies, which makes it...well, minimal. Maven will then not be able to help you with transitive deps and dependency management. So, you should always create a correct pom (including dependency info) IMO. /Anders On Mon, May 24, 2010 at 23:13, Wayne Fay wayne...@gmail.com wrote: So is this flag (generatePom) not default because of a bug or should I just add it every time I add file to the repository? It is the default in sufficiently recent versions of the install plugin. To be safe, just add the -D flag when you install artifacts locally. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org