You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2017/10/28 16:11:00 UTC
[GitHub] justinmclean opened a new issue #59: Express Help World dependancies unclear and cause misleading compiler error
justinmclean opened a new issue #59: Express Help World dependancies unclear and cause misleading compiler error
URL: https://github.com/apache/royale-asjs/issues/59
This simple project:
```
<?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:initialView>
<js:View>
<js:Label text="Hello World" />
</js:View>
</js:initialView>
</js:Application>
```
With this pom.xml:
```
<?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>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>
<classifier>js</classifier>
</dependency>
<dependency>
<groupId>com.adobe.flash.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>20.0</version>
<type>swc</type>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
```
Compiles and works correctly. Note that the HTML package is required which may or may not be obvious.
The express version of Hello World:
```
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/express">
<js:initialView>
<js:View>
<js:Label text="Hello World" />
</js:View>
</js:initialView>
</js:Application>
```
(with Express rather than Basic in the pom.xml)
Fails to compile with this error:
```
/Users/justinmclean/IdeaProjects/FlexJSTest/src/Test.mxml(2): col: 1 This tag could not be resolved to an ActionScript class. It will be ignored.
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
```
There's a dependancy missing the the pom.xml but what is it?
You get the same error if the HTML package is left out of the pom.xml in the basic version.
Is their any reason the frameworks pom.xml don't include all required dependancies? i.e. Basic should include HTML and Express whatever other packages it needs to work?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services