Maven not adding JAR to project when using mvn compile but does when using mvn eclipse:eclipse -
i need download quartz scheduler. added dependency pom.xml
, nedded sl4j
scheduling. here pom.xml
<dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.17</version> <exclusions> <exclusion> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>1.5.6</version> <exclusions> <exclusion> <groupid>log4j</groupid> <artifactid>log4j</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.quartz-scheduler</groupid> <artifactid>quartz</artifactid> <version>1.8.5</version> </dependency>
when run mvn compile
command, downloading quarts jar not adding eclipse project. when run mvn eclipse:eclipse
adding jar project. why happening? why mvn compile
not adding jar project?
how can it's getting downloaded on eclipse:eclipse, if doing project refresh in eclipse note doing eclipse: eclipse modify the.classpath of project , jar reflect. behavior happens when project imported done existing java project.
Comments
Post a Comment