Hi Christian, the plugin 3.1.0 enables MWE 2 only for Maven 3 / Tycho based workflows, not with Maven 2. Everything else is untested. Sculptor uses a Maven 2 based workflow, but consult those dependencies: https://fornax.svn.sourceforge.net/svnroot/fornax/trunk/cartridges/sculptor/org.fornax.cartridges.sculptor.dsl/pom.xml
Note that they do not use MWE2! So basically there are two options at the moment: - Maven2, MWE(1), Xtext 1.0.1, Fornax Plugin >= 3.0.1 - Maven3, Tycho, MWE2, Xtext 1.0.0, Fornax Plugin >= 3.1.0 I would guess that the combination - Maven2, MWE2, Xtext 1.0.1, Fornax Plugin >= 3.1.0 would also work if using the right dependencies, but as said, untested yet. Basically the 3.1.0 plugin recognizes "MWE2" as new Workflow Engine and knows the Launcher class for it. Further, it always spawns a new JVM for execution, since I did not suceed to let a MWE2 workflow run within Maven's VM. Version 3.2.0 will add setting of JVM options. A snapshot is available. Best wishes, ~Karsten Am 22.09.2010 um 08:26 schrieb cmuelder: > > Hi Guys, > > I am trying to configure my xtext projects to be build with maven2! > This is > what i found for the configuration in the fornax wiki: > > <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/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.nextlevel.fastlane</groupId> > <artifactId>com.nextlevel.fastlane.dsl</artifactId> > <version>1.0-SNAPSHOT</version> > <name>com.nextlevel.fastlane.dsl</name> > > <dependencies> > <dependency> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > <version>1.2.14</version> > </dependency> > <dependency> > <groupId>org.eclipse</groupId> > <artifactId>osgi</artifactId> > <version>3.3.0-v20070530</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.openarchitectureware</groupId> > <artifactId>oaw-uml2-adapter</artifactId> > <version>4.3.1</version> > </dependency> > <dependency> > <groupId>org.openarchitectureware</groupId> > <artifactId>oaw-core-emftools</artifactId> > <version>4.3.1</version> > </dependency> > <dependency> > <groupId>org.fornax.openarchitectureware</groupId> > <artifactId>oaw-uml2</artifactId> > <version>4.3.1</version> > <type>pom</type> > <scope>runtime</scope> > </dependency> > <dependency> > <groupId>org.eclipse.core</groupId> > <artifactId>jobs</artifactId> > <version>3.3.0-v20070423</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.eclipse.core</groupId> > <artifactId>contenttype</artifactId> > <version>3.2.100-v20070319</version> > <scope>provided</scope> > </dependency> > > </dependencies> > > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > > <artifactId>build-helper-maven-plugin</artifactId> > <version>1.5</version> > <executions> > <execution> > <id>add-source</id> > <phase>generate-sources</phase> > <goals> > <goal>add-source</goal> > </goals> > <configuration> > <sources> > > <source>${basedir}/src</source> > </sources> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.fornax.toolsupport</groupId> > <artifactId>fornax-oaw-m2-plugin</artifactId> > <version>3.1.0</version> > <configuration> > > <workflowDescriptor>src/com/nextlevel/fastlane/ > GenerateFastlaneDSL.mwe2</workflowDescriptor> > <workflowEngine>mwe2</workflowEngine> > </configuration> > <executions> > <execution> > <phase>generate-sources</phase> > <goals> > > <goal>run-workflow</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > </project> > > If i start this from the console, i get a stackoverflow error! First > there > are many info logs like this: > INFO] Preparing fornax-oaw-m2:run-workflow > > and the error that i get is this: > > [INFO] Trace > java.lang.StackOverflowError > at java.util.AbstractList$Itr.next(AbstractList.java:345) > at > org > .apache.maven.project.ModelUtils.cloneListOfStrings(ModelUtils.java: > 1431) > at > org > .apache > .maven.project.ModelUtils.clonePluginExecution(ModelUtils.java:1369) > at > org.apache.maven.project.ModelUtils > $15.cloneModelPart(ModelUtils.java:191) > at > org.apache.maven.project.ModelUtils.cloneList(ModelUtils.java:1161) > at > org.apache.maven.project.ModelUtils.clonePlugin(ModelUtils.java:1349) > at > org.apache.maven.project.ModelUtils$2.cloneModelPart(ModelUtils.java: > 87) > at > org.apache.maven.project.ModelUtils.cloneList(ModelUtils.java:1161) > at > org > .apache > .maven.project.ModelUtils.cloneBuildBaseFields(ModelUtils.java:1301) > at > org.apache.maven.project.ModelUtils.cloneBuild(ModelUtils.java:1279) > at > org.apache.maven.project.ModelUtils.cloneModel(ModelUtils.java:956) > at > org.apache.maven.project.MavenProject.deepCopy(MavenProject.java:267) > at > org.apache.maven.project.MavenProject.<init>(MavenProject.java:187) > at > org > .apache > .maven > .lifecycle > .DefaultLifecycleExecutor > .createExecutionProject(DefaultLifecycleExecutor.java:731) > > Anyone seen this before? > @Karsten: you mentioned that there has been a problem with mwe2 > xtext and > maven before. But with plugin version 3.1.0 this should be solved?! > > Best regards, > Christian > -- > View this message in context: > http://old.nabble.com/Run-mwe2-workflow-with-maven-2-tp29780306s17564p29780306.html > Sent from the Fornax-Platform mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Fornax-developer mailing list > Fornax-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fornax-developer ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer