如何避免在我的Java资源中重复?

huangapple 未分类评论57阅读模式
英文:

How i can avoid a repetition in my java resources

问题

我修改了我的 ".classpath" 文件以更改这一行:

<classpathentry kind="src" output="target/classes" path="src">

为:

<classpathentry kind="src" output="target/classes" path="src/main/java">

以便为Maven项目实现良好的架构...

现在在我的源代码中出现了一种递归情况:
如何避免在我的Java资源中重复?

在顶部的Java资源中,现在是正确的,但在底部的Java资源中出现了重复:

<br>
我应该只有:
<br>

  • com.douineau

但我还有

  • com
  • com.com.douineau

<br>

希望有人能帮助我。

提前感谢您。

英文:

I modified my ".classpath" file to change this line

&lt;classpathentry kind=&quot;src&quot; output=&quot;target/classes&quot; path=&quot;src&quot;&gt;

for

&lt;classpathentry kind=&quot;src&quot; output=&quot;target/classes&quot; path=&quot;src/main/java&quot;&gt;

to have the good architecture for a Maven project...

Now in my sources i have a sort of recursion :
如何避免在我的Java资源中重复?

On the top Java Resources it's now good, but not in the bottom Java Resources where I have a repetition :
<br>
I'm supposed to have only :
<br>

  • com.douineau

But i have also

  • com
  • com.com.douineau

<br>

I hope anybody can help me.

Thank u in advance

huangapple
  • 本文由 发表于 2020年5月5日 20:09:20
  • 转载请务必保留本文链接:https://java.coder-hub.com/61612806.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定