Hello,
I'm trying to use OAW with the maven2 v2 plugin from fornax-platform.
My workflow executes nicely in eclipse but once I try to run it with
the plugin it produces the following errors:
[INFO] [fornax-oaw-m2:run-workflow {execution: default}]
[INFO] oAW Maven2 Plugin V2.0.0
0 INFO WorkflowRunner - ------------------------------------------------
--------------------------------------
63 INFO WorkflowRunner - openArchitectureWare 4.2.0, Build 200709162219NG
T
78 INFO WorkflowRunner - (c) 2005-2007 openarchitectureware.org and contr
ibutors
78 INFO WorkflowRunner - ------------------------------------------------
--------------------------------------
78 INFO WorkflowRunner - running workflow: generator.oaw
78 INFO WorkflowRunner -
1406 ERROR VisitorCreator - java.lang.RuntimeException: java.lang.NullPointe
rException
1734 ERROR VisitorCreator - java.lang.RuntimeException: java.lang.RuntimeExc
eption: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http://www.eclipse.org/uml2/2.0.0/UML' not found. (file:model/Hobz.profile
.uml, 2, 288)
1766 ERROR WorkflowRunner - Error creating instance of type 'org.openarchite
ctureware.uml2.Setup' : java.lang.NullPointerException [bean bean class='org.ope
narchitectureware.uml2.Setup' in generator.oaw:15]
1766 ERROR WorkflowRunner - Error creating instance of type 'oaw.uml2.profil
e.ProfileMetaModel' : java.lang.RuntimeException: org.eclipse.emf.ecore.resource
.Resource$IOWrappedException: Package with uri 'http://www.eclipse.org/uml2/2.0.
0/UML' not found. (file:model/Hobz.profile.uml, 2, 288) [bean bean class='oaw.um
l2.profile.ProfileMetaModel' id='profile' in generator.oaw:24]
1766 ERROR WorkflowRunner - Workflow interrupted because of configuration er
rors.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
have the following entries in my workflow file:
<bean class="org.openarchitectureware.uml2.Setup"
standardUML2Setup="true" />
<!-- Reads the UML model and stores it into slot named 'model' -->
<component class="org.openarchitectureware.emf.XmiReader">
<modelFile value="${modelFile}" />
<outputSlot value="${modelSlot}" />
</component>
<!-- defines metamodels -->
<bean id="uml2" class="org.openarchitectureware.uml2.UML2MetaModel" />
<bean id="profile" class="oaw.uml2.profile.ProfileMetaModel">
<profile value="${profileFile}" />
</bean>
The pom.xml I am using is attached to this message, all dependencies
are (IMO) being downloaded correctly. Has anybody got an idea where
I'm missing something or in which direction I should search?
Thank you in advance,
Roland
<?xml version="1.0" encoding="UTF-8"?>
<project>
<parent>
<artifactId>hobz.parent</artifactId>
<groupId>hobz.parent</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../hobz.parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>hobz.generator</groupId>
<artifactId>hobz.generator</artifactId>
<packaging>jar</packaging>
<name>Hobz Generator</name>
<version>1.0-SNAPSHOT</version>
<build>
<resources>
<resource>
<directory>src</directory>
</resource>
<resource>
<directory>model</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.fornax.toolsupport</groupId>
<artifactId>fornax-oaw-m2-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<property file="workflow.properties" />
<workflowDescriptor>generator.oaw</workflowDescriptor>
</configuration>
<dependencies>
<dependency>
<groupId>org.fornax.openarchitectureware</groupId>
<artifactId>oaw-uml2</artifactId>
<version>4.2.0</version>
<scope>runtime</scope>
<type>pom</type>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run-workflow</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer