2011-10-12 7 views
2

'오류 : 해결할 수 없음'/ 자산 FlexMojos 4.0-RC2 및 Flex SDK 4.5.1.21328을 빌드하는 동안 '/ 트랜스 코딩 용 /images/**.png' 코드는 어떤 도움 FlexMojos 4.0-RC2 및 Flex SDK 4.5.1.21328을 빌드하는 동안 "오류 : '/assets/images/**.png'을 (를) 변환 할 수 없습니다.

플렉스 Mojos 버전
<flex.sdk.version>4.5.1.21328</flex.sdk.version> 

SDK 버전
[Embed(source='/assets/images/lot_dimensions_bg_4digit.png')] 

아래
<flex-mojos.version>4.0-beta-7</flex-mojos.version> 

감사 같다.

+0

이 문제는 flexmojos 4.0-RC2에서도 발생합니다. – srayker

답변

3

컴파일러 종속성 전에 flexmojos-threadlocaltoolkit-wrapper에 대한 종속성을 추가해야합니다.

은 자세한 내용은 다음 페이지를 참조하십시오 https://dev.c-ware.de/confluence/display/PUBLIC/Configuring+your+poms

+0

매우 이상한 솔루션이지만 ... 작동합니다! Flexmojos 6.0.1에서도 같은 문제가 발생하며 문제도 해결됩니다. –

0

내가 플렉스 SDK의 동일한 버전을 사용하고 있습니다,하지만 난 flexmojos 4.0-RC2를 사용하고 있습니다. 임베디드 자산은 나를 위해 잘 작동합니다.

빌드 할 때 임베디드 자산을 대상/클래스에 복사해야합니다. 나는 그것을위한 특별한 구성을 포함시켜야했다.

<plugin> 
    <groupId>org.sonatype.flexmojos</groupId> 
    <artifactId>flexmojos-maven-plugin</artifactId> 
    <version>${flexmojos.version}</version> 
    <extensions>true</extensions> 
    <configuration> 
     <debug>true</debug> 
     <configurationReport>true</configurationReport> 
     <sourceFile>com/example/MyApp.mxml</sourceFile> 
     <swfVersion>11</swfVersion> 
     <flexBuilderCompatibility>true</flexBuilderCompatibility> 
     <descriptorTemplate>${basedir}/${application.name}-app.xml</descriptorTemplate> 

     <!-- Here's the extra config --> 
     <includeFileSets> 
      <fileset> 
       <directory>src/main/resources/embedded</directory> 
       <includes> 
        <include>*.*</include> 
       </includes> 
      </fileset> 
     </includeFileSets> 
    </configuration> 
</plugin>