普通用户的geotools和maven

发布于 2024-11-04 16:06:14 字数 206 浏览 5 评论 0原文

昨天我试图开始使用(而不是为)geotools 库,但我最终试图弄清楚当涉及到只想构建基于 geotools 的中小型应用程序的人时,maven 的用途是什么;起初我认为使用 Maven 可以让开发人员不必编写所有导入(这就是我所认为的依赖项),但在阅读了一篇对快速入门教程进行了一些修改版本的博客后,我不再那么确定了。有人做澄清maven对于那些只想构建一些应用程序而不做出贡献的人来说有什么用?

I was trying to get started with using (not making contributions to) the geotools lib yesterday,but i ended up trying to figure out what purpose does maven serve when it comes to someone that just wants to build a small/medium app based on geotools;At first i thought that using maven spares the dev on writing all the imports ( that's what i recon dependencies are BTW) but after reading a blog that had a somewhat modified version of the quickstart tutorial i'm not that sure anymore..Could someone make clarify what is maven's use for someone that just wants to build some apps and not make contributions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

零時差 2024-11-11 16:06:15

如果没有 Maven,我不会尝试使用 GeoTools 库,它是一个大型且相当复杂的项目,有 10 个 jar。您的应用程序可能只需要其中 5-10 个 jar,但如果没有 Maven,几乎不可能确定您需要哪 5-10 个。例如,您可能想要读入一些数据,因此您需要 gt-data 和至少一个特定的数据存储 gt-shapefile 或 gt-postgis。我很确定其中之一需要使用坐标系,因此 gt-referencing (以及特定的实现,例如 gt-epsg-hsql)。

无论如何,您可能至少应该完成快速入门教程看看 Maven 为您做了什么。

I wouldn't attempt to use the GeoTools library without Maven, it is a large and quite complex project with 10s of jars. Your app will probably only need 5-10 of those jars but without Maven it is almost impossible to work out which 5-10 you'll need. For example you will probably want to read in some data, so you'll need gt-data and at least one specific datastore gt-shapefile or gt-postgis. I'm pretty sure one of those will need to use a coordinate system so gt-referencing (and a specific implementation, say gt-epsg-hsql).

Anyway you should probably work through at least the quick start tutorial to see what Maven does for you.

怎会甘心 2024-11-11 16:06:14

Maven 与让您免于 Java 源文件中的导入声明无关。它是关于处理整个项目,其中可能包括依赖项。但您仍然必须用 Java 编写导入。如果您的项目太小而无法使用 Maven,请不要使用它。但在较大的项目中,声明性构建描述、依赖管理工具绝对有用。

Maven has nothing to do with saving you from import declarations in Java source files. It is about handling your whole project and that might include dependencies. But you still have to write imports in Java. If your project is to small for maven to be useful, don't use it. But in larger project a declarative build description, dependency management tool is definitely useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文