简体   繁体   English

我可以在Maven插件中使用编译的类吗?

[英]Can I use compiled class in Maven Plugin?

我正在编写一个必须使用项目的已编译类的Maven插件,但是它们在编译后是否包含在类路径中,还是我必须加载它们?

There are different classpaths "active", depending on the current phase... eg in testing, the compiled classes are in the classpath. 根据当前阶段,存在不同的类路径“活动” ...例如,在测试中,已编译的类位于类路径中。 you can print them using this code . 您可以使用此代码打印它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM