You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by aymen83 <ay...@yahoo.fr> on 2008/12/19 16:23:02 UTC

mvn dependency:analyse

hi,
when i tape mvn dependency:analyse i got this error

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Ws Parent POM
[INFO]   WsCommon
[INFO]   WsSchema
[INFO]   WsService Webapp
[INFO]   Web Services Platform
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: dependency:analyse in
org.apache.maven.plugins:maven-dependency-plugin:2.0
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Dec 19 16:19:39 CET 2008
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------

first i thought that the plugin is messing so i addes it in my pom and
compiled the projet which was susccessfully compiled but it seems that
there's no change.
how can i add this goal in my pom?

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093087.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:analyse

Posted by aymen83 <ay...@yahoo.fr>.
so after doing the analyZe i get this erro

invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused:
which i ignore totally the significance.

since i'm not an expert in maven would someone tell me how to deal with
this:

[WARNING] Used undeclared dependencies found:
[WARNING]    javax.xml.bind:jaxb-api:jar:2.1:provided
[WARNING]    org.springframework.ws:spring-xml:jar:1.5.0:compile
[WARNING]    org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[WARNING]    org.aspectj:aspectjweaver:jar:1.5.4:compile
[WARNING]    com.sun.jmx:jmxri:jar:1.2.1:runtime
[WARNING] Unused declared dependencies found:
[WARNING]    org.springframework:spring-web:jar:2.5.6:compile
[WARNING]    com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided
[WARNING]   
org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[WARNING]    org.aspectj:aspectjrt:jar:1.5.4:compile
[WARNING]    org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-|



Todd Thiessen wrote:
> 
> Don't feel too bad. I did something similar when I thought I typed the
> command in correctly but didn't and got an error until much later on.
> There is a fail fast option to Maven and this might help to avoid this
> kind of confusion. I haven't really played with it myself but I thought
> I would mention that it is there.
> 
> ---
> Todd Thiessen
>  
> 
>> -----Original Message-----
>> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
>> Sent: Friday, December 19, 2008 10:46 AM
>> To: users@maven.apache.org
>> Subject: Re: mvn dependency:analyse
>> 
>> 
>> thanks John
>> sometimes i do silly things?
>> 
>> John Prystash wrote:
>> > 
>> > Maybe try:
>> > 
>> > mvn dependency:analyze
>> > 
>> > Using a z instead of s?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093965.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:analyse

Posted by aymen83 <ay...@yahoo.fr>.
so after doing the analyZe i get this erro

invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused:
which i ignore totally the significance.

since i'm not an expert in maven would someone tell me how to deal with
this:

[WARNING] Used undeclared dependencies found:
[WARNING]    javax.xml.bind:jaxb-api:jar:2.1:provided
[WARNING]    org.springframework.ws:spring-xml:jar:1.5.0:compile
[WARNING]    org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[WARNING]    org.aspectj:aspectjweaver:jar:1.5.4:compile
[WARNING]    com.sun.jmx:jmxri:jar:1.2.1:runtime
[WARNING] Unused declared dependencies found:
[WARNING]    org.springframework:spring-web:jar:2.5.6:compile
[WARNING]    com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided
[WARNING]   
org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[WARNING]    org.aspectj:aspectjrt:jar:1.5.4:compile
[WARNING]    org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-|



Todd Thiessen wrote:
> 
> Don't feel too bad. I did something similar when I thought I typed the
> command in correctly but didn't and got an error until much later on.
> There is a fail fast option to Maven and this might help to avoid this
> kind of confusion. I haven't really played with it myself but I thought
> I would mention that it is there.
> 
> ---
> Todd Thiessen
>  
> 
>> -----Original Message-----
>> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
>> Sent: Friday, December 19, 2008 10:46 AM
>> To: users@maven.apache.org
>> Subject: Re: mvn dependency:analyse
>> 
>> 
>> thanks John
>> sometimes i do silly things?
>> 
>> John Prystash wrote:
>> > 
>> > Maybe try:
>> > 
>> > mvn dependency:analyze
>> > 
>> > Using a z instead of s?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093969.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:analyse

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
The used undeclared dependencies are dangerous. This means in your code
you are using things from these dependencies but your pom doesn't
declare them. It's working because they are on the compile classpath via
a transitive dependency. The problem is that these transitives could
change on you and it would take a long time to understand what changing
a caused a compile/runtime error in c.

