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 AW: To start the weekend: issue with additional source directories:
Date Fri, 22 May 2015 17:42:07 GMT
In order to use multiple source directories, have a look at the build-helper-plugin:
http://stackoverflow.com/questions/270445/maven-compile-with-multiple-src-directories

It was really bad style to do this by some additional config options therefore it was removed
in order for people using the default maven mechanisms.

Chris

________________________________________
Von: L'Hommelet Filip <Filip.L'Hommelet@ilias-solutions.com>
Gesendet: Freitag, 22. Mai 2015 15:14
An: users@flex.apache.org
Betreff: To start the weekend: issue with additional source directories:

Hi all,

I have a simple flex-project which I like to build with maven/flexmojos7.1.0/SDK4.14.1

This is the pom:

<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>
        <groupId>com.ilias.i3g.flex.pom</groupId>
        <artifactId>flex</artifactId>
        <version>FlexSDK4.X-SNAPSHOT</version>
    </parent>
    <groupId>com.ilias.i3g.flex.facades</groupId>
    <artifactId>JobControlMgmtCoreFacadeLib</artifactId>
    <version>${JobControlMgmtCoreFacadeLib.version}</version>
    <name>${project.groupId}.${project.artifactId}</name>
    <packaging>swc</packaging>

    <build>
        <plugins>
                                               <!-- *******************************************************
-->
                                               <!-- Add extra source directory        
                     -->
                                               <!-- *******************************************************
-->
            <plugin>
                                                               <groupId>net.flexmojos.oss</groupId>
                                                               <artifactId>flexmojos-maven-plugin</artifactId>
                <configuration>
                    <allowSourcePathOverlap>true</allowSourcePathOverlap>
                    <compileSourceRoots>
                        <param>src/main/flex_base</param>

                    </compileSourceRoots>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

In the parent-pom, we have the source directory defined as:
<sourceDirectory>src/main/flex</sourceDirectory>

However, for some of our projects, we have base_classes (automatically generated via Visual
Paradigm) and classes (in which we put specific code) who extend those base_classes...
The path of those base_classes is src/main/flex_base...

When using the older flexmojos (3.8), there used to be the following (working) settings:

      <configuration>
                    <sourcePaths>
                        <param>src/main/flex_base</param>
                        <param>src/main/flex</param>
                    </sourcePaths>
                </configuration>


I figured out already that <sourcePaths> tag was replaced with <compileSourceRoots>
but keeping <param> tag
doesn't seem to work.  Did that one change as well?  In Flexmojos6 it is <path> but
there it was also still <sourcePaths>?

Really hard to find info on this, been looking in the flexmojos source code (that's how I
found <compileSourceRoots>)
but it still doesn't work.
Error is something like this:

D:\I3G\git-workspaces\flex\wp-nato-47\JobControlMgmtCoreFacadeLib\src\main\flex\com\ilias\solutions\domain\humanresource\organisation\IOrganisation4JC.as(10):
col: 47 Error: Interface IOrganisation4JC
Base was not found.

    public interface IOrganisation4JC extends IOrganisation4JCBase

(so Base is under src/main/flex_base)

Any help again would be greatly appreciated. :)


Kr,
Filip
Mime
View raw message