Hi, thanks for your reply,
i changed my plugin configuration and it get like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>castor-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<executions>
<execution>
<configuration>
<schemaDirectory>${basedir}/src/main/resources/castor</schemaDirectory>
<dest>${basedir}/src/main/java</dest>
<packaging>my.example.core.castor</packaging>
<properties>${basedir}/src/main/resources/castor/castorbuilder.properties</properties>
</configuration>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
Now i have the problem that with the command "mvn eclipse:eclipse" it
generate the sources ok using my configuration, however when i use directly
"mvn castor:generate" it still looks in the default directory
/src/main/castor and it doesn't use the dest directory to put the sources
You have an idea, why this could happens?
Thanks
Werner Guttmann wrote:
>
> Hi,
>
> can you please switch to the 2.0-SNAPSHOT version, as this will greatly
> improve your experience.
>
> Regards
> Werner
>
> PS For this to work, you might have to add the Codehaus snapshot
> repository to your list of Maven repositories within your project POM.
>
> eznibe wrote:
>> Hi all,
>>
>> i have a couple of doubts trying to generate the source code from xsd
>> files,
>>
>> using the castor-maven-plugin, i get an error because the basedir doesnt
>> exist, i dont want the default /src/main/castor
>> so i used the below configuration, i dont understand why is still looking
>> for the default directory
>>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>castor-maven-plugin</artifactId>
>> <version>1.0</version>
>> <executions>
>> <execution>
>> <configuration>
>>
>> <properties>src/main/resources/castor/castorbuilder.properties</properties>
>>
>> <schemaDirectory>src/main/resources/castor</schemaDirectory>
>>
>> <packaging>be.platopupils.core.castor</packaging>
>> </configuration>
>> <goals>
>> <goal>generate</goal>
>> </goals>
>>
>> </execution>
>> </executions>
>> </plugin>
>>
>> other question, where can i get the default castorbuilder.properties? and
>> where i have to put it?
>>
>> note: im using castor 1.2
>>
>> thanks in advance
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://www.nabble.com/Problems-trying-to-use-the-maven-source-generator-tp20154634p20205597.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email