如何将HTML转换为Atlassian Wiki标记?

时间:2017-10-20 06:43:41

标签: java maven html-parsing renderer

我需要将HTML字符串更改为Atlassian Markup String。

我正在尝试在Java应用程序(outout Atlassian SDK)中执行此操作。

我找到了正确的解决方案here

但我仍然有问题:

java.lang.NoClassDefFoundError: com/opensymphony/util/TextUtils

我下载了其他依赖项:

    <dependency>
        <groupId>opensymphony</groupId>
        <artifactId>xwork</artifactId>
        <version>1.2.5-atlassian-8</version>
        <systemPath>C:\Users\exo\eclipse-workspace\JiraXMLToCSV\xwork-1.2.5-atlassian-8.jar</systemPath>
        <scope>system</scope>
    </dependency>
    <dependency>
        <groupId>org.jsoup</groupId>
        <artifactId>jsoup</artifactId>
        <version>1.10.3</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.2</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.renderer</groupId>
        <artifactId>atlassian-renderer</artifactId>
        <version>8.0.5</version>
        <systemPath>C:\Users\exo\eclipse-workspace\JiraXMLToCSV\atlassian-renderer-8.0.5.jar</systemPath>
        <scope>system</scope>
    </dependency>

我应该添加一些其他依赖项吗?

1 个答案:

答案 0 :(得分:0)

添加:

<dependency>
    <groupId>com.opensymphony</groupId>
    <artifactId>xwork</artifactId>
    <version>2.1.3</version>
</dependency>