2017-11-14 12 views
0

Mule-Anypoint 스튜디오에서 Mulesoft 프로젝트를하고 있습니다.MuleSoft : 리소스 폴더에 중첩 된 파일을 참조하는 방법

최근 리소스 파일 (xml, csv, xsl ..)을 "resources"폴더 아래의 중첩 폴더로 분류했습니다. (예 : resources/FlowResources/flowA/resource-a.csv) 해당 구성 요소를 해당 경로로 업데이트합니다. 모든 것이 잘 작동하지만 CloudHub에 배포 할 때 오류가 다음과 같은 예외 : 우리가 CloudHub에 배포 제한 어떤 종류의

Your application has failed with exception com.mulesoft.mmc.agent.v3.dto.DeploymentException: Unable to load FlowResources/flowA/resource-a.csv. It works fine again if I move the files up front to resources folder.

인가를? 중첩 된 리소스 폴더에서 파일을 찾을 수 없습니까?

+1

내부

당신은 프로젝트 루트에서'resources' 폴더에 대해 얘기하는, 또는'SRC/메인/resources' 폴더? 또한 "파일을 리소스 폴더로 이동하면 다시 작동합니다." 그게 무슨 뜻 이니? src/main/resources/FlowResources/flowA/resource-a.csv 대신에 파일을'src/main/resources/resource-a.csv' 파일로 옮겼습니다. –

답변

0

프로젝트 계층 구조는 다음과 같아야합니다 MuleProject

0

이보십시오.

기본적으로 .classpath 파일을 업데이트해야합니다. .classpath

resource entry exists - < classpathentry kind="src" path="src/main/resources"/" >

need toupdate or add new entry of it it as path="src/main/resource/myfolder".