We see that message when we have a jar in the repository that doesn't actually have a POM file. It realizes the JAR is in your local repository, so it doesn't try to download that.
But it always tries to download the POM to find out if the artifact has any dependencies (and POMs don't have classifiers) but it's trying to find out if it has any dependencies. It does that on every build. However, my output always shows an INFO message "Unable to find resource 'groupX:artifactY:pom:versionZ'" for each one as well. Might be interesting if Maven provided a way to indicate in your dependency declaration that you just want the JAR w/o looking at the POM. On Thu, Mar 4, 2010 at 4:52 AM, Thunder Farmer <[email protected]>wrote: > Thanks for all of your responses. > > I tried with version 2.2.1. > Still the same issue. > Is it my luck? find a bug for Maven,:)~ > > D:\temp\my-app>mvn -version > Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800) > Java version: 1.6.0_10-rc > > Thanks, > Thunder > > On Thu, Mar 4, 2010 at 3:22 PM, Anders Hammar <[email protected]> wrote: > > > Did you try any of the latest recommended versions of Maven, like 2.2.1? > > Maven 2.1.0 is generally a version to stay away from as it has issues... > > > > /Anders > > > > On Thu, Mar 4, 2010 at 07:03, Thunder Farmer <[email protected] > > >wrote: > > > > > Hi, > > > > > > Thanks for your quick response. > > > Here I provide more information. > > > I can reproduce the issue by creating a simple project and adding a > > > dependency with classifier to it. > > > I create the project by "mvn archetype:create" command. > > > In the pom, I add a dependency: > > > > > > <dependency> > > > <groupId>com.informix</groupId> > > > <artifactId>ifxjdbc</artifactId> <version>3.50</version> > > > <classifier>JC3</classifier> > > > <scope>compile</scope> > > > </dependency> > > > The informix JDBC jar and it's pom file are already in our local repo, > > and > > > I have local repo in my setting.xml > > > > > > Every time when I run "mvn compile", I get below output in the console > > > [INFO] [resources:resources] > > > [INFO] Using default encoding to copy filtered resources. > > > Downloading: > > > > http://repo1.maven.org/maven2/com/informix/ifxjdbc/3.50/ifxjdbc-3.50.pom > > > [INFO] [compiler:compile] > > > > > > Seems it always tries to download the artifact. > > > Though it doesn't really download the jar file, it consume significant > > time > > > to connect remote repo for a large project. > > > > > > Is it expected behavior of Maven? > > > > > > The project is attached. > > > > > > Thanks, > > > Thunder > > > > > > > > > > > > On Thu, Mar 4, 2010 at 10:51 AM, Wendy Smoak <[email protected]> wrote: > > > > > >> On Wed, Mar 3, 2010 at 9:44 PM, Thunder Farmer < > > [email protected]> > > >> wrote: > > >> > My problems is that seems Maven always download dependencies with > > >> classifier > > >> > even I specify the version. > > >> > Is it the expected behavior or some thing goes wrong? > > >> > > > >> > Maven version: 2.1.0-M1 > > >> > Java version: 1.5.0_06 > > >> > > >> This is the right place, but we need more information. Can you post a > > >> snippet of the build output or error message that you're seeing, and > > >> maybe the relevant portion of your pom.xml file (the problematic > > >> <dependency>)? > > >> > > >> You might also try the build with the latest recommended stable Maven > > >> version from http://maven.apache.org/download.html and see if it's > > >> still a problem. > > >> > > >> -- > > >> Wendy > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [email protected] > > >> For additional commands, e-mail: [email protected] > > >> > > >> > > > > > > > > > -- > > > Listen to Your Heart > > > Follow Your Heart > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > -- > Listen to Your Heart > Follow Your Heart >
