You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by L'Hommelet Filip <Fi...@ilias-solutions.com> on 2015/05/22 15:14:08 UTC

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

RE: To start the weekend: issue with additional source directories:

Posted by L'Hommelet Filip <Fi...@ilias-solutions.com>.
I managed to get it working.
Pom was changed into:

<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>frameworkflex</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>
        <resources>
            <resource>
                <directory>src/main/flex_base</directory>
            </resource>
            <resource>
                <directory>src/main/flex</directory>
            </resource>
        </resources>
        <plugins>
	<plugin>
				<groupId>net.flexmojos.oss</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>

Thanks again for the pointers!

-----Original Message-----
From: Christofer Dutz [mailto:christofer.dutz@c-ware.de] 
Sent: vrijdag 22 mei 2015 19:42
To: users@flex.apache.org
Subject: AW: To start the weekend: issue with additional source directories:

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 <Fi...@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

AW: To start the weekend: issue with additional source directories:

Posted by Christofer Dutz <ch...@c-ware.de>.
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 <Fi...@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