I am able build my java project on my local machine, it builds successfully using maven. However, when I build it on a Jenkins machine, i get a compile error:
package javax.jms does not exist
What does this mean? Where is it looking for javax.jms? In local m2 repo, classpath?
I had to make the following changes to my pom.xml to get it to work on Linux:
a) Explicitly stated maven-site-plugin version to 2.1. org.apache.maven.plugins maven-site-plugin 2.1
b) Changed maven-surefire-plugin version from 2.4.3 to 2.18.1 maven-surefire-plugin 2.18.1
c) Added the following dependencies :
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.xx.yyy</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.xx.yyy</groupId>
<artifactId>orm</artifactId>
<version>3.1.0.5</version>
</dependency>
<dependency>
<groupId>org.springframework.ldap</groupId>
<artifactId>spring-ldap-core</artifactId>
<version>1.3.0.RELEASE</version>
</dependency>
Why do I have to change the pom.xml on Linux. The build works on my Windows 7 machine without changing the pom.xml.