수입 해결하려면메이븐 부모 POM : 없음은 다음과 같은 프로젝트 구조에서 문서
Parent
- ProjectA
- ProjectB
- etc.
ProjectA
빌드가 제대로 나는 ProjectA
내에서 mvn clean install
을 실행할 때. 올바른 경로가 file:/D:{PATH_TO_PARENT}/ProjectA/target/TcWebService.wsdl
것
[ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code
(default) on project ProjectA: Error parsing WSDL:
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document
at 'target/TcWebService.wsdl'.: java.io.FileNotFoundException:
This file was not found:
file:/D:{PATH_TO_PARENT}/target/TcWebService.wsdl -> [Help 1]
: 나는 Parent
폴더에서 mvn clean install
을 실행할 때
그러나, 나는 다음과 같은 오류가 발생합니다.
<parent>
<groupId>{MY.GROUP.ID}</groupId>
<artifactId>jars</artifactId>
<version>1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
...
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<tasks>
<copy file="src/main/wsdl/TcWebService.wsdl"
tofile="target/TcWebService.wsdl"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
어떤 아이디어 사항 : ProjectA
부분은
Parent.pom에게
<modules>
<module>ProjectA</module>
<module>ProjectB</module>
...
</modules>
PROJECTA의 치어가 누락?
감사합니다. 유용하지만 원래의 문제는 그대로 유지됩니다. – Doahh
이 예에서는 대상 폴더에 복사 할 리소스를 보여줍니다. 내가 놓친 게 있니? – MozenRath
module dir을 사용하여 파일의 경로를 절대적으로 지정하십시오. – MozenRath