Hello,
> <configuration>
>     <source>1.5</source>
>     <target>1.5</target>
> </configuration>
If that's true, I'm confused by the settings.
Why Maven(or javac) can compile sources to 1.5-compatible classes at
1.4.2JRE(or 1.4.2 javac)?
In order to fulfil the requirement, I think must install JDK1.5 firstly.
Then use the real jre1.5.0 and configuration quoted above.

a cup of Java, cheers!
Sha Jiang


Julio S. G. wrote:
> 
>    Hi Allan,
> 
>    Add these lines to you pom.xml:
> 
> <project>
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> </project>
> 
> Julio
> 
> 
> On 11/10/06, Allan Valeriano <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>>
>> I'm having problems setting up a new jre to run mvn install.
>> My default java version is 1.4.2_11, but I need maven to use jre 5 for
>> it.
>> I've read the FAQ, but I must say the example for it is not really
>> helpful.
>> Could somebody give me a hand on this sending a complete example?
>>
>>
>> thanks in advance
>> Allan Valeriano
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Setting-up-a-new-jre-to-maven-tf2610500s177.html#a7299977
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to