<plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <configuration>
                   <source>1.4</source>
                   <target>1.4</target>
               </configuration>
           </plugin>

perhaps, haven't tested it though?

Frank

On 2/5/07, Frank Bille <[EMAIL PROTECTED]> wrote:

On 2/5/07, Al Maw <[EMAIL PROTECTED]> wrote:
>
> Frank Bille wrote:
> > Yes I agree with Martijn. We really want to catch if any 1.5 stuff is
> > in 1.4projects. But Al, if you can get maven to do that (forcing
> > 1.4 in 1.4 projects) it would be nice. I don't know if maven can do
> that,
> > though.
>
> See my other reply. The thing that matters is what your JAVA_HOME
> environment is set to. If you're running Maven using a JDK5 on the
> command line, it doesn't matter what you do - it won't magically pick
> this up. Which is why we have continuous integration, where we actually
> run Maven with different JDKs depending on the project.
>

javac -source -target ?? I'm almost sure this work, but I don't know if
you can tell maven to use those (it worked with ant AFAIK)

Frank

Reply via email to