flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject Re: Flexmojos Maven Apache Flex Error 1014
Date Fri, 07 Apr 2017 09:36:27 GMT
Hi Rodolpho,

I think the problem might be that you have “create-rsl” in an SWF project, I would simply
remove that execution.
Another thing is that unfortunately things have changed in Maven and now one bug we have been
relying on heavily has been “fixed”.
The thing is that using non-standard scopes (such as rsl) the transitive resolution no longer
works. This means you have to explicitly
Add rsl scoped dependencies to all swcs that you need.

I did see that you added spark as a direct dependency, so I don’t think it’s that problem.
Just try removing the “create-rsl” execution for a start.

Chris


Am 06.04.17, 19:46 schrieb "rodolpho@essencialcode.com.br" <rodolpho@essencialcode.com.br>:

    Hello everyone, 
    
    I really need your help; I am trying to compile an extense flex
    project(4.15) using Maven and FlexMojos (7.1.0), just solved many problems
    until here, finally got success in last compilation process, but when I
    execute it using the generated html page there is one problem I'm trying to
    solve unsuccessfully;
    
    VerifyError: Error #1014: Class spark.components::Application could not be
    found.
    
    I just tried in many ways to put the dependencies in swf pom, modified the
    order, made many changes but the error still there, visited many pages and
    examples, just tried almost everything and nothing; 
    
    Somebody can help me ? thanks in advance; Here is my final swf 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/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      
       <parent>
      </parent>
    
      <artifactId>....</artifactId>
      <packaging>swf</packaging>
      <name>...</name>
      
      <build>
         <sourceDirectory>src</sourceDirectory>
    	 
    	 <resources>
           <resource>
              <directory>src/br/....</directory>
           </resource>
           <resource>
              <directory>src/br/com/...</directory>
           </resource>
         </resources>
    	 
         <plugins>
       
    			<plugin>
                    <groupId>net.flexmojos.oss</groupId>
                    <artifactId>flexmojos-maven-plugin</artifactId>
                    <version>${flexmojos.version}</version>
                    <extensions>true</extensions>
    				
    				<executions>
    					<execution>
    					    <id>create-rsl</id>
    						<goals>
    							<goal>create-rsl</goal>
    						</goals>
    					</execution>
    				
    					<execution>
    					    <id>wrapper</id>
    						<goals>
       						  <goal>wrapper</goal>
    						</goals>
    						
    						<configuration>
                                <parameters>
                                    <swf>.....</swf>
                                    <width>100%</width>
                                    <height>100%</height>
                                   
    <version_major>${flash.framework.version}</version_major>
                                   
    <version_minor>${flash.framework.version}</version_minor>
                                    <bgcolor>#FFFFFF</bgcolor>
                                </parameters>
                                <htmlName>....</htmlName>
    							
    						</configuration>
    					</execution>				
    
    				</executions>
    				
    				<configuration>
    					<rslUrls>
    						<rsl>{artifactId}-${flex.sdk.version}.{extension}</rsl>
    					</rslUrls>
    				
                       <removeUnusedRsls>true</removeUnusedRsls>		
    					<accessible>true</accessible>
    					<includes>
    						<symbol>mx.managers.systemClasses.MarshallingSupport</symbol>
    					</includes>
    
    					<runtimeLocales>
    						<locale>en_US</locale>
    					</runtimeLocales>				
    					
    					<sourceFile> ....... </sourceFile>					
    
       					 <modules>
    						<module>
    						</module>
    						
    						<module>
    						</module>
    						
    						<module>
    						</module>
    	
    						<module>
    						</module>
    					</modules>
    
    				   <finalName>....</finalName>
    				   
                    </configuration>
    			</plugin>
    		</plugins>	 
     
      </build>
      
       <dependencies>
    
        
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>framework</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>textLayout</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>spark</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>sparkskins</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>rpc</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    		
    		<dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>charts</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 
    		
            <dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>spark_dmv</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 		
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>mx</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>swc</type>
    			<scope>rsl</scope>
            </dependency>
    		
    		<dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>advancedgrids</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 
    		
    		<dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>apache</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 		
    
    		<dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>authoringsupport</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 
    		
            <dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>core</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 		
    		
            <dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>experimental</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 
    
            <dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>flatspark</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>swc</type> 
                <scope>rsl</scope> 
            </dependency> 		
    		
    		
    		
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>framework</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>rb.swc</type>
    			<scope>internal</scope>
    			<classifier>en_US</classifier>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>textLayout</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>rb.swc</type>
    			<scope>rsl</scope>
                <classifier>en_US</classifier>
            </dependency>
    
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>spark</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>rb.swc</type>
    			<scope>rsl</scope>
                <classifier>en_US</classifier>
            </dependency>
    		
    		<dependency>
    			<groupId>org.apache.flex.framework</groupId> 
                <artifactId>rpc</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>rb.swc</type> 
                <scope>rsl</scope> 
                <classifier>en_US</classifier> 
    		</dependency>
    			
    		<dependency> 
    			<groupId>org.apache.flex.framework</groupId> 
    			<artifactId>charts</artifactId> 
    			<version>${flex.sdk.version}</version> 
    			<type>rb.swc</type> 
    			<scope>rsl</scope> 
    			<classifier>en_US</classifier> 
    		</dependency> 
    		
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>mx</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>rb.swc</type>
    			<scope>rsl</scope>
                <classifier>en_US</classifier>
            </dependency>
    
    		<dependency> 
                <groupId>org.apache.flex.framework</groupId> 
                <artifactId>advancedgrids</artifactId> 
                <version>${flex.sdk.version}</version> 
                <type>rb.swc</type> 
                <scope>rsl</scope> 
                <classifier>en_US</classifier> 
            </dependency> 
    		
            <dependency>
                <groupId>org.apache.flex.framework</groupId>
                <artifactId>apache</artifactId>
    			<version>${flex.sdk.version}</version>
    			<type>rb.swc</type>
    			<scope>rsl</scope>
                <classifier>en_US</classifier>
            </dependency>
    		
    		<dependency> 
                  <optional>true</optional> 
                  <groupId>org.apache.flex.framework.themes</groupId> 
                  <artifactId>spark</artifactId> 
                  <version>${flex.sdk.version}</version> 
                  <type>swc</type> 
                  <scope>theme</scope> 
            </dependency> 
    		
    		
    	</dependencies> 
    	  
      
    </project>
    
    
    
    
    
    
    
    
    --
    View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flexmojos-Maven-Apache-Flex-Error-1014-tp14976.html
    Sent from the Apache Flex Users mailing list archive at Nabble.com.
    

Mime
View raw message