Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error Compiling with mvn compile or mvn install #166

Open
rewerma opened this issue Feb 27, 2020 · 13 comments
Open

[BUG] Error Compiling with mvn compile or mvn install #166

rewerma opened this issue Feb 27, 2020 · 13 comments
Assignees

Comments

@rewerma
Copy link

rewerma commented Feb 27, 2020

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的版本有要求吗

@GanfengTan
Copy link
Collaborator

@xingbu110
Copy link
Collaborator

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

@Functor10 Functor10 reopened this Mar 21, 2020
@Functor10 Functor10 changed the title maven编译的时候报错 [BUG] Error Compiling with mvn compile or mvn install Mar 21, 2020
@Functor10 Functor10 pinned this issue Mar 21, 2020
@ckgiant
Copy link

ckgiant commented Apr 10, 2020

你好,你参考这个issues https://github.com/Qihoo360/Quicksql/issues/152,如果还有问题就升级一下maven到3.6+。

我IDEA和本地maven都是3.6.3的,也是一样不行,发现qsql-calcite-parser这个模块里的pom.xml有很多不识别的插件,有解决方法吗?

@francis-du
Copy link
Collaborator

francis-du commented Apr 10, 2020

试一下这种方式

mvn clean package -DskipTests

@ckgiant
Copy link

ckgiant commented Apr 10, 2020

试一下这种方式

mvn clean package -DskipTests

package是没有问题,install不行。

@francis-du
Copy link
Collaborator

@ckgiant 不一定要用 install ,如果涉及到 jdbc 的一些依赖需要引用的话,可以mvn package 编译之后再针对 jar 包单独进行安装。

@francis-du
Copy link
Collaborator

@ckgiant 另外一种方式就是注释掉root | parser| meta 模块下的有关maven-dependency-plugin:analyze-only 的依赖

@ckgiant
Copy link

ckgiant commented Apr 10, 2020

@ckgiant 不一定要用 install ,如果涉及到 jdbc 的一些依赖需要引用的话,可以mvn package 编译之后再针对 jar 包单独进行安装。

用install是因为想在这个项目上进行二次开发,扩展clickhouse的代理实现

@francis-du
Copy link
Collaborator

@ckgiant 不一定要用 install ,如果涉及到 jdbc 的一些依赖需要引用的话,可以mvn package 编译之后再针对 jar 包单独进行安装。

用install是因为想在这个项目上进行二次开发,扩展clickhouse的代理实现

可以试试上边提到的另一种方法

@ckgiant
Copy link

ckgiant commented Apr 10, 2020

@ckgiant 另外一种方式就是注释掉root | parser| meta 模块下的有关maven-dependency-plugin:analyze-only 的依赖

可以了,非常感谢。

@ckgiant
Copy link

ckgiant commented Apr 10, 2020

@ckgiant 不一定要用 install ,如果涉及到 jdbc 的一些依赖需要引用的话,可以mvn package 编译之后再针对 jar 包单独进行安装。

用install是因为想在这个项目上进行二次开发,扩展clickhouse的代理实现

可以试试上边提到的另一种方法

顺道问一下,es的查询用命令行没问题,但是jdbc连接查询有问题,源码发现两种实现方式似乎不同,不知是不是jdbc的调用方式不对,请问有使用demo吗

@Jack0000007
Copy link

试一下这种方式

mvn clean package -DskipTests

请问可否帮忙看看这个问题:#190

@fangyuefy fangyuefy unpinned this issue Sep 15, 2020
@simuhunluo
Copy link

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

webji added a commit to webji/Quicksql that referenced this issue Nov 11, 2020
…al analyze-only failOnWarning to False; add ignore the qsql-meta and qsql-parser module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants