如何用'Geo Server'注册一个'DataSourceFactiry'?

How to register a 'DataSourceFactiry' with 'Geo Server'?

如果我写了自己的DataSourceFactory,那么Geo Server如何识别我的dataSourceFactory?据我所知,如果我们在 org.geotools.data.DataStoreFactorySpi 上注册,那么 Geo Server 会自动识别我们的数据源。但是我不知道如何注册 Geo Server。我打算创建一个 Java 项目 (mvn)。

如果您正在实施商店,您可以按照以下网址的教程进行操作: http://docs.geotools.org/stable/userguide/tutorial/datastore/index.html (GeoServer 期望找到 GeoTools 数据存储)。

特别是,您的特定问题的答案在本页底部,您必须在 META-INF/services/org.geotools.data.DataStoreFactorySpi 文件中注册它:

http://docs.geotools.org/stable/userguide/tutorial/datastore/source.html