And I just committed an updated version of the flexjs-simple-library-archetype 
… I noticed we already had an archetype for that … unfortunately it was broken, 
so I re-created it. This time I also added some classes, manifests and 
conditional compilation:

There are 3 classes in there:
- UniversalClass (Included in Flash and JavaScript)
- FlashClass (Included only in Flash)
- JavaScriptClass (Included only in JavaScript)

The manifest only references UniversalClass so the classes in the catalog 
should only have the namespace on this class.

Additionally, I added some methods to UniversalClass which are available in 
both, only Flash and only JavaScript to demonstrate some other parts.

I think it should be a good starting point … please have a look, give feedback 
and improve ☺

Chris


Am 08.02.17, 09:15 schrieb "Christofer Dutz" <[email protected]>:

    Hi Carlos,
    
    Well bringing all three repos into one would be a cool thing and shouldn’t 
have too big implications. 
    One problem I have observed to have increased greatly in the last few 
months (Don’t know what changed though).
    If I build jars that are required as/in plugins in other parts of the 
build, maven now fails deterministically. A year ago I was using the same Maven 
version but I got random failures at about 10% of my builds. Now I get failures 
at 100%. I don’t know if it’s changes to the Java VM or the OS. But I get loads 
of ClassNotFoundExceptions because the classloader thinks a jar is empty if it 
is replaced during the builds.
    
    I just had to refactor Flexmojos build into a plugin and framework build 
(the same way I split up FlexJS) to be able to build at all.
    
    Currently I’m thinking of highjacking the maven-invoker-plugin to run all 
three builds separately (I’m using the invoker plugin in the 
framework/testsuite module.
    
    Regarding a fourth type of archetype … I agree … and while at it, I think a 
fifth containing a typedef would be good too. Archetypes are easy to create. 
Just have a look at the existing ones. But I’d be happy to help if you are 
stuck.
    
    Chris
    
    
    Am 07.02.17, 20:41 schrieb "[email protected] im Auftrag von Carlos 
Rovira" <[email protected] im Auftrag von [email protected]>:
    
        Hi Chris,
        
        just want to ask you about:
        
        1.- What about to create a Maven Archetype to setup a library project
        (SWC)? I think this is missed and is needed as with others
        
        2.- I think you talked in the past about to group the 3 maven repos into
        one build (although still being able to build it separately). It seems 
to
        me that this should not be very difficult right?
        Or maybe there's something implied that makes it not possible?
        
        Thanks
        
        
        -- 
        Carlos Rovira
        http://about.me/carlosrovira
        
    
    

Reply via email to