BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Maven compiler source setting

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Arthur Chang
Guest





PostPosted: Wed Mar 21, 2007 8:13 am    Post subject: Maven compiler source setting Reply with quote



Hi all,

Anyone who knows how to set maven compiler source to jdk 1.5 for a Maven
project in JB2007.

tks.
Back to top
Gillmer J. Derge [TeamB]
Guest





PostPosted: Wed Mar 21, 2007 8:14 am    Post subject: Re: Maven compiler source setting Reply with quote



Arthur Chang wrote:
Quote:
Anyone who knows how to set maven compiler source to jdk 1.5 for a Maven
project in JB2007.

You should be able to put this in your pom.xml.

<properties>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>

--
Gillmer J. Derge [TeamB]
Back to top
dingfelder
Guest





PostPosted: Thu Mar 22, 2007 7:57 am    Post subject: Re: Maven compiler source setting Reply with quote



for example your pom could be:

<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.yourcompanyname</groupId>
<artifactId>projectname</artifactId>
<version>0.0.1</version>
<description>project description</description>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>LaunchClassFileName</mainClass>
<classpathPrefix>lib</classpathPrefix>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.