My Maven非常简单:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>mavenproject4</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>mavenproject4</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<wsdlUrls>
<wsdlUrl>
http://localhost:8080/almexOffice/TarifWS?wsdl
</wsdlUrl>
</wsdlUrls>
<packageName>com.mycompany
</packageName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
我想从WSDL文件创建生成的源类。就我而言,它位于
位置http://localhost:8080/almexOffice/TarifWS?wsdl.
当我运行安装/构建时,我得到的输出如下所示:
--- maven-clean-plugin:2.4.1:clean(default-clean)@mavenproject4 ---正在删除 C:\ Users \用户劳伦\文件\的NetBeansProjects \ mavenproject4 \目标
> --- jaxws-maven-plugin:1.10:wsimport (default) @ mavenproject4 --- Processing: http://mylocalhosthere:8080/almexOffice/TarifWS?wsdl
> jaxws:wsimport args: [-s,
> C:\Users\lauren\Documents\NetBeansProjects\mavenproject4\target\jaxws\wsimport\java,
> -d, C:\Users\lauren\Documents\NetBeansProjects\mavenproject4\target\classes,
> -p, com.mycompany, http://mylocalhosthere:8080/almexOffice/TarifWS?wsdl] parsing WSDL...
生成代码......
编译代码......
无所事事,没有找到WSDL!
--- maven-resources-plugin:2.5:resources(default-resources)@mavenproject4 --- [debug] execute contextualize使用'UTF-8'编码 复制过滤后的资源。跳过不存在的resourceDirectory C:\ Users \用户劳伦\文件\的NetBeansProjects \ mavenproject4 \ SRC \主\资源
现在当我查看源代码(target,generated-src)等时,我找不到生成的类。
这些生成的文件在哪里,它们是否存在?