2012-01-21 38 views

回答

2

这个库添加到您的pom.xml

<repository> 
    <id>google-diff-patch-match</id> 
    <name>google-diff-patch-match</name> 
    <url>https://google-diff-match-patch.googlecode.com/svn/trunk/maven/</url> 
</repository> 
+0

谢谢,适合我 – yegor256

+0

我发现google-diff-patch-match。但是如何生成html报告?我找不到html相关的代码。 – hurelhuyag

0

结帐演示的google-diff-match-patch,看看它是否适合你。

+0

这不是在Maven的中央,据我了解:( – yegor256

+0

@ yegor256好像它是不是你。可以在你的公司部署回购 –

1

我有很多的麻烦试图找出如何使google-diff-match-patch提供给我的项目。

我终于得到它通过添加以下行到我的pom.xml工作:

<project.. > 
    .. 
    <repositories> 
    .. 
    <repository> 
     <id>google-diff-patch-match</id> 
     <name>google-diff-patch-match</name> 
     <url>https://google-diff-match-patch.googlecode.com/svn/trunk/maven/</url> 
    </repository> 
    </repositories> 
    .. 
    <dependencies> 
    .. 
    <dependency> 
     <groupId>diff_match_patch</groupId> 
     <artifactId>diff_match_patch</artifactId> 
     <version>current</version> 
    </dependency>