In your pom.xml file add the following:

        <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>
                </plugins>
        </build>

Thanks,
Daniel King
Vurv

The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify me immediately by replying to the
message and deleting it from your computer. Thank you. 

-----Original Message-----
From: mikeottinger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 24, 2008 4:06 PM
To: users@maven.apache.org
Subject: Adding maven-compiler-plugin to super POM


Hello, I'm trying to come up with a way such that new maven projects I
create
are ready to use JDK 1.5 by inheritance from a super POM. I'm having no
luck, hence this post. I'm new to maven (thanks to this forum for
telling me
maven defaults to jdk 1.3) so super POMs are a little unfamiliar to me,
from
searching this forum I'm told that creating a pom.xml in the parent
directory of my project "somehow" does the trick. I created one, added
the
plugin for maven-compiler-plugin, ran mvn install, but I still get jdk
compiling errors. Does anyone have any suggestions in setting a jdk
level
globally for my environment? Are super POMs even the way to go? I tend
to
create a lot of little projects for prototyping and having to tell Maven
I
want jdk 1.5 for each of them is annoying. Thanks in advance!
-- 
View this message in context:
http://www.nabble.com/Adding-maven-compiler-plugin-to-super-POM-tp168519
94s177p16851994.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

Reply via email to