justinmclean opened a new issue #42: Boilerplate maven file final to compile 
simple example
URL: https://github.com/apache/royale-asjs/issues/42
 
 
   With this example:
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                   xmlns:js="library://ns.apache.org/royale/basic">
   
       <js:valuesImpl>
           <js:SimpleCSSValuesImpl/>
       </js:valuesImpl>
   
       <js:initialView>
           <js:View>
               <js:Label text="Hello World" />
           </js:View>
       </js:initialView>
   
   </js:Application>
   ```
   
   And this pom.xml which worked the the FlexJS SNAPSHOT:
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
     <modelVersion>4.0.0</modelVersion>
   
     <groupId>org.example.helloworld</groupId>
     <artifactId>test</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>swf</packaging>
   
     <build>
       <sourceDirectory>src</sourceDirectory>
       <plugins>
         <plugin>
           <groupId>org.apache.royale.compiler</groupId>
           <artifactId>royale-maven-plugin</artifactId>
           <version>0.9.0-SNAPSHOT</version>
           <extensions>true</extensions>
           <configuration>
             <mainClass>HelloWorld.mxml</mainClass>
           </configuration>
           <dependencies>
             <dependency>
               <groupId>org.apache.royale.compiler</groupId>
               <artifactId>compiler-jx</artifactId>
               <version>0.9.0-SNAPSHOT</version>
             </dependency>
           </dependencies>
         </plugin>
       </plugins>
     </build>
   
     <dependencies>
       <dependency>
         <groupId>org.apache.royale.framework</groupId>
         <artifactId>Core</artifactId>
         <version>0.9.0-SNAPSHOT</version>
         <type>swc</type>
       </dependency>
       <dependency>
         <groupId>org.apache.royale.framework</groupId>
         <artifactId>Basic</artifactId>
         <version>0.9.0-SNAPSHOT</version>
         <type>swc</type>
       </dependency>
       <dependency>
         <groupId>org.apache.royale.framework</groupId>
         <artifactId>HTML</artifactId>
         <version>0.9.0-SNAPSHOT</version>
         <type>swc</type>
       </dependency>
       <dependency>
         <groupId>org.apache.royale.framework</groupId>
         <artifactId>Language</artifactId>
         <version>0.9.0-SNAPSHOT</version>
         <type>swc</type>
       </dependency>
       
       <dependency>
         <groupId>com.adobe.flash.framework</groupId>
         <artifactId>playerglobal</artifactId>
         <version>20.0</version>
         <type>swc</type>
         <scope>provided</scope>
       </dependency>
       
     </dependencies>
   
   </project>
   ```
   
   The compile fails with the following error:
   ```
   using extern: externs/svg.js
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/typedefs/royale-typedefs-js/0.9.0-SNAPSHOT/royale-typedefs-js-0.9.0-SNAPSHOT-typedefs.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/typedefs/royale-typedefs-gcl/0.9.0-SNAPSHOT/royale-typedefs-gcl-0.9.0-SNAPSHOT-typedefs.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/framework/Core/0.9.0-SNAPSHOT/Core-0.9.0-SNAPSHOT-js.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/framework/Binding/0.9.0-SNAPSHOT/Binding-0.9.0-SNAPSHOT-js.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/framework/Graphics/0.9.0-SNAPSHOT/Graphics-0.9.0-SNAPSHOT-js.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/framework/Collections/0.9.0-SNAPSHOT/Collections-0.9.0-SNAPSHOT-js.swc
   using SWC: 
/Users/justinmclean/.m2/repository/org/apache/royale/framework/Basic/0.9.0-SNAPSHOT/Basic-0.9.0-SNAPSHOT-js.swc
   Could not find file for class: org.apache.royale.utils.Language
   File not found: org.apache.royale.utils.Language
   
   
   java.lang.RuntimeException: Unable to find JavaScript filePath for class: 
org.apache.royale.utils.Language
   ```
   
   Both 
.m2/repository/org/apache/royale/framework/Language/0.9.0-SNAPSHOT/Language-0.9.0-SNAPSHOT-js.swc
 and 
.m2/repository/org/apache/royale/framework/Language/0.9.0-SNAPSHOT/Language-0.9.0-SNAPSHOT-swf.swc
 exist.
   
   And Language.js exists inside the swc:
   ```
   unzip Language-0.9.0-SNAPSHOT-js.swc
   Archive:  Language-0.9.0-SNAPSHOT-js.swc
     inflating: library.swf             
     inflating: js/out/Namespace.js     
     inflating: js/out/org/apache/royale/utils/Language.js  
     inflating: js/out/org/apache/royale/language/string/search.js  
     inflating: js/out/QName.js         
     inflating: js/out/LanguageClasses.js  
     inflating: js/out/org/apache/royale/language/string/match.js  
     inflating: catalog.xml   
   ```          
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to