Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.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
eclipse:clean eclipse:eclipse-maven命令用法_Eclipse_Web Services_Maven_M2e_Wsimport - Fatal编程技术网

eclipse:clean eclipse:eclipse-maven命令用法

eclipse:clean eclipse:eclipse-maven命令用法,eclipse,web-services,maven,m2e,wsimport,Eclipse,Web Services,Maven,M2e,Wsimport,我有一个maven项目,在该项目中,我使用wsimport作为项目构建期间的目标来使用Web服务 <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <v

我有一个maven项目,在该项目中,我使用
wsimport
作为项目构建期间的目标来使用Web服务

<build>
  <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jaxws-maven-plugin</artifactId>
            <version>1.10</version>
            <executions>
                <execution>
                    <goals>
                        <goal>wsimport</goal>
                    </goals>
                </execution>
            </executions>
            <!-- -->
            <configuration>
                <wsdlUrls>
                    <wsdlUrl>http://localhost:8081/email-service/services/EmailService?wsdl</wsdlUrl>
                </wsdlUrls>
                <sourceDestDir>${project.build.directory}/generated</sourceDestDir>
                <verbose>true</verbose>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
    </plugins>
<finalName>EmailServiceClient</finalName>
我做到了,它解决了问题。我能够非常轻松地使用这些生成的类。现在我想知道

  • 这个命令到底发生了什么
  • 有什么用
  • 我是否真的遵循了正确的消费方式?我知道我也可以使用
    wsdl2java
    ,但这有什么错

有没有人遇到过这种情况?请解释一下。谢谢大家!

我不确定问题背后的原因“当我试图访问src目录中生成的任何类时,我收到编译器错误,说明该类未定义。” 但我可以告诉你你所使用的命令的含义

据我所知,在maven中,我们可以一次定义多个目标来执行

eclipse:clean   \\Deletes the .project, .classpath, .wtpmodules files and .settings  folder used by Eclipse.

eclipse:eclipse \\build the project into eclipse project like structure.
eclipse:clean   \\Deletes the .project, .classpath, .wtpmodules files and .settings  folder used by Eclipse.

eclipse:eclipse \\build the project into eclipse project like structure.