chronos
chronos copied to clipboard
Make maven build independent of missing dependencies
After having cloned the project from git, the build fails because it cannot resolve some transitive dependencies from zookeeper and the used maven-thrift-plugin is not available on the central repository.
Add the following exclusions for the missing jmx and jms libraries to pom.xml for chorons-client:
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.4</version>
<exclusions>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
</exclusions>
</dependency>
and upgrade maven thrift plugin to 0.1.11:
<plugin>
<groupId>org.apache.thrift.tools</groupId>
<artifactId>maven-thrift-plugin</artifactId>
<version>0.1.11</version>
...
</plugin>