简体   繁体   English

没有Maven的Netbeans上的dl4j

[英]dl4j on netbeans without maven

I have a question Is there any way to use dl4j on netbeans without maven? 我有一个问题,有没有办法在没有Maven的netbeans上使用dl4j? I have many restriction in muy computer, I can't install maven (nothing, by the way, politics of my job, you know...) but I have Netbeans 8.1. 我在muy计算机上有很多限制,我无法安装maven(顺便说一句,我的工作没有什么问题,你知道...),但是我有Netbeans 8.1。 I have these libraries in my project , well I just add them. 我的项目中有这些库 ,我只是添加它们。 I have investigated and i found many examples but using maven and other things. 我进行了调查,发现了许多使用Maven和其他方法的示例。

I can't change of IDE either. 我也不能更改IDE。

Is it possible to use deeplearning4j on neatbeans without maven? 是否可以在没有Maven的情况下在deepbeans上使用deeplearning4j?

Greeting! 问候!

I would recommend building an uber jar separately with maven and then importing that in to your project. 我建议与maven分别构建一个uber jar,然后将其导入到您的项目中。 You can do that on an external machine with the maven shade plugin. 您可以使用maven shade插件在外部计算机上执行此操作。

The biggest problem we (as the deeplearning4j project) have with people trying to do this is they never seem to understand that there are transitive dependencies. 我们(作为deeplearning4j项目)最大的问题是人们试图做到这一点,因为他们似乎从未理解过传递依赖。 A big reason to use a build system is resolving dependencies. 使用构建系统的一个重要原因是解决依赖关系。 Deeplearning4j is built to be a "pick what you need" library. Deeplearning4j被构建为“选择所需内容”库。 Unfortunately that also means complexity in the dependency management. 不幸的是,这也意味着依赖管理的复杂性。

By default we assume people can use maven/sbt/gradle/lein etc - secondarily lobby your organization on adding a build tool to your work station. 默认情况下,我们假设人们可以使用maven / sbt / gradle / lein等-其次,游说您的组织向您的工作站添加构建工具。 That will allow you to consume more libraries. 那将允许您使用更多的库。

I resolved it, there is a Maven plugin in Netbeans, in Menu Tools > Plugins > Available plugins > Search Maven, then you see a list like 我解决了,在Netbeans中有一个Maven插件,在菜单工具>插件>可用插件>搜索Maven中,然后您会看到一个类似

this 这个

, I selected each one (five options), then restart IDE. ,我选择了每个(五个选项),然后重新启动IDE。 If you have a Maven proyect, you should have options to run them with Maven after that. 如果您有一个Maven proyect,那之后应该可以选择使用Maven运行它们。

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

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