英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论