Hi Christian,

Sorry to bother you with that again, but I'm returning to my Flex
integration project after some inactivity and I still get the same problem.
I can't find any 1.1 release of maven-flex2-plugin. Did you figure out
another solution?

Sebastien

2007/6/20, Christian Gruber <[EMAIL PROTECTED]>:
>
>   Ok. This one is tricky. the maven-flex2-plugin depends on the maven-
> dependency-plugin:2.0-alpha-1. I had forgotten this, but you can't
> override it because the change from alpha-1 to alpha-4 actually
> changed the API, and I depend on a class whose constructor is
> different between the two.
>
> I'm going to release an emergency 1.1 plugin because this is actually
> quite problematic. I have tried to find a way to decouple your
> projects. Mine don't seem to work this way - I think it's your
> global dependency management getting in the way, but I'll have this
> out later today and it should fix your glitch. I'd like to know why
> yours is forcing two projects to use the same version, though. Hmm.
>
> Christian.
>
>
> On Jun 20, 2007, at 11:05 AM, Christian Gruber wrote:
>
> > Ugh. It looks like some existing plugin (don't know which one yet)
> > depends on the earlier version of maven-dependency-plugin explcitly,
> > and ends up accidentally overriding the 2.0-alpha-4 with 2.0-
> > alpha-1. I just have to figure out which one so I can explicitly
> > exclude the transitive call to maven-dependency-plugin, and allow our
> > preferred version through.
> >
> > Christian
> >
> > On Jun 20, 2007, at 9:28 AM, Sebastien Arbogast wrote:
> >
> >> I sent you my project. Thanks a lot.
> >>
> >> 2007/6/20, Christian Gruber <[EMAIL PROTECTED]<cgruber%40israfil.net>
> >:
> >>>
> >>> Hey Sabastian,
> >>>
> >>> Can you post your pom,xml files please? It's kind of hard to
> >>> analyse this without seeing your project metadata. Feel free to
> >>> clean it of anything confidential first, but the structure and
> >>> relationships should be there, including any plugin config, etc.
> >>> Also, describe the file system (if you're not going to zip the
> >>> pom.xml files with the structure intact) and explain what steps you
> >>> are going through in what directories.
> >>>
> >>> I have a gut feeling there's a conceptual mismatch going on, but
> >>> I can't know for sure until I see what you're doing.
> >>>
> >>> Christian.
> >>>
> >>> On Jun 20, 2007, at 7:20 AM, Sebastien Arbogast wrote:
> >>>
> >>>> OK, FYI the prepare-package lifecycle phase won't exist until the
> >>>> 2.1release of Maven. In the meantime, you're better off using
> >>>
> >>>> process-classes
> >>>> Now I'm having another weird issue because mvn install works great
> >>>> on my web
> >>>> module but when I try to build the root project, I get an error on
> >>>> copy-dependencies
> >>>>
> >>>>
> >>>> 2007/6/20, Sebastien Arbogast
> >>> <[EMAIL PROTECTED] <sebastien.arbogast%40gmail.com><
> sebastien.arbogast%40gmail.com>
> >>>> :
> >>>>>
> >>>>> I've found an example of .flexLibProperties and I still don't
> >>>>> understand
> >>>>> what is the purpose of this file but I've created an empty one and
> >>>>> moved on
> >>>>> to build my project.
> >>>>>
> >>>>> Now when I try to build the whole thing, when it build my web
> >>>>> project,
> >>>>> which depends on my swf module, I get the following error:
> >>>>>
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> -------
> >>>>> [INFO] Building Opalys JEE Web
> >>>>> [INFO] task-segment: [install]
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> -------
> >>>>> [INFO] [andromda-multi-source:add-source {execution: default}]
> >>>>> [INFO] [resources:resources]
> >>>>> [INFO] Using default encoding to copy filtered resources.
> >>>>> [WARNING] While downloading itext:itext: 0.99
> >>>>> This artifact has been relocated to com.lowagie:itext:0.99.
> >>>>>
> >>>>>
> >>>>> [INFO] [antrun:run {execution: default}]
> >>>>> [INFO] Executing tasks
> >>>>> [copy] Warning: /Users/sarbogast/dev/opalys-jee/web/src/main/
> >>>>> jsp not
> >>>>> found.
> >>>>> [INFO] Executed tasks
> >>>>> [INFO] [compiler:compile]
> >>>>> [INFO] Nothing to compile - all classes are up to date
> >>>>> [INFO] [resources:testResources]
> >>>>> [INFO] Using default encoding to copy filtered resources.
> >>>>> [INFO] [compiler:testCompile]
> >>>>> [INFO] No sources to compile
> >>>>> [INFO] [surefire:test]
> >>>>> [INFO] No tests to run.
> >>>>> [INFO] [war:war]
> >>>>> [INFO] Exploding webapp...
> >>>>> [INFO] Assembling webapp opalys-jee-web in
> >>>>> /Users/sarbogast/dev/opalys-jee/web/target/opalys- jee-web-4.0.1-
> >>>>> SNAPSHOT
> >>>>> [INFO] Copy webapp webResources to
> >>>>> /Users/sarbogast/dev/opalys-jee/web/target/opalys-jee-web-4.0.1-
> >>>>> SNAPSHOT
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> ---
> >>>>> [ERROR] FATAL ERROR
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> ---
> >>>>> [INFO] basedir /Users/sarbogast/dev/opalys-jee/web/target/flex-
> >>>>> resources
> >>>>> does not exist
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> ---
> >>>>> [INFO] Trace
> >>>>> java.lang.IllegalStateException: basedir
> >>>>> /Users/sarbogast/dev/opalys-jee/web/target/flex-resources does not
> >>>>> exist
> >>>>> at org.codehaus.plexus.util.DirectoryScanner.scan(
> >>>>> DirectoryScanner.java:542)
> >>>>> at org.apache.maven.plugin.war.AbstractWarMojo.getWarFiles(
> >>>>> AbstractWarMojo.java:824)
> >>>>> at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(
> >>>>> AbstractWarMojo.java:408)
> >>>>> at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp (
> >>>>> AbstractWarMojo.java:518)
> >>>>> at
> >>>>> org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp
> >>>>> (AbstractWarMojo.java :347)
> >>>>> at org.apache.maven.plugin.war.WarMojo.performPackaging(
> >>>>> WarMojo.java:164)
> >>>>> at org.apache.maven.plugin.war.WarMojo.execute
> >>>>> (WarMojo.java:130)
> >>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> >>>>> DefaultPluginManager.java:443)
> >>>>> at
> >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (
> >>>>> DefaultLifecycleExecutor.java:539)
> >>>>> at
> >>>>>
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> >>> i
> >>>>> fecycle(
> >>>>> DefaultLifecycleExecutor.java:480)
> >>>>> at
> >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >>>>> (DefaultLifecycleExecutor.java :459)
> >>>>> at
> >>>>>
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> >>> n
> >>>>> dleFailures
> >>>>> (DefaultLifecycleExecutor.java :311)
> >>>>> at
> >>>>>
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> >>> n
> >>>>> ts(
> >>>>> DefaultLifecycleExecutor.java :278)
> >>>>> at
> >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> >>>>> DefaultLifecycleExecutor.java:143)
> >>>>> at org.apache.maven.DefaultMaven.doExecute
> >>>>> (DefaultMaven.java:334)
> >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> >>>>> 125)
> >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
> >>>>> Method)
> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>> NativeMethodAccessorImpl.java:39)
> >>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>>>> DelegatingMethodAccessorImpl.java:25)
> >>>>> at java.lang.reflect.Method.invoke(Method.java:585)
> >>>>> at org.codehaus.classworlds.Launcher.launchEnhanced
> >>>>> (Launcher.java
> >>>>> :315)
> >>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:
> >>>>> 255)
> >>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> >>>>> Launcher.java:430)
> >>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> ---
> >>>>> [INFO] Total time: 21 seconds
> >>>>> [INFO] Finished at: Wed Jun 20 11:34:57 CEST 2007
> >>>>> [INFO] Final Memory: 28M/51M
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------
> >>>>> ---
> >>>>>
> >>>>> Note that I'm using Maven 2.0.6 so I've mapped the copy-
> >>>>> dependencies goal
> >>>>> to prepare-package instead of proces-classes.
> >>>>>
> >>>>> 2007/6/20, Sebastien Arbogast
> >>> <[EMAIL PROTECTED] <sebastien.arbogast%40gmail.com><
> sebastien.arbogast%40gmail.com>
> >>>> :
> >>>>>>
> >>>>>> In the usage documentation, there is a reference to
> >>>>> a .flexLibProperties
> >>>>>> file. What is this file supposed to contain?
> >>>>>>
> >>>>>> 2007/6/18, Christian Gruber < [EMAIL PROTECTED]<cgruber%40israfil.net>
> <cgruber%
> >>> 40israfil.net>
> >>>> :
> >>>>>>>
> >>>>>>> Hi. #3 you should add to the issues list as an enhancement at
> >>>>>>> http://
> >>>>>>> code.google.com/p/israfil-mojo/
> >>>>>>>
> >>>>>>> As to #1 & #2, I can see where your frustration lies, and I
> >>>>> feel the
> >>>>>>> same way. I think the problem with this is that the point of a
> >>>>>>> consisten approach to repository-based artifacts is that you
> >>>>> should
> >>>>>>> use that single approach, instead of custom deployment
> >>>>> strategies.
> >>>>>>> Adding special instructions for zip files that duplicates the
> >>>>> effort
> >>>>>>> of maven's natural dependency mechanism isn't helpful, and you
> >>>>> can't
> >>>>>>> just download the sdk automatically anyway, because you have
> >>>>> to go
> >>>>>>> through all sorts of click-through forms to do it for legal
> >>>>> reasons.
> >>>>>>> I've been talking to Adobe, and when the compiler is fully
> >>> open-
> >>>>>>> sourced, you'll see the plugin (probably all of them) work
> >>>>> without
> >>>>>>> having to do as much local setup. We'll see.
> >>>>>>>
> >>>>>>> Currently the plugin does what it does so that it doesn't
> >>>>> conflict
> >>>>>>> with the default two ways Adobe has to do flex development,
> >>>>> namely:
> >>>>>>> download flex builder, or download sdk. This way you can point
> >>>>>>> flex.home at your flexbuilder's flex.home, or you can point
> >>> it at
> >>>>>>> your local sdk. By using maven profiles, you can do this in a
> >>>>> host-
> >>>>>>> independent way. Each user sets up flex.home in a profile in
> >>>>> their
> >>>>>>> settings.xml file, then your build just uses a maven
> >>> property to
> >>>>>>> parameterize the plugin.
> >>>>>>>
> >>>>>>> Hope that helps explain it.
> >>>>>>>
> >>>>>>> regards,
> >>>>>>> Christian.
> >>>>>>>
> >>>>>>> On Jun 18, 2007, at 4:29 PM, Ronen Naor wrote:
> >>>>>>>
> >>>>>>>> Hi,
> >>>>>>>> First I wanted to say that I'm using your maven plugin and
> >>>>> it works
> >>>>>>>> great,
> >>>>>>>> good work.
> >>>>>>>> Second, I have some thoughts about improving your plugin,
> >>>>> wanted to
> >>>>>>>> know if
> >>>>>>>> they sound reasonable to you:
> >>>>>>>>
> >>>>>>>> 1. Instead of specifying the flex.home, the user can
> >>> define the
> >>>>>>>> location of the zip file of the SDK (Could be on the
> >>> net), and
> >>>>>>>> your plugin
> >>>>>>>> will download it, install the SDK in the local repository
> >>> as an
> >>>>>>>> artifact
> >>>>>>>> and then unzip this artifact into either the target or
> >>> into tmp
> >>>>>>>> dir in the
> >>>>>>>> local repository. I know it sounds complicated, but save the
> >>>>>>>> users to
> >>>>>>>> install flex SDK. This is what the tomcat plugin used to do.
> >>>>>>>> 2. Or put the SDK as a zip artifact in some remote
> >>>>> repository and
> >>>>>>>> then
> >>>>>>>> use dependency, the rest is the same.
> >>>>>>>> 3. I noticed I can pass to compc the namespace flags which
> >>>>> your swc
> >>>>>>>> artifact configuration is missing. Is it possible to add
> >>>>> them as
> >>>>>>>> well?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> Ronen.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 6/18/07, Christian Gruber <[EMAIL 
> >>>>>>>> PROTECTED]<cgruber%40israfil.net>
> <cgruber%
> >>> 40israfil.net><cgruber%
> >>>
> >>>>> 40israfil.net>>
> >>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>> Heh. Things have dramatically improved since then. There
> >>>>> are nice
> >>>>>>>>> tools to pre-download all your required dependencies then
> >>>>> run in
> >>>>>>>>> "offline" mode which doesn't attempt to hit the external
> >>>>>>>>> repositories.
> >>>>>>>>>
> >>>>>>>>> Christian.
> >>>>>>>>>
> >>>>>>>>> On Jun 18, 2007, at 10:31 AM, billy_d_white wrote:
> >>>>>>>>>
> >>>>>>>>>> I am currently using a Flex front-end on top of a
> >>> serverside
> >>>>>>>>>> application comprised of Spring 2.0 + Hibernate 3.0 +
> >>>>> Tomcat 5.5+
> >>>>>>>>>> MySQL 5 + Java 6. I use the SpringFactory mechanism to
> >>>>>>>>> initialize and
> >>>>>>>>>> configure my assemblers. I gave up on Maven a while back
> >>>>> because
> >>>>>>> it
> >>>>>>>>>> was too undependable and would prevent me from building
> >>>>> when it
> >>>>>>> ran
> >>>>>>>>>> into issues getting access to the remote files it needed.
> >>>>> (of
> >>>>>>>>> course
> >>>>>>>>>> that was a year or more back so maybe they've improved
> >>>>> things a
> >>>>>>> bit
> >>>>>>>>>> since them).
> >>>>>>>>>
> >>>>>>>>> christian gruber + [EMAIL PROTECTED] 
> >>>>>>>>> <cgruber%40israfil.net><cgruber%
> >>> 40israfil.net><cgruber%
> >>>>> 40israfil.net><cgruber%40israfil.net> + mob
> >>>>>>>>> 410.900.0796 + mob2
> >>>>>>>>> 416.998.6023
> >>>>>>>>> process coach and architect + ISRÁFÍL CONSULTING SERVICES
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>> christian gruber + [EMAIL PROTECTED] <cgruber%40israfil.net><cgruber%
> >>> 40israfil.net><cgruber%40israfil.net>
> >>>>> + mob
> >>>>>>> 410.900.0796 + mob2
> >>>>>>> 416.998.6023
> >>>>>>> process coach and architect + ISRÁFÍL CONSULTING SERVICES
> >>>>>>>
> >>>>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Sébastien Arbogast
> >>>>>>
> >>>>>> http://www.sebastien-arbogast.com
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Sébastien Arbogast
> >>>>>
> >>>>> http://www.sebastien-arbogast.com
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Sébastien Arbogast
> >>>>
> >>>> http://www.sebastien-arbogast.com
> >>>
> >>> christian gruber + [EMAIL PROTECTED] 
> >>> <cgruber%40israfil.net><cgruber%40israfil.net> + mob
> >>> 410.900.0796 + mob2
> >>> 416.998.6023
> >>> process coach and architect + ISRÁFÍL CONSULTING SERVICES
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Sébastien Arbogast
> >>
> >> http://www.sebastien-arbogast.com
> >
> > christian gruber + [EMAIL PROTECTED] <cgruber%40israfil.net> + mob
> 410.900.0796 + mob2
> > 416.998.6023
> > process coach and architect + ISRÁFÍL CONSULTING SERVICES
> >
> >
>
> christian gruber + [EMAIL PROTECTED] <cgruber%40israfil.net> + mob
> 410.900.0796 + mob2
> 416.998.6023
> process coach and architect + ISRÁFÍL CONSULTING SERVICES
>
>  
>



-- 
Sébastien Arbogast

http://www.sebastien-arbogast.com

Reply via email to