The first sentence turned out wrong. It should read:
I had a quick look at the plugin's ITs and there is no verification of this
functionality.

/Anders


On Mon, May 27, 2013 at 3:49 PM, Anders Hammar <[email protected]> wrote:

> I had a quick look at the plugin's ITs and there is verification of this
> functionality. SO it might very well be a bug. At least I can't spot
> anything wrong in your pom snippet. Please file a JIRA ticket with a small
> test project. Also, as there is minimal development on this plugin any
> patches would increase the likelihood of this being fixed.
>
> Btw, your specified output directory path is not good. NEVER go outside of
> your Maven project in the file system. Also, ALWAYS stay within the 
> ${project.build.directory}
> folder. Be sure to use something like that in your test project for the
> ticket.
>
>
> On Mon, May 27, 2013 at 3:07 PM, Miguel Garz <[email protected]>wrote:
>
>> Good morning/afternoon everybody.
>> I'm having some problem with the mojo-Jaxb plugin.
>> What's happening is that I configured the plugin to output the schemas to
>> a specific folder,
>> that works fine, unless I use the <transformSchemas> tag to configure the
>> schema name.
>> In this case, what happens is that the schemas are generated, without the
>> correct name, but in the standard folder (not the one in the
>> <outputDirectory>).
>> Below is my maven pom configuration and also a excerpt of my code (with
>> the annotations),
>> Would someone know what I'm doing wrong or if it is a bug on the plugin?
>> Thanks,
>> Miguel Garz
>>
>> My pom:
>>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>>  <artifactId>jaxb2-maven-plugin</artifactId>
>> <version>1.5</version>
>> <executions>
>>  <execution>
>> <phase>generate-resources</phase>
>> <id>schemagen</id>
>>  <goals>
>> <goal>schemagen</goal>
>> </goals>
>>  <configuration>
>> <verbose>true</verbose>
>> <transformSchemas>
>>  <transformSchema>
>> <uri>http://delagelanden.com/rijee6/ws-domain</uri>
>>  <toPrefix>rid</toPrefix>
>> <toFile>ri6-ws-domain</toFile>
>> </transformSchema>
>>  </transformSchemas>
>> <includes>
>> <include>com/delagelanden/rijee6/domain/*.java</include>
>>  </includes>
>> <outputDirectory>${basedir}/../schema/src/main/xsd</outputDirectory>
>>  </configuration>
>> </execution>
>> </executions>
>>  </plugin>
>>
>>
>> My classes:
>>
>> ...
>> @XmlType(namespace="http://delagelanden.com/rijee6/ws-domain"; )
>> public class Project {
>> ...
>>
>>
>>
>

Reply via email to