On 8 August 2014 03:32, Joshua Bailey <[email protected]> wrote:
> I have two branches of code. One compiles without a hitch, the other > complains about this: > > Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project thebookgrove-catalog: Compilation failure: > Compilation failure: > [ERROR] > /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23] > package sun.security.ssl does not exist > [ERROR] > /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29] > cannot find symbol > > I couldn't find any help with Google, so you are my last resort :( Option 1) It's been a while since I tinkered in the security spaces but... Are you sure you should be using sun.* packages? These are normally internal implementation stuff. You should be using the java.* interfaces instead. (http://openjdk.java.net/groups/security/ sums this up - and http://docs.oracle.com/javase/7/docs/api/ doesn't like JavaDoc for sun.* stuff) Option 2) Guesses are that the two branches are using different environments. Run mvn -X on both branches piping output to a file. You can start with diff to see whether you get lucky and spot the problems. Otherwise, its a line by line comb to see what the differences are and whether these are the cause of your problems. Are you building with a non-Oracle jdk in the second branch - which obviously wont have the sun.* implementation stuff.
