question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error Compiling with `mvn compile` or `mvn install`

See original GitHub issue

maven编译的时候显示如下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (analyze) on project qsql-calcite-analysis: Dependency problems found -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :qsql-calcite-analysis

对maven的版本有要求吗

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

3reactions
xingbu110commented, Mar 21, 2020

同样遇到该问题:使用mvn install和mvn compile时均报该错误。mvn package可以正常运行

1reaction
simuhunluocommented, Sep 15, 2020

install 时报错是因为failOnWarning这个配置

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>${maven-dependency-plugin.version}</version>
    <executions>
        <execution>
            <id>analyze</id>
            <goals>
                <goal>analyze-only</goal>
            </goals>
            <configuration>
                <failOnWarning>true</failOnWarning>
            </configuration>
        </execution>
    </executions>
</plugin>

我提了一个PR,其中有修复这个问题。#220 现在执行以下三条命令执行均Success


mvn clean compile
mvn clean -DskipTests=true package
mvn clean -DskipTests=true install
Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven build Compilation error : Failed to execute goal org ...
In case if you are able to compile mvn compile the project successful from terminal but not from Eclipse check out Window >...
Read more >
[BUG] Fatal error compiling: java.lang.IllegalAccessError ...
I have a problem I worked with java 8 and lombok 1.18.10 cannot compile but when I updated the version it worked well...
Read more >
IntelliJ IDEA - Troubleshooting common Maven issues
This error usually indicates a problem with the compiler version compatibility, and you can check few places to fix it. For example, you...
Read more >
Fix Maven error in Eclipse: No compiler is provided ... - YouTube
How to fix the error when compiling code using Maven in Eclipse IDE: COMPILATION ERROR... BUILD FAILURE...Failed to execute goal ...
Read more >
How to fix Maven build issue in Eclipse? Perform ... - Crunchify
How to fix Maven build issue in Eclipse? Perform maven-clean-install to fix any Java Dependency Issue · Let's get started: · Task-1: Perform...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found