Hi, guys! I download the source code that version is 12.3. I check the pom.xml and it works!
But, when i compile code, i meet another problem that is “package org.incava.util.diff.Diff is not exist”.
So i check the dependency of “java-diff” and unzip it.
org.incava
java-diff
1.1.0
In the final, I find catagolue of package is not same with .java file. import org.incava.util.diff.Diff; import org.incava.util.diff.Difference;
Two lines above is in “/xwiki-platform-core/xwiki-platform-annotation/xwiki-platform-annotation-maintainer/src/main/java/org/xwiki/annotation/maintainer/internal/CharacterDiffService.java” file.
Two lines below is in the zipFile “java-diff-1.1.0.jar”.
And When I change package import from above lines to below lines. it works.
I am rebuilding from https://github.com/xwiki/xwiki-platform/archive/xwiki-platform-12.4.zip and it’s working very well so far… BTW why do you need to recompile since the artifacts are already compiled? You just need to compile if you make source changes and you only need to recompile that module, not everything.
Em… Sorry! I am a starter about xwiki! Language internationalization does not satisfied our need. So i accept a task that i need to read and change some code!
That’s all !
if the problem is about internationalization, it’s possible to submit new translations in https://l10n.xwiki.org they are usually quickly integrated in XWiki.
Hi, bro, I have rebuild source code that version is 12.5.1 ! But i meet the same problem with version 12.3 !
I have no idea about it except that i change the class import path in .java file !
I think i can give you more info!
java -version
java version “1.8.0_191”
Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)
Rebuilding Command is “mvn clean install”
setting.xml is in next post below.
So can you help me anylasis it ?
Beside it, can you compare the category after unziping the java-diff.jar in your computer with mine above ! I want to confirm that package is or not different from mine .
To be extra safe, I tested building the annotation modules where you have problem and it works perfectly well. I think you have a problem with your environment. Maybe delete your maven local repo and try again.
Thanks for your advice! I try with that and it works right now!
I delete the java-diff.jar and rebuild the module that you have show above .
finally, it success!
So the problem is that the package java-diff.jar in maven central repository is different with it in the xwiki respository!
Because of the network speed,After I follow the link that you had gave above and configure , then I rebuild source code, but i can not download the package java-diff.jar at the beginning. So I change the repository to maven repository and it works !
Now it is clear! The java-diff.jar package in the maven central repository and xwiki respository is different ! Did someone change the package?I have try two pakcage of different version, its category is same!