The unused declared dependencies means that the plugin thinks you have
declared a dependency you aren't using (like unused imports). This can
sometimes be incorrect if the only thing in the dependency you have used
is a constant or an interface because these are compiled away and the
bytecode wouldn't have anything to tell us. Be carful removing these but
fortunately it's easy to tell. Take them out and see if it still builds
clean.

-----Original Message-----
From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
Sent: Friday, December 19, 2008 11:17 AM
To: users@maven.apache.org
Subject: RE: mvn dependency:analyse


so after doing the analyZe i get this erro

invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused:
which i ignore totally the significance.

since i'm not an expert in maven would someone tell me how to deal with
this:

[WARNING] Used undeclared dependencies found:
[WARNING]    javax.xml.bind:jaxb-api:jar:2.1:provided
[WARNING]    org.springframework.ws:spring-xml:jar:1.5.0:compile
[WARNING]    org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[WARNING]    org.aspectj:aspectjweaver:jar:1.5.4:compile
[WARNING]    com.sun.jmx:jmxri:jar:1.2.1:runtime
[WARNING] Unused declared dependencies found:
[WARNING]    org.springframework:spring-web:jar:2.5.6:compile
[WARNING]    com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided
[WARNING]   
org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[WARNING]    org.aspectj:aspectjrt:jar:1.5.4:compile
[WARNING]    org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile


Todd Thiessen wrote:
> 
> Don't feel too bad. I did something similar when I thought I typed the
> command in correctly but didn't and got an error until much later on.
> There is a fail fast option to Maven and this might help to avoid this
> kind of confusion. I haven't really played with it myself but I
thought
> I would mention that it is there.
> 
> ---
> Todd Thiessen
>  
> 
>> -----Original Message-----
>> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
>> Sent: Friday, December 19, 2008 10:46 AM
>> To: users@maven.apache.org
>> Subject: Re: mvn dependency:analyse
>> 
>> 
>> thanks John
>> sometimes i do silly things?
>> 
>> John Prystash wrote:
>> > 
>> > Maybe try:
>> > 
>> > mvn dependency:analyze
>> > 
>> > Using a z instead of s?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093983.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


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


RE: mvn dependency:analyse

Posted by aymen83 <ay...@yahoo.fr>.
so after doing the analyZe i get this erro

invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused:
which i ignore totally the significance.

since i'm not an expert in maven would someone tell me how to deal with
this:

[WARNING] Used undeclared dependencies found:
[WARNING]    javax.xml.bind:jaxb-api:jar:2.1:provided
[WARNING]    org.springframework.ws:spring-xml:jar:1.5.0:compile
[WARNING]    org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[WARNING]    org.aspectj:aspectjweaver:jar:1.5.4:compile
[WARNING]    com.sun.jmx:jmxri:jar:1.2.1:runtime
[WARNING] Unused declared dependencies found:
[WARNING]    org.springframework:spring-web:jar:2.5.6:compile
[WARNING]    com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided
[WARNING]   
org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[WARNING]    org.aspectj:aspectjrt:jar:1.5.4:compile
[WARNING]    org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile


Todd Thiessen wrote:
> 
> Don't feel too bad. I did something similar when I thought I typed the
> command in correctly but didn't and got an error until much later on.
> There is a fail fast option to Maven and this might help to avoid this
> kind of confusion. I haven't really played with it myself but I thought
> I would mention that it is there.
> 
> ---
> Todd Thiessen
>  
> 
>> -----Original Message-----
>> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
>> Sent: Friday, December 19, 2008 10:46 AM
>> To: users@maven.apache.org
>> Subject: Re: mvn dependency:analyse
>> 
>> 
>> thanks John
>> sometimes i do silly things?
>> 
>> John Prystash wrote:
>> > 
>> > Maybe try:
>> > 
>> > mvn dependency:analyze
>> > 
>> > Using a z instead of s?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093983.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:analyse

Posted by aymen83 <ay...@yahoo.fr>.
so after doing the analyZe i get this erro

invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused:
which i ignore totally the significance.

since i'm not an expert in maven would someone tell me how to deal with
this:

