When I right-click the source file with errors, it shows JDK1.6 in the bootclasspath. And the tooltip says, "What Java to compile and run against". I see that bootclasspath is a pom.xml tag. Can I use that to point to my JDK 1.4 instead?
On Mon, Nov 16, 2009 at 11:29 AM, Stephen Connolly < [email protected]> wrote: > Have a look at animal-sniffer-maven-plu...@mojo > > and when maven-compiler-plugin:2.1 is released, toolchains will help you > greatly > > 2009/11/16 Askar Zaidi <[email protected]>: > > That did help. I was missing a dependency for the project so I added it > and > > it compiled my sources fine. I'm using the maven plugin for netbeans and > the > > IDE is configured to use JDK 1.6 by default. Theres no way I can switch > my > > IDE to 1.4. So, when I create a maven project in netbeans, can I specify > > which JDK to use? When I create a standard Netbeans project, I can go to > > project properties and change the JDK to whichever version I want to use. > I > > can't find that option for maven type projects. I need to do this so I > don't > > see all the errors in my maven project, you know those red flags which > show > > the errors - even though I can compile it fine with a JDK1.4 pointed in > the > > pom.xml. > > > > Thanks! > > > > On Mon, Nov 16, 2009 at 3:42 AM, Stephen Connolly < > > [email protected]> wrote: > > > >> also try changing all the \'s to /'s > >> > >> 2009/11/16 Wayne Fay <[email protected]>: > >> >> Any pointers are much appreciated. > >> > > >> > Try "mvn -X compile" (debug mode) and see if Maven shows any helpful > >> > information so you can this out. > >> > > >> > Wayne > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [email protected] > >> > For additional commands, e-mail: [email protected] > >> > > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
