我有一个基于maven的构建脚本,它运行jaxb2-maven-plugin (schemagen)从Java类生成XSD。我做了一些错误的事情,它不会生成它。
该项目非常复杂,很难在控制台中重新创建确切的命令行。
在我的.pom文件中,我只有
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>schemagen</id>
<goals>
<goal>schemagen</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
</plugin>我可以使用哪些选项来命令schemagen / plugin来显示控制台上的错误原因?
发布于 2016-02-25 19:57:59
对您问题的回答
我没有发现你的XSD文件中有任何错误,因为我使用了相同的POM文件,它在我的目标directory.
/** / package com.example;/** * @author Praveen * */公有类User {私有字符串名;私有字符串名;公共字符串getEname() {返回名称;}公共无效setEname(字符串名称){ this.ename = ename;}公共字符串getDesignation() {返回指定;} public void setDesignation(字符串指定){ this.designation =指定;} }
4.0.0 org.app示例0.0.1-快照org.codehaus.mojojaxb2-maven-plugin 1.6模式模式**/*..java
全新安装-e


https://stackoverflow.com/questions/35625227
复制相似问题