i have the following dependency in my app as I need some classes from rt.jar.
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0_06</version>
<scope>system</scope>
<systemPath>${env.JAVA_HOME}/jre/lib/rt.jar</systemPath>
</dependency>
I actually did mvn clean compile -X
to print all debug info. It looks like it can identify the location on -classpath
but always complains the the package doesn't exist during build failure.
Is there something I need to configure specifically to add this thing as part of my build?