Bonjour,

Voila mon problème, j'essaie d'utiliser le plugin maven-jaxb-schemagen-plugin pour généré mon schema xsd.

Voici ce que j'ai fait :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
<plugin>
                <groupId>com.sun.tools.jxc.maven2</groupId>
                <artifactId>maven-jaxb-schemagen-plugin</artifactId>
                <version>1.2</version>
                <dependencies>
                    <dependency>
                        <groupId>com.sun.xml.bind</groupId>
                        <artifactId>jaxb-impl</artifactId>
                        <version>2.1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.xml.bind</groupId>
                        <artifactId>jaxb-api</artifactId>
                        <version>2.2</version>
                    </dependency>
                    <dependency>
                        <groupId>com.sun.xml.bind</groupId>
                        <artifactId>jaxb-xjc</artifactId>
                        <version>2.1.9</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <configuration>
                            <project>${project}</project>
                            <schemas>
                                <schema>
                                    <namespace>noName</namespace>
                                    <file>schemafilename.xsd</file>
                                </schema>
                            </schemas>
                            <srcdir>src/main/java/com/archipel/licensing/binding/jaxb</srcdir>
                            <verbose>true</verbose>
 
                        </configuration>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
Ceci me génére bien un fichier avec les données voulu cependant les balises :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
<namespace>noName</namespace>
<file>schemafilename.xsd</file>
ne sont pas pris en compte puisque le fichier généré s'appel schema1.xsd !!

Quelqu'un serais résoudre ce problème ?
je veux pas de solution genre modifier le nom après !