Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 成功生成但未找到wsdl文件?_Java_Maven_Jax Ws - Fatal编程技术网

Java 成功生成但未找到wsdl文件?

Java 成功生成但未找到wsdl文件?,java,maven,jax-ws,Java,Maven,Jax Ws,我尝试使用jaxws-maven插件生成wsdl文件 最后:“成功构建”但我的wsdl文件未生成,它通常位于文件夹\target\surefire reports中 但是我在大楼后面没有 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.o

我尝试使用jaxws-maven插件生成wsdl文件 最后:“成功构建”但我的wsdl文件未生成,它通常位于文件夹\target\surefire reports中 但是我在大楼后面没有

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building BSCSwebservices Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.sun.xml.stream.buffer:streambuffer:jar:0.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
 [WARNING] The POM for org.jvnet.staxex:stax-ex:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ BSCSwebservices ---
[debug] execute contextualize
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ BSCSwebservices ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ BSCSwebservices ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\sayed\workspace\BSCSwebservices\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ BSCSwebservices ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ BSCSwebservices ---
[INFO] Surefire report directory: C:\Users\sayed\workspace\BSCSwebservices\target\surefire-reports


这是pom.xml的一部分

<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jaxws-maven-plugin</artifactId>
        <version>1.11</version>
        <executions>
                <execution>
                <configuration>
                <sei>com.ws.BillingAccountRead</sei>
                <genwsdl>true</genwsdl>  
                 <keep>true</keep>

        </configuration>
                <phase>package</phase>      
                        <goals>
                        <goal>wsgen</goal>
                        </goals>


                </execution>

        </executions>


    </plugin>
    </plugins>
    </build>
  </project>

org.codehaus.mojo
jaxws-maven插件
1.11
com.ws.BillingAccountRead
真的
真的
包裹
wsgen
当我使用mvn清洁包-X时

<configuration>
 <destDir default-value="${project.build.outputDirectory}"/>
 <extension default-value="false"/>
 <genWsdl default-value="false"/>
 <keep default-value="false">true</keep>
 <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
 <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
 <project>${project}</project>
 <resourceDestDir default-value="${project.build.directory}/jaxws/wsgen/wsdl"/>

 <sei>com.ws.BillingAccountRead</sei>
 <verbose default-value="false">true</verbose>
</configuration>

真的
${plugin.artifactMap}
${plugin.artifacts}
${project}
com.ws.BillingAccountRead
真的

我认为您应该在“生成源代码”阶段构建wsdl,或者可能是“生成资源”而不是“包”

它应该在
${resourceDestDir}
使用verbose=true进行如下配置,并使用-X标志执行mvn命令,然后仔细查看maven日志

<executions>
                <execution>
                <configuration>
                <sei>com.ws.BillingAccountRead</sei>
                <genwsdl>true</genwsdl>  
                 <keep>true</keep>
                <verbose>true</verbose>
        </configuration>
                <phase>package</phase>      
                        <goals>
                        <goal>wsgen</goal>
                        </goals>


                </execution>

        </executions>

com.ws.BillingAccountRead
真的
真的
真的
包裹
wsgen

尝试使用-X或-e构建以从日志中获取更多信息

这是相同的,没有wsdl文件,但在eclipse的标记中,当我使用generate sources时出现了此消息;说明资源路径位置类型插件执行未包含在生命周期配置中:org.codehaus.mojo:jaxws-maven-Plugin:1.11:wsgen pom.xml行177-maven项目构建生命周期映射问题可能生成到其他地方?你找过了吗?可能它只是临时生成的,后来有东西删除了它?不,它没有生成,这个问题是否与生命周期有关,我在哪里可以找到它。感谢调试的好主意-X将提供大量输出,但您可以更好地了解发生了什么。您可以共享-X标志的输出吗?我使用mvn clean package时唯一的警告-X:[INFO]Building BSCSwebservices Maven Webapp 0.0.1-SNAPSHOT[INFO]----------------------------------------------------------------------------------------[warning]com.sun.xml.stream.buffer:streambuffer:jar:0.4的POM无效可传递依赖项(如果有)将不可用,请启用调试日志以了解更多详细信息[警告]org.jvnet.staxex:stax ex:jar:1.0的POM无效,可传递的dpendencies(如果有)将不可用,启用调试日志以获取更多详细信息构建不可用生命周期
<configuration>
 <destDir default-value="${project.build.outputDirectory}"/>
 <extension default-value="false"/>
 <genWsdl default-value="false"/>
 <keep default-value="false">true</keep>
 <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
 <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
 <project>${project}</project>
 <resourceDestDir default-value="${project.build.directory}/jaxws/wsgen/wsdl"/>

 <sei>com.ws.BillingAccountRead</sei>
 <verbose default-value="false">true</verbose>
</configuration>
<executions>
                <execution>
                <configuration>
                <sei>com.ws.BillingAccountRead</sei>
                <genwsdl>true</genwsdl>  
                 <keep>true</keep>
                <verbose>true</verbose>
        </configuration>
                <phase>package</phase>      
                        <goals>
                        <goal>wsgen</goal>
                        </goals>


                </execution>

        </executions>