You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kapila <ka...@gmail.com> on 2011/09/20 14:30:22 UTC

mvn dependency tree not working

While building a sub-project where I am trying to find the jar dependency
showing up in compliation which i am not able to locate in code/pom. 
Tried command ;- mvn dependency:tree 
this doesnt show up the dependency tree 

this jar doesnt exist on nexus even, so i wanna see where is this defined in
pom or dependency jar is calling it. 

error is 

Downloaded:
http://IP:8081/nexus/content/groups/public-snapshots/abc/abc-web-utils/1.1-SNAPSHOT/maven-metadata.xml
(351 B at 6.0 KB/sec) 
Downloading:
http://IP:8081/nexus/content/groups/public/org/hibernate/ehcache/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.pom 
[WARNING] The POM for org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA is
missing, no dependency information available 
[INFO]
------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO]
------------------------------------------------------------------------ 
[INFO] Total time: 6.065s 
[INFO] Finished at: Tue Sep 20 16:29:32 IST 2011 
[INFO] Final Memory: 8M/1009M 
[INFO]
------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project com.abc.data.web: Could not
resolve dependencies for project com.abc:com.abc.data.web:war:3.0.0.M1:
Could not find artifact org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA in
abc (http://IP:8081/nexus/content/groups/public) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch. 
[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
read the following articles: 
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 
[kapila.narang@svn data-web]$ pwd 
/home/kapilacvs/data-3.0/data-web/data-web 

have made entry in pom also - 
 <plugin> 
                                <groupId>org.apache.maven.plugins</groupId> 
                               
<artifactId>maven-dependency-plugin</artifactId> 
                                <version>2.3</version> 
                        </plugin> 

maven version i am using is /usr/local/apache-maven-3.0/bin/mvn 

i have tried to run same command- mvn dependency:analyze-only on its parent
pom its runs fine for other sub-projects. but give issue in this specific
project. Doesn't give any dependency graph at all build gives build failure. 

was trying to understand what harm can these make expect cleaner code- 

[WARNING] Used undeclared dependencies found: 
[WARNING] Unused declared dependencies found: 

--
View this message in context: http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4822352.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: mvn dependency tree not working

Posted by Dennis Lundberg <de...@apache.org>.
Hello again

I'll try to explain it one more time.

The dependency that you have specified in your POM does not exist.

I'm not sure which dependency it is that you want. If it is "ehcache"
you want, then your dependency should look like this:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-ehcache</artifactId>
            <version>3.3.1.GA</version>
        </dependency>

If it is "hibernate-core" you want, then your dependency should look
like this:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.3.1.GA</version>
        </dependency>

You can browse the available Hibernate artifacts in the Central
repository at this URL:

http://repo1.maven.org/maven2/org/hibernate/



The reason that Maven Dependency Plugin cannot do it's job, and present
the tree, is because the tree is broken.


On 2011-09-21 18:38, kapila wrote:
> Thanks but I have tried to see that with debug option X and U . Nothing I could infer. But don't understand why I can't get dependency tree print.
> 
> Pls help.
> Sent from BlackBerry® on Airtel
> 
> -----Original Message-----
> From: Jörg Schaible [via Maven] <ml...@n5.nabble.com>
> Date: Wed, 21 Sep 2011 09:32:21 
> To: kapila<ka...@gmail.com>
> Subject: Re: mvn dependency tree not working
> 
> 
> 
> kapilanarang wrote:
> 
>> Thanks Dennis for reply.
>> path in central is correct & in specific pom - its mentioned correctly.
>>               <dependency>
>>                         <groupId>org.hibernate.ehcache</groupId>
>>                         <artifactId>ehcache</artifactId>
>>                         <version>3.3.1.GA</version>
>>                 </dependency>
>>
>> whereas its calling for path-
>> org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA
>> what i feel is some1 (internal) has wrongly mentioned the path in one of
>> the dependent jar's. I need to dig which jar is causing this issue. but
>> unable to find the dependency jars'
>>
>> pls advice to find that?
> 
> Start with -X option
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4827004.html
> 
> To unsubscribe from mvn dependency tree not working, visit http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4822352&code=a2FwaWxhLmtvaGxpQGdtYWlsLmNvbXw0ODIyMzUyfDk2MjU3ODY3Ng==
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4827017.html
> Sent from the Maven - Users mailing list archive at Nabble.com.


-- 
Dennis Lundberg

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


Re: mvn dependency tree not working

Posted by Jörg Schaible <jo...@scalaris.com>.
kapila wrote:

> Thanks but I have tried to see that with debug option X and U . Nothing I
> could infer. But don't understand why I can't get dependency tree print.

It cannot display what does not exist: org.hibernate.ehcache:hibernate-
core:jar:3.3.1.GA

- Jörg


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


Re: mvn dependency tree not working

Posted by kapila <ka...@gmail.com>.
Thanks but I have tried to see that with debug option X and U . Nothing I could infer. But don't understand why I can't get dependency tree print.

Pls help.
Sent from BlackBerry® on Airtel

-----Original Message-----
From: Jörg Schaible [via Maven] <ml...@n5.nabble.com>
Date: Wed, 21 Sep 2011 09:32:21 
To: kapila<ka...@gmail.com>
Subject: Re: mvn dependency tree not working



kapilanarang wrote:

> Thanks Dennis for reply.
> path in central is correct & in specific pom - its mentioned correctly.
>               <dependency>
>                         <groupId>org.hibernate.ehcache</groupId>
>                         <artifactId>ehcache</artifactId>
>                         <version>3.3.1.GA</version>
>                 </dependency>
> 
> whereas its calling for path-
> org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA
> what i feel is some1 (internal) has wrongly mentioned the path in one of
> the dependent jar's. I need to dig which jar is causing this issue. but
> unable to find the dependency jars'
> 
> pls advice to find that?

Start with -X option

- Jörg


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



_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4827004.html

To unsubscribe from mvn dependency tree not working, visit http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4822352&code=a2FwaWxhLmtvaGxpQGdtYWlsLmNvbXw0ODIyMzUyfDk2MjU3ODY3Ng==


--
View this message in context: http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4827017.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: mvn dependency tree not working

Posted by Jörg Schaible <jo...@gmx.de>.
kapilanarang wrote:

> Thanks Dennis for reply.
> path in central is correct & in specific pom - its mentioned correctly.
>               <dependency>
>                         <groupId>org.hibernate.ehcache</groupId>
>                         <artifactId>ehcache</artifactId>
>                         <version>3.3.1.GA</version>
>                 </dependency>
> 
> whereas its calling for path-
> org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA
> what i feel is some1 (internal) has wrongly mentioned the path in one of
> the dependent jar's. I need to dig which jar is causing this issue. but
> unable to find the dependency jars'
> 
> pls advice to find that?

Start with -X option

- Jörg


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


Re: mvn dependency tree not working

Posted by Dennis Lundberg <de...@gmail.com>.
Hi

No, it is not correct in your POM. You should have this

<groupId>org.hibernate<groupId>

On Wednesday, September 21, 2011, kapilanarang <ka...@gmail.com>
wrote:
> Thanks Dennis for reply.
> path in central is correct & in specific pom - its mentioned correctly.
>              <dependency>
>                        <groupId>org.hibernate.ehcache</groupId>
>                        <artifactId>ehcache</artifactId>
>                        <version>3.3.1.GA</version>
>                </dependency>
>
> whereas its calling for path-
> org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA
> what i feel is some1 (internal) has wrongly mentioned the path in one of
the
> dependent jar's. I need to dig which jar is causing this issue. but unable
> to find the dependency jars'
>
> pls advice to find that?
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4825431.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
>
>

-- 
Dennis Lundberg

Re: mvn dependency tree not working

Posted by kapilanarang <ka...@gmail.com>.
Thanks Dennis for reply.
path in central is correct & in specific pom - its mentioned correctly.
              <dependency>
                        <groupId>org.hibernate.ehcache</groupId>
                        <artifactId>ehcache</artifactId>
                        <version>3.3.1.GA</version>
                </dependency>

whereas its calling for path-
org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA
what i feel is some1 (internal) has wrongly mentioned the path in one of the
dependent jar's. I need to dig which jar is causing this issue. but unable
to find the dependency jars'

pls advice to find that?

--
View this message in context: http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4825431.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: mvn dependency tree not working

Posted by Dennis Lundberg <de...@apache.org>.
Hi


On 2011-09-20 14:30, kapila wrote:
> While building a sub-project where I am trying to find the jar dependency
> showing up in compliation which i am not able to locate in code/pom. 
> Tried command ;- mvn dependency:tree 
> this doesnt show up the dependency tree 
> 
> this jar doesnt exist on nexus even, so i wanna see where is this defined in
> pom or dependency jar is calling it. 
> 
> error is 
> 
> Downloaded:
> http://IP:8081/nexus/content/groups/public-snapshots/abc/abc-web-utils/1.1-SNAPSHOT/maven-metadata.xml
> (351 B at 6.0 KB/sec) 
> Downloading:
> http://IP:8081/nexus/content/groups/public/org/hibernate/ehcache/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.pom 
> [WARNING] The POM for org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA is
> missing, no dependency information available 

The message above says that it cannot find
org.hibernate.ehcache:hibernate-core:3.3.1.GA in your Nexus repository.

Looking at what is available in the Central repository it looks like you
have used the wrong groupId in your POM. It should be "org.hibernate".

The dependency can't do it's job if it cannot find all the dependencies
for a given project.

> [INFO]
> ------------------------------------------------------------------------ 
> [INFO] BUILD FAILURE 
> [INFO]
> ------------------------------------------------------------------------ 
> [INFO] Total time: 6.065s 
> [INFO] Finished at: Tue Sep 20 16:29:32 IST 2011 
> [INFO] Final Memory: 8M/1009M 
> [INFO]
> ------------------------------------------------------------------------ 
> [ERROR] Failed to execute goal on project com.abc.data.web: Could not
> resolve dependencies for project com.abc:com.abc.data.web:war:3.0.0.M1:
> Could not find artifact org.hibernate.ehcache:hibernate-core:jar:3.3.1.GA in
> abc (http://IP:8081/nexus/content/groups/public) -> [Help 1] 
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch. 
> [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
> read the following articles: 
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 
> [kapila.narang@svn data-web]$ pwd 
> /home/kapilacvs/data-3.0/data-web/data-web 
> 
> have made entry in pom also - 
>  <plugin> 
>                                 <groupId>org.apache.maven.plugins</groupId> 
>                                
> <artifactId>maven-dependency-plugin</artifactId> 
>                                 <version>2.3</version> 
>                         </plugin> 
> 
> maven version i am using is /usr/local/apache-maven-3.0/bin/mvn 
> 
> i have tried to run same command- mvn dependency:analyze-only on its parent
> pom its runs fine for other sub-projects. but give issue in this specific
> project. Doesn't give any dependency graph at all build gives build failure. 
> 
> was trying to understand what harm can these make expect cleaner code- 
> 
> [WARNING] Used undeclared dependencies found: 
> [WARNING] Unused declared dependencies found: 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/mvn-dependency-tree-not-working-tp4822352p4822352.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
> 
> 


-- 
Dennis Lundberg

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