Le vendredi 9 novembre 2012 11:15:54 UTC+1, Christofer Dutz a écrit :
>
> Hi guys,
>
> [...]
>
So give it a try and give us some feedback at what you think and where
> things have to be corrected. Reall looking forward to turning off all of
> the old sites so the web is not polluted with outdated information, so if
> your're looking for information, you'll be guided to the most recent source.
>
> So much for now,
> Chris
>
Hi there,
So I gave it a try and am giving a little feeback...
*Context *: Worked a my Windows PC with previously installed tools on it
(Maven 3.04, Jenkins, Java 1.6, Eclipse Juno ... only the classic ones).
*Goal *: building a simple SWC then using it to build a SWF with flex 4.8
(POM is working with FlexMojos 4 and Flex 4.5.1).
Then I tried to follow you instruction in the Easi way :
- Mavenizer : just copied the SVN URL in a Jenkins' Maven Job, then clicked
on "build" : *SUCCESS*. I got my own mavenizer : *proud*
Then I installed an Artifcatory on one of my server to received those
precious artefacts...
Then I build the FDK directory from Apache & Abode binaries (as explained
in the Mavenizer README.txt).
- I'm not sure that I understood all the process from this file...
explainations should be improved, maybe with an example.
- Launches the mavenizer : *FAILURE* (that weird "empty list" for zip file
bug... ) => Work around : install a Java 1.7 SDK just to run the mavenizer.
after a few try / failure cycles (misplaced files in FDK directory) =>
Success (it tooks about 40 minutes for deployement on my home architecture).
*About the mavenizer* : success / failure status isn't clear. some error
messages are presents, but exit code is always 0. This not quite good when
running it through Jenkins... I re-run it untill there was no more "error"
message.
- Then the great part : FlexMojos 6.
=> forked in GitHub, Opened in Eclipse, POM Changed to used my Artifactory
for Flex artifacts...
There were some Java errors (nothing really hard to change).
Tried some build, but cannot deal with a test failure in
flexmojos-generator-internal-compiler-iface :
[INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Flexmojos Generator - Internal ifaces generator
> 6.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (default) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
> flexmojos-generator-internal-compiler-iface ---
> [debug] execute contextualize
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> E:\Boulot\FlexMojos\workspace\flexmojos\flexmojos-generator\flexmojos-generator-internal-compiler-iface\src\main\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- plexus-component-metadata:1.5.4:generate-metadata (default) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO] Discovered 1 component descriptors(s)
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources
> (default-testResources) @ flexmojos-generator-internal-compiler-iface ---
> [debug] execute contextualize
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> E:\Boulot\FlexMojos\workspace\flexmojos\flexmojos-generator\flexmojos-generator-internal-compiler-iface\src\test\resources
> [INFO]
> [INFO] --- cobertura4it-maven-plugin:1.0:instrument (default) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO] Instrumenting classes with cobertura
> Cobertura: Saved information on 2 classes.
> [INFO]
> [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- plexus-component-metadata:1.5.4:generate-test-metadata
> (default) @ flexmojos-generator-internal-compiler-iface ---
> [INFO]
> [INFO] --- maven-surefire-plugin:2.5:test (default-test) @
> flexmojos-generator-internal-compiler-iface ---
> [INFO] Surefire report directory:
> E:\Boulot\FlexMojos\workspace\flexmojos\flexmojos-generator\flexmojos-generator-internal-compiler-iface\target\surefire-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running TestSuite
> {flex2.tools.CompcConfiguration=null, flex2.tools.ToolsConfiguration=null,
> flex2.tools.ASDocConfiguration=null,
> flex2.tools.Optimizer$OptimizerConfiguration=null,
> flex2.tools.DigestRootConfiguration=null}
> : FINE, writeFile(File,JavaSource), , Creating directory
> .\target\files\net\flexmojos\oss\compiler
> [...]
> : FINE, writeFile(File,JavaSource), , Uptodate:
> .\target\files\net\flexmojos\oss\compiler\IIncludeStylesheet.java
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.254 sec
> <<< FAILURE!
> Results :
> Failed tests:
> testGenerate(net.flexmojos.oss.generator.iface.IFaceGeneratorTest)
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0
> Flushing results...
> Flushing results done
> Cobertura: Loaded information on 2 classes.
> Cobertura: Saved information on 2 classes.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Flexmojos Generator ............................... SUCCESS [8.349s]
> [INFO] Flexmojos Generator api ........................... SUCCESS
> [13.808s]
> [INFO] Flexmojos Generator - graniteds 1.1.0 ............. SUCCESS [9.411s]
> [INFO] Flexmojos Generator - graniteds 2.0.0 ............. SUCCESS
> [10.089s]
> [INFO] Flexmojos Generator - graniteds 2.1.0 ............. SUCCESS [6.738s]
> [INFO] Flexmojos Generator - graniteds 2.2.0 ............. SUCCESS [6.552s]
> [INFO] Flexmojos Generator - graniteds 2.3.0 ............. SUCCESS [9.642s]
> [INFO] Flexmojos Generator - Constraints ................. SUCCESS
> [17.545s]
> [INFO] Flexmojos Generator Plugin ........................ SUCCESS [8.497s]
> [INFO] Flexmojos Generator - Internal ifaces generator ... FAILURE [4.297s]
> [INFO] Flexmojos Generator - Internal Threadlocal generator SKIPPED
> [INFO] Flexmojos Generator - Internal Flex2 generator .... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1:35.753s
> [INFO] Finished at: Thu Dec 20 10:07:35 CET 2012
> [INFO] Final Memory: 12M/29M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on
> project flexmojos-generator-internal-compiler-iface: There are test
> failures.
> [ERROR]
> [ERROR] Please refer to
> E:\Boulot\FlexMojos\workspace\flexmojos\flexmojos-generator\flexmojos-generator-internal-compiler-iface\target\surefire-reports
>
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :flexmojos-generator-internal-compiler-iface
Trying now to understand what is happening, but there is no "error message"
nor "simple cause" in test reports. I think that I have to restructure
projets in order to run them in a debugger ?
Anyway, and to conclude :
- *I used FlexMojos for a year 1/2 : this is a great work !! Thanx guys.*
- Mavenizer can be improved (maybe replaced by a single POM) in order to
be more simple and clear
- I still don't understand why FlexMojos 6.x tests don't passed (module
those repositories issues), but still trying to understand :o))
- Maybe there should be some "advices" about tools to be used (in my
case, how to debug a test - I can rebuild an Eclipse Java project but I'm
lazy and not sure this is the good way).
I hope this will help you Chris,
--
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/