Ok, I am not communicating this very well. I have them in separate projects.
Let me explain a little more from the maven side of the house and I will see
if I can communicate what is going on.

I have a parent project called bench. bench has a pom and its type is "pom"
under bench there is a swc, swf, and war directory. In each one of those sub
projects there are poms that are referenced as modules in the parent so it
looks like this:

<modelVersion>4.0.0</modelVersion>
  <groupId>com.test</groupId>
  <artifactId>bench</artifactId>
  <packaging>pom</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>bench - app</name>

  <modules>
    <module>swc</module>
    <module>swf</module>
    <module>war</module>
  </modules>

The swf pom is uses the flex mojo to compile the swf and the war pom has a
dependency on it.

If I go into eclipse to set the project up and right click on the swf
directory and Add Flex Project Nature, it gives me the options to point it
to a server for doing integrated development. So, basically when I make a
change in the mxml file I can right click on the mxml file and say Run As
Flex application and it will lauch it on the server that I have setup.

I know where the settings are stored at, If you look in the swf directory
(assuming the project structure I have created above) there is a file called
.flexProperties and its contents are:

<flexProperties flexServerType="2" serverContextRoot="/bench_war"
serverRoot="/Users/me/dev/java/bench/war/src/main/webapp" serverRootURL="
http://localhost:8080/bench_war/"; toolCompile="true"
useServerFlexSDK="false" version="1"/
>

If I use the flexmojo to set the project up the server settings aren't
created. Is there a flag or something that I can use when executing
flexmojos:flexbuilder to give it these settings?

Does that make more sense? I can put together a lenghty message of what/how
I setup my project. If there is a better way, I am all about doing it.

Thanks,

Bryan


On Thu, May 28, 2009 at 1:19 PM, Marvin Froeder <[email protected]> wrote:

> As I said, flexmojos doesn't support java + flex + web projects all in one
> project.
> No problem of you break in 2 or more projects.
>
>
> VELO
>
> On Thu, May 28, 2009 at 4:02 PM, Bryan Hansen <[email protected]>wrote:
>
>> So nobody out there is using Flex with a server backend while in Eclipse?
>> Or are they just not using flexmojos for the configuration? It has to be the
>> later because nobody would be using Flex if that was the case.
>>
>>
>> On Thu, May 28, 2009 at 12:49 PM, Marvin Froeder <[email protected]>wrote:
>>
>>> Well, flexmojos doesn't support java + flex + web projects all in one
>>> project, neither for regular build or for flexbuilder...
>>> So this isn't supported.
>>>
>>>
>>> VELO
>>>
>>>
>>> On Thu, May 28, 2009 at 3:42 PM, Bryan Hansen <[email protected]>wrote:
>>>
>>>> So, I may not be explaining my problem very well.
>>>>
>>>> I have a flex project that has server settings. For example if I was
>>>> inside of FlexBuilder and created a new Flex Project and told it to connect
>>>> to a J2EE server and use LSDS to connect to the backend then it is tied to 
>>>> a
>>>> server.
>>>>
>>>> If I run mvn flexmojos:flexbuilder on that project it wipes out all of
>>>> those settings. I can't see how to specify that it should connect to a J2EE
>>>> backend using the mojo. Make Sense?
>>>>
>>>> Bryan
>>>>
>>>>
>>>> On Thu, May 28, 2009 at 11:14 AM, Marvin Froeder <[email protected]>wrote:
>>>>
>>>>> Well, flexbuilder extends eclipse, so any options available on eclipse
>>>>> should be present here too.
>>>>>
>>>>> VELO
>>>>>
>>>>>
>>>>> On Thu, May 28, 2009 at 2:09 PM, Bryan <[email protected]> wrote:
>>>>>
>>>>>>
>>>>>> We currently have our projects setup so that the swf is in one
>>>>>> eclipse/
>>>>>> flexbuilder project and the server is in a separate project. If I run
>>>>>> mvn flexmojos:flexbuilder it will wipe out my server configuration.
>>>>>> When using the eclipse:eclipse plugin you can specify -Dwtpversion=2.0
>>>>>> is there some equivalent with the flexmojos:flexbuilder?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Bryan
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to