防止编译源代码的不可编译部分(基于每个类或包)

时间:2023-01-28 22:59:23

Is there a way I could prevent certain classes / packages in my netbeans based maven project from being compiled(by hiding/ ignoring etc) while build as they contain uncompilable code ?

有没有办法可以阻止我的基于netbeans的maven项目中的某些类/包被编译(通过隐藏/忽略等),同时构建它们包含无法编译的代码?

1 个解决方案

#1


0  

Put your source under different source root (Netbeans supports multiple source roots) and when source is not necessary just remove additional source tree (somewhere in Netbeans project properties)

将您的源放在不同的源根目录下(Netbeans支持多个源根),当不需要源时,只需删除其他源树(在Netbeans项目属性中的某个位置)

#1


0  

Put your source under different source root (Netbeans supports multiple source roots) and when source is not necessary just remove additional source tree (somewhere in Netbeans project properties)

将您的源放在不同的源根目录下(Netbeans支持多个源根),当不需要源时,只需删除其他源树(在Netbeans项目属性中的某个位置)