[WARNING] Used undeclared dependencies found:
[WARNING]    javax.xml.bind:jaxb-api:jar:2.1:provided
[WARNING]    org.springframework.ws:spring-xml:jar:1.5.0:compile
[WARNING]    org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[WARNING]    org.aspectj:aspectjweaver:jar:1.5.4:compile
[WARNING]    com.sun.jmx:jmxri:jar:1.2.1:runtime
[WARNING] Unused declared dependencies found:
[WARNING]    org.springframework:spring-web:jar:2.5.6:compile
[WARNING]    com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided
[WARNING]   
org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[WARNING]    org.aspectj:aspectjrt:jar:1.5.4:compile
[WARNING]    org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-|



Todd Thiessen wrote:
> 
> Don't feel too bad. I did something similar when I thought I typed the
> command in correctly but didn't and got an error until much later on.
> There is a fail fast option to Maven and this might help to avoid this
> kind of confusion. I haven't really played with it myself but I thought
> I would mention that it is there.
> 
> ---
> Todd Thiessen
>  
> 
>> -----Original Message-----
>> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
>> Sent: Friday, December 19, 2008 10:46 AM
>> To: users@maven.apache.org
>> Subject: Re: mvn dependency:analyse
>> 
>> 
>> thanks John
>> sometimes i do silly things?
>> 
>> John Prystash wrote:
>> > 
>> > Maybe try:
>> > 
>> > mvn dependency:analyze
>> > 
>> > Using a z instead of s?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093963.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:analyse

Posted by Todd Thiessen <th...@nortel.com>.
Don't feel too bad. I did something similar when I thought I typed the
command in correctly but didn't and got an error until much later on.
There is a fail fast option to Maven and this might help to avoid this
kind of confusion. I haven't really played with it myself but I thought
I would mention that it is there.

---
Todd Thiessen
 

> -----Original Message-----
> From: aymen83 [mailto:aymen.bhmida@yahoo.fr] 
> Sent: Friday, December 19, 2008 10:46 AM
> To: users@maven.apache.org
> Subject: Re: mvn dependency:analyse
> 
> 
> thanks John
> sometimes i do silly things?
> 
> John Prystash wrote:
> > 
> > Maybe try:
> > 
> > mvn dependency:analyze
> > 
> > Using a z instead of s?

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


Re: mvn dependency:analyse

Posted by aymen83 <ay...@yahoo.fr>.
thanks John 
sometimes i do silly things?

John Prystash wrote:
> 
> Maybe try:
> 
> mvn dependency:analyze
> 
> Using a z instead of s?
> 
> 
> 
> 
> ________________________________
> From: aymen83 <ay...@yahoo.fr>
> To: users@maven.apache.org
> Sent: Friday, December 19, 2008 10:23:02 AM
> Subject: mvn dependency:analyse
> 
> 
> hi,
> when i tape mvn dependency:analyse i got this error
> 
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Ws Parent POM
> [INFO]   WsCommon
> [INFO]   WsSchema
> [INFO]   WsService Webapp
> [INFO]   Web Services Platform
> [INFO] Searching repository for plugin with prefix: 'dependency'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Required goal not found: dependency:analyse in
> org.apache.maven.plugins:maven-dependency-plugin:2.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Dec 19 16:19:39 CET 2008
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
> 
> first i thought that the plugin is messing so i addes it in my pom and
> compiled the projet which was susccessfully compiled but it seems that
> there's no change.
> how can i add this goal in my pom?
> 
> -- 
> View this message in context:
> http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093087.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
> 
> 
>       
> 

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093440.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:analyse

Posted by John Prystash <st...@yahoo.com>.
Maybe try:

mvn dependency:analyze

Using a z instead of s?




________________________________
From: aymen83 <ay...@yahoo.fr>
To: users@maven.apache.org
Sent: Friday, December 19, 2008 10:23:02 AM
Subject: mvn dependency:analyse


hi,
when i tape mvn dependency:analyse i got this error

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Ws Parent POM
[INFO]   WsCommon
[INFO]   WsSchema
[INFO]   WsService Webapp
[INFO]   Web Services Platform
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: dependency:analyse in
org.apache.maven.plugins:maven-dependency-plugin:2.0
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Dec 19 16:19:39 CET 2008
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------

first i thought that the plugin is messing so i addes it in my pom and
compiled the projet which was susccessfully compiled but it seems that
there's no change.
how can i add this goal in my pom?

-- 
View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093087.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