In the meantime we have found a mistake in the code.
 
There is nowhere written that property file must have the same name as
workflow file. So in our case it has to be generateAll.properties 





DenisR wrote:
> 
> We are trying to use OAW with the maven2 plugin from fornax-platform.
> Our workflow executes nicely in eclipse but when using with maven we get
> the following errors:
> 
> 1624 ERROR WorkflowRunner     - property srcGenDir not specified.
> Dereferenced at in generateAll.oaw:10
> 1624 ERROR WorkflowRunner     - property srcGenDir not specified.
> Dereferenced at in xxx/xxx/xxx/adsl/generator/generateAll.oaw:38
> 1624 ERROR WorkflowRunner     - property srcDir not specified.
> Dereferenced at in xxx/xxx/xxx/adsl/generator/generateAll.oaw:39
> ...
> ...
> ...
> ...
> 
> It worked before when we were using <property name = ....> in our
> generateAll.oaw file,
> but it stopped working after we replaced <property name = ....> with
>  <property file="generate.properties"/> in our generateAll.oaw file.
> 
> generate.properties file:
> srcDir=src/main/java/
> srcGenDir=src/generated/java/
> srcTestDir=src/test/java
> srcTestGenDir=src/test/generated/java
> resTestDir=src/test/resources
> resDir=src/main/resources
> resGenDir=src/generated/resources
> resTestGenDir=src/test/generated/resources
> templateDir=target/templates
> 
> 
> POM file:
> <build>
>               <plugins>
>                       <plugin>
>                                       
> <groupId>org.fornax.toolsupport</groupId>
>                                       
> <artifactId>fornax-oaw-m2-plugin</artifactId>
>                                       <version>2.1.0</version>
>                                       <configuration>
>                                               <property file = 
> "generate.properties" />
>                                               
> <workflowDescriptor>generateAll.oaw</workflowDescriptor>
>                                       </configuration>
>                                       <executions>
>                                               <execution>
>                                                       
> <phase>generate-sources</phase>
>                                                       <goals>
>                                                               
> <goal>run-workflow</goal>
>                                                       </goals>
>                                               </execution>
>                                       </executions>                           
>                               </plugin>               
>               </plugins>
> 
> 
> We can't find a solution :( What are we doing wrong?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Workflow-invoked-from-maven-can%27t-read-property-file-tp20009710s17564p20090686.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to