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

Reply via email to