开发者

Netbeans "default config" for Maven projects

开发者 https://www.devze.com 2023-01-30 12:49 出处:网络
I\'ve got a Maven project under Netbeans that requires a non-default configuration because it is platform specific. If the user does not pick a configuration I have no way of knowing which platform to

I've got a Maven project under Netbeans that requires a non-default configuration because it is platform specific. If the user does not pick a configuration I have no way of knowing which platform to build for. I can't use profi开发者_如何学Gole activators because sometimes we build Windows binaries under a Linux box.

Is there a way to disable <default config> or fail a build with a descriptive error message if it's used or tell Netbeans that when someone builds <default config> it should really build config windows-x86?


default config just means no profiles activated. So your build would have to be capable of figuring out that no profile is activated (by whatever means, missing property, missing plugin config). maven enforcer plugin could do it maybe. There is no way in netbeans to do anything like that, you have to come up with a maven solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消