Hi, I'm quite new to Lift/Scala and have just started out with a new webapplication. My preferred environment for development is eclipse 3.5 J2EE version and the newest scala plugin is installed on windows xp.
I have created a Lift project using the maven archetype system which also runs as expected using jetty:run. However when I try to to create an eclipse project using the target eclipse:eclipse I get a eclipse project but there are some problems with the dependencies to the project. The only dependencies eclipse refers to is the standard scala library version(2.7.5.final) and all other dependencies from the pom file is not known by eclipse, hibernate, derby etc. This results in a project with a lot of compile errors and a pretty bad code completion. The project compiles with mvn compile . Am I missing something out here, or what is the problem. Best Regards Niels My pom is like <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>dk.bc</groupId> <artifactId>boligven</artifactId> <version>0.1</version> <packaging>war</packaging> <name>boligven</name> <inceptionYear>2007</inceptionYear> <properties> <scala.version>2.7.3</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> </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-util</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>net.liftweb</groupId> <artifactId>lift-webkit</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>net.liftweb</groupId> <artifactId>lift-mapper</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>net.liftweb</groupId> <artifactId>lift-core</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>net.liftweb</groupId> <artifactId>lift-jpa</artifactId> <version>1.1-M3</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>geronimo-spec</groupId> <artifactId>geronimo-spec-ejb</artifactId> <version>2.1-rc4</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>3.3.1.ga</version> <exclusions> <exclusion> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId> <version>[6.1.6,)</version> <scope>test</scope> </dependency> <!-- for LiftConsole --> <dependency> <groupId>geronimo-spec</groupId> <artifactId>geronimo-spec-jta</artifactId> <version>1.0.1B-rc4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-compiler</artifactId> <version>${scala.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.4.2.0</version> <optional>true</optional> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.4</version> <scope>test</scope> </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-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> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
