Try adding this:

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.0.2</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                    <executions>
                        <execution>
                            <id>java-compile</id>
                            <phase>compile</phase>
                            <goals>
                                <goal>compile</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

To <build><plugins>

(more particularly, the <configuration> section.)

I think that should resolve your present error.

Note that if you are using interleaved scala/java (where the .java files might 
depend on the classes in .scala files), then you need to change your 
maven-scala-plugin block:

                <plugin>
                    <groupId>org.scala-tools</groupId>
                    <artifactId>maven-scala-plugin</artifactId>
                    <version>2.12.2</version>
                    <configuration>
                        <scalaVersion>${scala.version}</scalaVersion>
                    </configuration>
                    <executions>
                        <execution>
                            <id>scala-compile-first</id>
                            <phase>process-resources</phase>
                            <goals>
                                <goal>add-source</goal>
                                <goal>compile</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>


Hope that helps,
-Ross
 

On Jan 3, 2010, at 11:11 PM, Franz Bettag wrote:

> Ty. just switched to -M8.
> 
> here is my pom.xml:
> 
> 
> <project
>       xmlns="http://maven.apache.org/POM/4.0.0";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>bettag.lift</groupId>
>       <artifactId>kundenlogin</artifactId>
>       <version>1.0-SNAPSHOT</version>
>       <packaging>war</packaging>
>       <name>kundenlogin</name>
>       <inceptionYear>2007</inceptionYear>
>       <properties>
>               <scala.version>2.7.7</scala.version>
>       </properties>
> 
>       <repositories>
>               <repository>
>                       <id>scala-tools.org</id>
>                       <name>Scala-Tools Maven2 Repository</name>
>                       <url>http://scala-tools.org/repo-releases</url>
>               </repository>
>               <repository>
>                       <id>evil-packet.org.org</id>
>                       <name>My Maven2 Repository</name>
>                       <url>http://my.repo/m2</url>
>               </repository>
>       </repositories>
> 
>       <pluginRepositories>
>               <pluginRepository>
>                       <id>scala-tools.org</id>
>                       <name>Scala-Tools Maven2 Repository</name>
>                       <url>http://scala-tools.org/repo-releases</url>
>               </pluginRepository>
>       </pluginRepositories>
> 
>       <dependencies>
>               <dependency>
>                       <groupId>org.scala-lang</groupId>
>                       <artifactId>scala-library</artifactId>
>                       <version>${scala.version}</version>
>               </dependency>
>               <dependency>
>                       <groupId>net.liftweb</groupId>
>                       <artifactId>lift-webkit</artifactId>
>                       <version>1.1-M8</version>
>               </dependency>
>               <dependency>
>                       <groupId>net.liftweb</groupId>
>                       <artifactId>lift-mapper</artifactId>
>                       <version>1.1-M8</version>
>               </dependency>
> 
>               <dependency>
>                       <groupId>com.h2database</groupId>
>                       <artifactId>h2</artifactId>
>                       <version>1.2.121</version>
>               </dependency>
> 
>               <dependency>
>                       <groupId>javax.servlet</groupId>
>                       <artifactId>servlet-api</artifactId>
>                       <version>2.5</version>
>                       <scope>provided</scope>
>               </dependency>
>               <dependency>
>                       <groupId>junit</groupId>
>                       <artifactId>junit</artifactId>
>                       <version>4.5</version>
>                       <scope>test</scope>
>               </dependency>
>               <dependency>
>                       <groupId>org.scala-tools.testing</groupId>
>                       <artifactId>specs</artifactId>
>                       <version>1.6.0</version>
>                       <scope>test</scope>
>               </dependency>
>               <dependency>
>                       <groupId>org.mortbay.jetty</groupId>
>                       <artifactId>jetty</artifactId>
>                       <version>[6.1.6, 6.1.19)</version>
>                       <scope>test</scope>
>               </dependency>
>               <!-- for LiftConsole -->
>               <dependency>
>                       <groupId>org.scala-lang</groupId>
>                       <artifactId>scala-compiler</artifactId>
>                       <version>${scala.version}</version>
>                       <scope>test</scope>
>               </dependency>
> 
>               <!-- for Caching -->
> <!--          <dependency>
>                       <groupId>javax.jms</groupId>
>                       <artifactId>jms</artifactId>
>                       <version>1.1</version>
>               </dependency>
>               <dependency>
>                       <groupId>opensymphony</groupId>
>                       <artifactId>oscache</artifactId>
>                       <version>2.4</version>
>               </dependency>-->
> 
>               <!-- Databases -->
>               <dependency>
>                       <groupId>postgresql</groupId>
>                       <artifactId>postgresql</artifactId>
>                       <version>8.4-701.jdbc4</version>
>               </dependency>
> 
> 
>               <dependency>
>                       <groupId>org.apache</groupId>
>                       <artifactId>thrift</artifactId>
>                       <version>0.2.0</version>
>               </dependency>
> 
>               <dependency>
>                       <groupId>org.slf4j</groupId>
>                       <artifactId>nlog4j</artifactId>
>                       <version>1.2.25</version>
>               </dependency>
> 
>       </dependencies>
> 
>       <build>
>               <sourceDirectory>src/main/scala</sourceDirectory>
>               <testSourceDirectory>src/test/scala</testSourceDirectory>
>               <plugins>
>                       <plugin>
>                               <groupId>org.scala-tools</groupId>
>                               <artifactId>maven-scala-plugin</artifactId>
>                               <executions>
>                                       <execution>
>                                               <goals>
>                                                       <goal>compile</goal>
>                                                       <goal>testCompile</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                               <configuration>
>                                       
> <scalaVersion>${scala.version}</scalaVersion>
>                               </configuration>
>                       </plugin>
>                       <plugin>
>                               <groupId>org.mortbay.jetty</groupId>
>                               <artifactId>maven-jetty-plugin</artifactId>
>                               <configuration>
>                                       <contextPath>/</contextPath>
>                                       
> <scanIntervalSeconds>5</scanIntervalSeconds>
>                               </configuration>
>                       </plugin>
>                       <!-- <plugin>
>                               <groupId>net.sf.alchim</groupId>
>                               
> <artifactId>yuicompressor-maven-plugin</artifactId>
>                               <executions>
>                                       <execution>
>                                               <goals>
>                                                       <goal>compress</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                               <configuration>
>                                       <nosuffix>true</nosuffix>
>                               </configuration>
>                       </plugin>-->
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-idea-plugin</artifactId>
>                               <configuration>
>                                       <downloadSources>true</downloadSources>
>                               </configuration>
>                       </plugin>
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-eclipse-plugin</artifactId>
>                               <configuration>
>                                       <downloadSources>true</downloadSources>
>                                       <excludes>
>                                               
> <exclude>org.scala-lang:scala-library</exclude>
>                                       </excludes>
>                                       <classpathContainers>
>                                               
> <classpathContainer>ch.epfl.lamp.sdt.launching.SCALA_CONTAINER</
> classpathContainer>
>                                       </classpathContainers>
>                                       <projectnatures>
>                                               
> <java.lang.String>ch.epfl.lamp.sdt.core.scalanature</
> java.lang.String>
>                                               
> <java.lang.String>org.eclipse.jdt.core.javanature</
> java.lang.String>
>                                       </projectnatures>
>                                       <buildcommands>
>                                               
> <java.lang.String>ch.epfl.lamp.sdt.core.scalabuilder</
> java.lang.String>
>                                       </buildcommands>
>                               </configuration>
>                       </plugin>
>               </plugins>
>       </build>
>       <reporting>
>               <plugins>
>                       <plugin>
>                               <groupId>org.scala-tools</groupId>
>                               <artifactId>maven-scala-plugin</artifactId>
>                               <configuration>
>                                       
> <scalaVersion>${scala.version}</scalaVersion>
>                               </configuration>
>                       </plugin>
>               </plugins>
>       </reporting>
> </project>
> 
> 
> On 4 Jan., 05:05, Naftoli Gugenheim <[email protected]> wrote:
>> You may want to post your current POM.
>> By the way M8 is more stable than M7.
>> 
>> -------------------------------------
>> 
>> Franz Bettag<[email protected]> wrote:
>> 
>> Hey guys,
>> 
>> maybe i got that concept wrong, but i want to include some .java-files
>> (thrift library files) into my liftweb project.
>> in #scala on freenode i was told that scalac can handle .java files.
>> 
>> so i moved my files accordingly, now mvn scala:compile works fine, but
>> mvn jetty:run drops these:
>> 
>> generics are not supported in -source 1.3 (use -source 5 or highter to
>> enable generics).
>> 
>> i am on lift 1.1-m7 and wanted to know where i have to put the -source
>> 5/6 into my pom.xml.
>> 
>> thanks in advance!
>> 
>> --
>> 
>> You received this message because you are subscribed to the Google Groups 
>> "Lift" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group 
>> athttp://groups.google.com/group/liftweb?hl=en.
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to