English 中文(简体)
改写一个有maven的附属项目的财产档案
原标题:read property file from a dependent project with maven

我在阅读附属项目的财产时有问题。

我有一个核心项目,我的申请取决于它。

在核心类别下,它备有<代码>核心.properties。

并且我的申请需要阅读这一财产档案,但可以查阅。 在我的申请类别中,需要<代码>分。

是否有解决办法? 我认为的一种解决办法是,当我建立我的<条码>申请时,我是否能够大张地宣布,我希望核心依赖性会爆炸?

帮助!

问题回答

你们的意思是“阅读这一财产档案”?

由于该课程将放在班级上,因此应当使用<代码>getClass(>)。

如果你真的需要它作为档案,那么你可以把“依赖性”金字gin——<条码>-依附”目标作为建筑过程的一部分,不包装特定档案。





相关问题
How to structure files / dependencies in Visual C++ project

This is more of a design question than a C++ question. I m working on a Texas Hold Em poker game in C++. So far, I have a HandChecker module written that is responsible for determining a player s ...

draw dependency graph for a java class

Heyho, I m searching for a tool like JDepend to draw a graph for a java classfile. JDepend seams to be fine, but it s not resolving the deps from the deps (maybe I m just missing some special options?)...

How to use the -MG flag in cc 4.4.1?

I ve recently upgraded my Ubuntu installation from Jaunty to Karmic. This apparently includes an update of the GNU C compiler, because code that compiled previously no longer does. Running cc 4.4.1 (...

How to manually disable/blacklist Maven repository

In my base project I use dependency of JasperReports which has non-existent repository declaration in its pom. When I run every Maven commad there is dependency looking for commons-collection in this ...

Batch Job Dependencies Using Open Source/Free Software

I run a large data warehouse plant where we have a lot of nightly jobs running concerruently however many have dependencies on a extract or data load process before they start. Currently we use an ...

热门标签