I got it. This link explains the property to be set in pom.xml

http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/customizations.html

    <properties>
        <netbeans.hint.jdkPlatform>Java_1.4</netbeans.hint.jdkPlatform>
    </properties>

-Askar

On Mon, Nov 16, 2009 at 11:34 AM, Askar Zaidi <askar.za...@gmail.com> wrote:

> 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 <
> stephen.alan.conno...@gmail.com> 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 <askar.za...@gmail.com>:
>> > 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 <
>> > stephen.alan.conno...@gmail.com> wrote:
>> >
>> >> also try changing all the \'s to /'s
>> >>
>> >> 2009/11/16 Wayne Fay <wayne...@gmail.com>:
>> >> >> 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: users-unsubscr...@maven.apache.org
>> >> > For additional commands, e-mail: users-h...@maven.apache.org
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

Reply via email to