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:[email protected]] Sent: Friday, December 19, 2008 11:17 AM To: [email protected] 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:[email protected]] >> Sent: Friday, December 19, 2008 10:46 AM >> To: [email protected] >> 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: [email protected] > For additional commands, e-mail: [email protected] > > > -- 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
