Maven Plugin: View Classpath properly

suggest/request new features

Maven Plugin: View Classpath properly

Postby jbristow » Fri Oct 07, 2011 6:55 pm

When running the following command:
Code: Select all
mvn initialize benerator:generate


with the following pom setup:
Code: Select all
<plugin>
            <groupId>org.databene</groupId>
            <artifactId>maven-benerator-plugin</artifactId>
            <version>${benerator.version}</version>
            <configuration>
               <descriptor>generateall.ben.xml</descriptor>
            </configuration>
</plugin>


This throws the error:
Code: Select all
[ERROR] Failed to execute goal org.databene:maven-benerator-plugin:0.7.1:generate (default-cli) on project etouchpoint-db-datagen: Execution default-cli of goal org.databene:maven-benerator-plugin:0.7.1:generate failed: Error parsing /directory/mvn/ran/in/generateall.ben.xml: Resource not found: /directory/mvn/ran/in/generateall.ben.xml -> [Help 1]


However, this file existed in the classpath in:
Code: Select all
src/main/resources/generateall.ben.xml


benerator should be able to see files on the classpath, not just from the same directory it's in.
jbristow
 
Posts: 25
Joined: Thu Apr 14, 2011 6:23 pm

Re: Maven Plugin: View Classpath properly

Postby Volker Bergmann » Tue Oct 18, 2011 4:35 pm

Benerator is supposed to see them - this seems to be a bug, not a feature request. I'll check it.
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm

Re: Maven Plugin: View Classpath properly

Postby Volker Bergmann » Tue Oct 18, 2011 4:53 pm

Possibly, the project was not build before calling Benerator?

Did you try

Code: Select all
maven compile benerator:generate


Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm


Return to Benerator Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron