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

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

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

问题

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

首先,我执行如下操作:

  1. mvn package

然后

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

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

  1. $ tree ./
  2. ./
  3. ├── pom.xml
  4. ├── src
  5. └── java
  6. └── com
  7. └── cnosdb
  8. └── Main.java
  9. └── target
  10. ├── jdbc-1.0-SNAPSHOT.jar
  11. └── maven-archiver
  12. └── 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:

  1. mvn package

and then

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

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

  1. $ tree ./
  2. ./
  3. ├── pom.xml
  4. ├── src
  5. │   └── java
  6. │   └── com
  7. │   └── cnosdb
  8. │   └── Main.java
  9. └── target
  10. ├── jdbc-1.0-SNAPSHOT.jar
  11. └── maven-archiver
  12. └── 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:

确定