m2e: copy-dependencies ist nicht unterstützt von m2e

Bekomme ich diesen Fehler in meinem pom.xml, und ich kann nicht verstehen, was ich ändern muss um eclipse, um das Projekt auszuführen (run as - > maven build)

<build>
    <plugins>
        <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
                <archive>
                    <manifest>
                        <addClasspath>true</addClasspath>
                        <classpathPrefix>lib/</classpathPrefix>
                            <mainClass>com.cc.adapter.mock.InsertAccountStarter</mainClass>
                    </manifest>
                </archive>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
       <!-- Line below is the error -->
                <execution>
                    <phase>install</phase>
                    <goals>
                        <goal>copy-dependencies</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>${project.build.directory}/lib</outputDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-codegen-plugin</artifactId>
            <version>${cxf.version}</version>
            <dependencies>
                <dependency>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>cxf-rt-bindings-soap</artifactId>
                    <version>${cxf.version}</version>
                </dependency>
            </dependencies>
            <executions>
                <execution>
                    <id>generate-sources</id>
                    <configuration>
                        <sourceRoot>src/main/generated</sourceRoot>

                        <wsdlOptions>
                            <wsdlOption>
                                <wsdl>src/main/wsdl/CrmService.wsdl</wsdl>
                                <autoNameResolution>true</autoNameResolution>
                                <extendedSoapHeaders>true</extendedSoapHeaders>
                            </wsdlOption>
                        </wsdlOptions>
                    </configuration>
                    <goals>
                        <goal>wsdl2java</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Den Fehler, wenn Sie versuchen, es zu bauen von eclipse ist

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]

Ich würde wirklich zu schätzen jede Hilfe!!!

Es funktioniert von der Kommandozeile aus?
Ja, es funktioniert, wie erwartet, von der Befehlszeile aus.
Überprüfen Sie hier für die Antwort auf die Warnung: stackoverflow.com/questions/8706017/...

InformationsquelleAutor Oskar Ferm | 2011-11-25

Schreibe einen Kommentar