Maven determine what version of the dependency is being used -


i have inherited maven project (i still learning maven).

the project has 3 modules there parent pom 3 modules inherit from.

i need make changes pom.xml changes requested.

after made changes , run project got error.

caused by: java.lang.classnotfoundexception: org.quartz.spi.classloadhelper 

so noticed pom.xml had exclusion follows:

   <dependency>         <groupid>com.mycompany</groupid>         <artifactid>framework</artifactid>         <version>1.0.9</version>         <exclusions>             <exclusion>                 <groupid>org.quartz-scheduler</groupid>                 <artifactid>quartz</artifactid>             </exclusion>         <exclusion>     </dependency> 

so removed exclusion , ran project again following error

    caused by: java.lang.incompatibleclasschangeerror:  class org.springframework.scheduling.quartz.crontriggerbean  has interface org.quartz.crontrigger super class 

so looks exclusion meant because other dependency satisfying quartz dependency.

and looks after added new dependencies somehow quartz dependency has been excluded.

my question is:

how determine bringing in quartz dependency ? how ensure adding new dependencies not exclude existing quartz dependency ?

take @ command

    mvn dependency:tree  

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -