当我使用mvn构建cnosdb flight sql jadc访问时,始终没有生成类文件。

huangapple go评论100阅读模式
英文:

When I use mvn to build cnosdb flight sql jadc access, there is always no class file generated

问题

使用mvn构建cnosdb flight sql jadc访问时,始终没有生成类文件。问题是什么?

首先,我执行如下操作:

mvn package

然后

java -cp ./target/jdbc-1.0-SNAPSHOT.jar com/cnosdb/Main
java.lang.ClassNotFoundException: com.cnosdb.Main

最后,我检查了目录,发现没有类文件。

$ tree ./
./
├── pom.xml
├── src
│   └── java
│       └── com
│           └── cnosdb
│               └── Main.java
└── target
    ├── jdbc-1.0-SNAPSHOT.jar
    └── maven-archiver
        └── pom.properties
英文:

When I use mvn to build cnosdb flight sql jadc access, there is always no class file generated.what the promblem?

At first, I exec as follow:

mvn package

and then

java -cp ./target/jdbc-1.0-SNAPSHOT.jar com/cnosdb/Main
java.lang.ClassNotFoundException: com.cnosdb.Main

finnally, I'm check the mune,there is no class.

$ tree ./
./
├── pom.xml
├── src
│   └── java
│       └── com
│           └── cnosdb
│               └── Main.java
└── target
    ├── jdbc-1.0-SNAPSHOT.jar
    └── maven-archiver
        └── pom.properties

答案1

得分: 1

"the class generation step should be implemented in the maven compile stage, please check the maven logs and see if there has compile messages."的中文翻译如下:

类生成步骤应该在Maven编译阶段中实现,请检查Maven日志,看看是否有编译消息。

英文:

the class generation step should be implemented in the maven compile stage, please check the maven logs and see if there has compile messages.

huangapple
  • 本文由 发表于 2023年7月20日 14:19:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76727160.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定