Yeah, that is what I would expect... since resources aren't sources....
On Mon, Aug 16, 2010 at 3:00 PM, Bryan Turner <[email protected]> wrote:
> So, when you say Maven configuration, I assume you mean like this:
> <sourceDirectory>src/main/flex</sourceDirectory>
> <testSourceDirectory>src/test/flex</testSourceDirectory>
> <resources>
> <resource>
> <directory>src/main/assets</directory>
> <filtering>false</filtering>
> </resource>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> <resource>
> <directory>src/main/styles</directory>
> <filtering>false</filtering>
> </resource>
> </resources>
>
> With that configuration, I end up with this:
> -compiler.source-path
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\flex
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\resources\locale\en_US
>
> With <sourcePaths/> configured explicitly:
> <sourcePaths>
> <path>${basedir}/src/main/flex</path>
> <path>${basedir}/src/main/assets</path>
>
> <path>${basedir}/src/main/resources/locale/en_US</path>
> <path>${basedir}/src/main/styles</path>
> </sourcePaths>
>
> I get this:
> -compiler.source-path
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\flex
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\assets
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\resources\locale\en_US
> C:\Development\adm\core\dbm-frontend\frontend-common\src\main\styles
>
> On Mon, Aug 16, 2010 at 11:55 AM, Marvin Froeder <[email protected]>wrote:
>
>> Ok, lemme know if it doesn't work, it should, but who knows =D ....
>> FWIW, I prevent sourcePaths from being configurable on FM4 because it can
>> give you a big headache if miss used, so you will need to use maven
>> configurations on FM4 to get the job done.
>>
>> VELO
>>
>> On Mon, Aug 16, 2010 at 2:53 PM, Bryan Turner <[email protected]>wrote:
>>
>>> In my defense, I didn't set this up. I'm working with something that was
>>> handed to me by a developer who was very interested in empire-building. He
>>> did everything in the Flex UI he could to keep others on the team from
>>> wanting to work on it and ran it like his own little fiefdom. He's since
>>> quit, and I haven't had the time to go through and redo everything he did
>>> (I've been more focused on fixing all the heinous things he did in the code
>>> before spending time trying to fix the build which, while probably not very
>>> correct, does actually work).
>>>
>>> I'll try replacing the <sourcePaths/> with correct resource paths and see
>>> if I can get the build to pass without it.
>>>
>>> On Mon, Aug 16, 2010 at 11:44 AM, Marvin Froeder <[email protected]>wrote:
>>>
>>>> that is because you are bypassing maven configurations... you should be
>>>> set if you had configured resources....
>>>>
>>>> On Mon, Aug 16, 2010 at 2:43 PM, Bryan Turner <[email protected]>wrote:
>>>>
>>>>> Fortunately, no. But all of our assets, resources, styles, etc are in
>>>>> other folders under src/main, as shown in the <sourcePaths/> block I
>>>>> posted.
>>>>>
>>>>> On Mon, Aug 16, 2010 at 11:41 AM, Marvin Froeder <[email protected]>wrote:
>>>>>
>>>>>> Flexmojos does automatically put main source, generated source and
>>>>>> resource bundle paths on the sourcePath configuration, I wonder what
>>>>>> else do
>>>>>> you have that needs that, are you putting .as or .mxml files on this
>>>>>> other
>>>>>> folders?
>>>>>>
>>>>>>
>>>>>> VELO
>>>>>>
>>>>>> On Mon, Aug 16, 2010 at 2:39 PM, Bryan Turner
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> Our system doesn't build without it, so I'm curious what the
>>>>>>> "correct" approach is if this isn't it.
>>>>>>>
>>>>>>> On Mon, Aug 16, 2010 at 11:34 AM, Marvin Froeder
>>>>>>> <[email protected]>wrote:
>>>>>>>
>>>>>>>> Configuring sourcePaths is always a bad idea.
>>>>>>>>
>>>>>>>> BTW, this is removed from flexmojos 4....
>>>>>>>>
>>>>>>>> VELO
>>>>>>>>
>>>>>>>> On Mon, Aug 16, 2010 at 2:32 PM, Bryan Turner <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> In my FlexMojos poms, in the <configuration/> block for the
>>>>>>>>> FlexMojos plugin, we have this:
>>>>>>>>> <sourcePaths>
>>>>>>>>>
>>>>>>>>> <path>${basedir}/src/main/flex</path>
>>>>>>>>>
>>>>>>>>> <path>${basedir}/src/main/assets</path>
>>>>>>>>>
>>>>>>>>> <path>${basedir}/src/main/resources/locale/{locale}</path>
>>>>>>>>>
>>>>>>>>> <path>${basedir}/src/main/styles</path>
>>>>>>>>>
>>>>>>>>> <path>${basedir}/target/generated-resources</path>
>>>>>>>>> </sourcePaths>
>>>>>>>>>
>>>>>>>>> You may only need src/main/flex in yours, but you might try adding
>>>>>>>>> <sourcePaths/>
>>>>>>>>>
>>>>>>>>> On Mon, Aug 16, 2010 at 11:25 AM, David Vree <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> I moved some files around inside a SWF project and it no longer
>>>>>>>>>> builds
>>>>>>>>>> from the Maven command line. Here is a snippet of error output:
>>>>>>>>>>
>>>>>>>>>> [WARNING] Source file was not defined, flexmojos will guess one.
>>>>>>>>>> [INFO]
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>>> [INFO]
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>> [INFO] Source file not expecified and no default found!
>>>>>>>>>>
>>>>>>>>>> This is a multi-module maven project and the directory structure
>>>>>>>>>> of
>>>>>>>>>> the flex SWF modules uses the standards "/src/main/flex" directory
>>>>>>>>>> as
>>>>>>>>>> the root of all the sources -- which are themselves divided up
>>>>>>>>>> into
>>>>>>>>>> packages -- e.g. "com.company.flex.yadda.yadda".
>>>>>>>>>>
>>>>>>>>>> I guess I would have assumed that Flexmojos would recursively
>>>>>>>>>> search
>>>>>>>>>> all the subdirectories of "src/main/flex" for MXML and
>>>>>>>>>> Actionscript
>>>>>>>>>> classes, like the maven-compiler-plugin does for Java. Perhaps I
>>>>>>>>>> need
>>>>>>>>>> some extra configuration in my pom.xml. I found the attribute
>>>>>>>>>> "sourceFile" in the Maven docs for flexmojos, but I don't
>>>>>>>>>> understand...it just says "The file to be compiled. The path must
>>>>>>>>>> be
>>>>>>>>>> relative with source folder". What does this mean? Do I have to
>>>>>>>>>> really list every source file?
>>>>>>>>>>
>>>>>>>>>> Here is the relevant snippet from my pom.xml:
>>>>>>>>>>
>>>>>>>>>> <build>
>>>>>>>>>> <sourceDirectory>src/main/flex</sourceDirectory>
>>>>>>>>>>
>>>>>>>>>> <testSourceDirectory>src/test/flex</testSourceDirectory>
>>>>>>>>>> <plugins>
>>>>>>>>>> <plugin>
>>>>>>>>>>
>>>>>>>>>> <groupId>org.sonatype.flexmojos</groupId>
>>>>>>>>>>
>>>>>>>>>> <artifactId>flexmojos-maven-plugin</artifactId>
>>>>>>>>>> <version>3.7.1</version>
>>>>>>>>>> <extensions>true</extensions>
>>>>>>>>>> <configuration>
>>>>>>>>>> <locales>
>>>>>>>>>>
>>>>>>>>>> <locale>en_US</locale>
>>>>>>>>>> </locales>
>>>>>>>>>> </configuration>
>>>>>>>>>> <dependencies>
>>>>>>>>>> <dependency>
>>>>>>>>>>
>>>>>>>>>> <groupId>com.adobe.flex</groupId>
>>>>>>>>>>
>>>>>>>>>> <artifactId>compiler</artifactId>
>>>>>>>>>>
>>>>>>>>>> <version>${adobe.flex.version}</version>
>>>>>>>>>> <type>pom</type>
>>>>>>>>>> </dependency>
>>>>>>>>>> </dependencies>
>>>>>>>>>> </plugin>
>>>>>>>>>> </plugins>
>>>>>>>>>> </build>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Any help is appreciated!
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>> Groups "Flex Mojos" group.
>>>>>>>>>> To post to this group, send email to [email protected]
>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>> [email protected]<flex-mojos%[email protected]>
>>>>>>>>>> For more options, visit this group at
>>>>>>>>>> http://groups.google.com/group/flex-mojos
>>>>>>>>>>
>>>>>>>>>> http://flexmojos.sonatype.org/
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Flex Mojos" group.
>>>>>>>>> To post to this group, send email to [email protected]
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> [email protected]<flex-mojos%[email protected]>
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://groups.google.com/group/flex-mojos
>>>>>>>>>
>>>>>>>>> http://flexmojos.sonatype.org/
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Flex Mojos" group.
>>>>>>>> To post to this group, send email to [email protected]
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> [email protected]<flex-mojos%[email protected]>
>>>>>>>> For more options, visit this group at
>>>>>>>> http://groups.google.com/group/flex-mojos
>>>>>>>>
>>>>>>>> http://flexmojos.sonatype.org/
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Flex Mojos" group.
>>>>>>> To post to this group, send email to [email protected]
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected]<flex-mojos%[email protected]>
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/flex-mojos
>>>>>>>
>>>>>>> http://flexmojos.sonatype.org/
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Flex Mojos" group.
>>>>>> To post to this group, send email to [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<flex-mojos%[email protected]>
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/flex-mojos
>>>>>>
>>>>>> http://flexmojos.sonatype.org/
>>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Flex Mojos" group.
>>>>> To post to this group, send email to [email protected]
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<flex-mojos%[email protected]>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/flex-mojos
>>>>>
>>>>> http://flexmojos.sonatype.org/
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex Mojos" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex-mojos%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex-mojos
>>>>
>>>> http://flexmojos.sonatype.org/
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Flex Mojos" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex-mojos%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex-mojos
>>>
>>> http://flexmojos.sonatype.org/
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Flex Mojos" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<flex-mojos%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/flex-mojos
>>
>> http://flexmojos.sonatype.org/
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/