简体   繁体   English

org.apache.maven.plugins:即使在Eclipse中有Maven插件,maven-compiler-plugin也丢失了

[英]org.apache.maven.plugins:maven-compiler-plugin is missing even there is a maven plug in in eclipse

I have downloaded a sample code from adhaar site I have imported it successfully, dependencies are there in pom.xml when I it the following error is coming - 我已经从adhaar site下载了示例代码,我已成功导入了该示例代码,当出现以下错误时, pom.xml中存在dependencies -

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for in.gov.uidai:uidai-biometric-integration-api:jar:1.6
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 46, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for in.gov.uidai:uidai-auth-xsd-model:jar:1.6
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 52, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:jaxb2-maven-plugin is missing. @ line 37, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for in.gov.uidai:uidai-auth-client:jar:1.6
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: bouncycastle:bcprov-jdk16:jar -> duplicate declaration of version 140 @ line 67, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 94, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for in.gov.uidai:uidai-sample-gui-app:jar:1.6
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 83, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Biometric Integration API
[INFO] Authentication XSD Model
[INFO] UID Protobuf Model
[INFO] Authentication Client Library
[INFO] Aadhaar Authentication - Sample GUI
[INFO] Aadhaar Authentication Reference Sample Application
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Biometric Integration API .......................... SKIPPED
[INFO] Authentication XSD Model ........................... SKIPPED
[INFO] UID Protobuf Model ................................. SKIPPED
[INFO] Authentication Client Library ...................... SKIPPED
[INFO] Aadhaar Authentication - Sample GUI ................ SKIPPED
[INFO] Aadhaar Authentication Reference Sample Application  SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.410 s
[INFO] Finished at: 2017-09-27T17:00:20+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[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-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException

here is my pom.xml 这是我的pom.xml

<!-- DISCLAIMER: The sample code or utility or tool described herein is provided 
    on an "as is" basis, without warranty of any kind. UIDAI does not warrant 
    or guarantee the individual success developers may have in implementing the 
    sample code on their environment. UIDAI does not warrant, guarantee or make 
    any representations of any kind with respect to the sample code and does 
    not make any representations or warranties regarding the use, results of 
    use, accuracy, timeliness or completeness of any data or information relating 
    to the sample code. UIDAI disclaims all warranties, express or implied, and 
    in particular, disclaims all warranties of merchantability, fitness for a 
    particular purpose, and warranties related to the code, or any service or 
    software related thereto. UIDAI is not responsible for and shall not be liable 
    directly or indirectly for any direct, indirect damages or costs of any type 
    arising out of use or any action taken by you or others related to the sample 
    code. THIS IS NOT A SUPPORTED SOFTWARE. -->
<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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>in.gov.uidai</groupId>
    <artifactId>auth-client-demo-application</artifactId>
    <name>Aadhaar Authentication Reference Sample Application</name>
    <packaging>pom</packaging>
    <version>1.0</version>

    <modules>
        <module>uidai-biometric-integration-api</module>
        <module>uidai-auth-xsd-model</module>
        <module>uidai-auth-proto-model</module>
        <module>uidai-auth-client</module>
        <module>uidai-sample-gui-app</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.8</version>
                <configuration>
                </configuration>

                <executions>
                    <execution>
                        <id>aggregate</id>
                        <goals>
                            <goal>aggregate</goal>
                        </goals>
                        <phase>site</phase>
                        <configuration>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

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

whats wrong in this? 这怎么了? other maven projects are getting executed. 其他Maven项目正在执行。

If's actually telling you: No goals have been specified for this build . 如果实际上是在告诉您: 尚未为此构建指定目标 Check the maven introduction to learn about build lifecycle . 查看Maven简介以了解构建生命周期 Also, check this SO-Post . 另外, 检查此SO-Post You need to build your program via mvn [lifecycle] , like mvn build 您需要通过mvn [lifecycle]来构建程序,例如mvn build

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Maven:未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1compile: - Maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile 未解决的插件:&#39;org.apache.maven.plugins:maven-compiler-plugin:3.1&#39; - Unresolved plugin:'org.apache.maven.plugins:maven-compiler-plugin:3.1' 未找到插件“org.apache.maven.plugins:maven-compiler-plugin:3.7.0” - Plugin 'org.apache.maven.plugins:maven-compiler-plugin:3.7.0' not found 插件 org.apache.maven.plugins:maven-compiler-plugin 或其依赖项之一无法解析 - Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved 无法执行目标org.apache.maven.plugins:maven-compiler-plugin等 - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin AND more Intelij IDEA-无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile - Intelij IDEA - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile 无法执行目标org.apache.maven.plugins:maven-compiler-plugin - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1 - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM