저는 XJC를 사용하고 다른 카탈로그를 참조하는 XMLCataloges를 사용하려고합니다. 문제는 다른 카탈로그를 참조 할 때 절대 경로 대신 상대 경로를 사용할 수 있어야한다는 것입니다.상대 경로를 사용하여 XJC와 XMLCatalog 사용
이 카탈로그는 project1에 있으며 project2에있는 catalog.xml 파일을 참조해야합니다.
<java fork="true" jar="${xjc-jar-file}">
<!-- folder where the generated files should be saved -->
<arg value="-d" />
<arg value="${target-folder}"/>
<arg value="-extension" />
<!-- catalog file -->
<arg value="-catalog" />
<arg value="${catalog-file}" />
<!-- current xsd file -->
<arg value="@{xsd-file}" />
</java>
내가 카탈로그 파일의 실수, 또는 XJC와 같은 카탈로그를 사용에 대한 해결 방법이 있습니다 :
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public publicId="http://company.com/test"
uri="src/main/resources/test.xsd" />
<nextCatalog catalog="../project2/catalog.xml" /></catalog>
XJC 호출은 다음과 같습니다?