Does mevenide respect the sources when building? (Netbeans 6.1/mevenide 3.1)

View: New views
2 Messages — Rating Filter:   Alert me  

Does mevenide respect the sources when building? (Netbeans 6.1/mevenide 3.1)

by Magne Nordtveit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have currently installed java 1.6 on the computer im working on. One
of the projects im working on needs java 1.5, but selecting 1.5 from
sources dosn't seem to do much... I can still use classes from the 1.6
API and compile with no issues even tho i have the following defined in
my pom.xml file for the project:

<build>
  <plugins>
    <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
      </configuration>
    </plugin>
  </plugins>
</build>

Is there any way I can make the compiler check for 1.5 compability when
compiling?

Cheers,
Magne

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Does mevenide respect the sources when building? (Netbeans 6.1/mevenide 3.1)

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

check the FAQ.
http://mevenide.codehaus.org/m2-site/faq.html#question1
the ultimate solution for the future is
http://docs.codehaus.org/display/MAVEN/Toolchains

Milos


On Tue, May 13, 2008 at 4:54 PM, Magne Nordtveit
<magne.nordtveit@...> wrote:

> I have currently installed java 1.6 on the computer im working on. One
>  of the projects im working on needs java 1.5, but selecting 1.5 from
>  sources dosn't seem to do much... I can still use classes from the 1.6
>  API and compile with no issues even tho i have the following defined in
>  my pom.xml file for the project:
>
>  <build>
>   <plugins>
>     <plugin>
>       <artifactId>maven-compiler-plugin</artifactId>
>       <configuration>
>         <source>1.5</source>
>         <target>1.5</target>
>       </configuration>
>     </plugin>
>   </plugins>
>  </build>
>
>  Is there any way I can make the compiler check for 1.5 compability when
>  compiling?
>
>  Cheers,
>  Magne
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email