D:\repo\groupId-lib\com.groupId.asset\trunk>mvn -e install
"SETTING MAVEN OPTS"
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   com.groupId.asset
[INFO]   com.groupId.asset-jar
[INFO]   com.groupId.asset-swc
[INFO]
------------------------------------------------------------------------
[INFO] Building com.groupId.asset
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing D:\repo\groupId-lib\com.groupId.asset\trunk\target
\pom-transformed.xml to C:\Users\usernamec\.m2\repository\com\groupId
\asset\1.0.0\asset-1.0.0.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building com.groupId.asset-jar
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [build-helper:add-source {execution: add-source}]
[INFO] Source directory: D:\repo\groupId-lib\com.groupId.asset\trunk
\src\java\core added.
[INFO] Source directory: D:\repo\groupId-lib\com.groupId.asset\trunk
\src\java\entities added.
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\repo\groupId-lib
\com.groupId.asset\trunk\src\java\src\test\resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] [install:install]
[INFO] Installing D:\repo\groupId-lib\com.groupId.asset\trunk\target
\com.groupId.asset-jar-1.0.0.jar to C:\Users\usernamec\.m2\repository
\com\groupId\asset-jar\1.0.0\asset-jar-1.0.0.jar
[INFO]
------------------------------------------------------------------------
[INFO] Building com.groupId.asset-swc
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
[INFO] mvc-1.0.0.swc already exists in destination.
[INFO] os-swc-1.0.0.swc already exists in destination.
[INFO] granite-essentials-swc-2.0.0.SP1.swc already exists in
destination.
[INFO] granite-swc-2.0.0.SP1.swc already exists in destination.
[INFO] [flexmojos:generate {execution: default}]
[INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[INFO] Calling the generator for each Java class.
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\AssetBase.as
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\Asset.as
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\FontAssetBase.as
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\FontAsset.as
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\ImageAssetBase.as
[INFO]   Skipping: D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities\com\groupId\asset\entities\model\ImageAsset.as
[INFO] Files affected: 0 (nothing to do).
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\repo\groupId-lib
\com.groupId.asset\trunk\src\as3\src\main\resources
[INFO] [flexmojos:compile-swc]
[INFO] Flexmojos 3.3.0 - Apache License (NO WARRANTY) - See COPYRIGHT
file
[WARNING] Nothing expecified to include. Assuming source and resources
folders.
[INFO] Flex compiler configurations:
-compiler.accessible=false
-compiler.actionscript-file-encoding UTF-8
-compiler.allow-source-path-overlap=false
-compiler.as3=true
-compiler.debug=true
-compiler.es=false
-compiler.external-library-path D:\repo\groupId-lib\com.groupId.asset
\trunk\target\as3-classes\libraries\playerglobal.swc C:\Users\usernamec
\.m2\repository\com\adobe\flex\framework\flex
\3.3.0.4852\flex-3.3.0.4852.swc C:\Users\usernamec\.m2\repository\com
\adobe\flex\framework\framework\3.3.0.4852\framewo
rk-3.3.0.4852.swc C:\Users\usernamec\.m2\repository\com\adobe\flex
\framework\rpc\3.3.0.4852\rpc-3.3.0.4852.swc C:\Users\usernamec
\.m2\repository\com\adobe\flex\framework\utilities
\3.3.0.4852\utilities-3.3.0.4852.swc C:\Users\usernamec\.m2\repository
\com\groupId\mvc\1.0.0\mvc-1.0.0.swc C:\Users\usernamec\.m2\re
pository\org\graniteds\granite-swc\2.0.0.SP1\granite-swc-2.0.0.SP1.swc
C:\Users\usernamec\.m2\repository\org\graniteds\granite-essentials-swc
\2.0.0.SP1\granite-essentials-swc-2.0.0.SP1.swc
-compiler.fonts.local-fonts-snapshot D:\repo\groupId-lib
\com.groupId.asset\trunk\target\as3-classes\fonts.ser
-compiler.headless-server=false
-compiler.include-libraries=
-compiler.keep-all-type-selectors=false
-compiler.keep-generated-actionscript=false
-compiler.library-path C:\Users\usernamec\.m2\repository\com\groupId
\os-swc\1.0.0\os-swc-1.0.0.swc
-compiler.locale=
-compiler.optimize=true
-compiler.source-path D:\repo\groupId-lib\com.groupId.asset\trunk\src
\as3\entities
-compiler.strict=true
-compiler.use-resource-bundle-metadata=true
-compiler.verbose-stacktraces=false
-compute-digest=true
-default-background-color 8821927
-default-frame-rate 24
-default-script-limits 1000 60
-default-size 500 375
-licenses.license flexbuilder3 <removed>
-licenses.license flexbuilder3.displayed20DaysLeftMessage true
-licenses.license flexbuilder3.displayedFirstLaunchMessage true
-licenses.license flexbuilder3.displayedStartPageAtLeastOneTime true
-metadata.date Thu Sep 10 12:22:09 EDT 2009
-use-network=true
-verify-digests=true -static-link-runtime-shared-libraries=false -load-
config=
[WARNING] D:\repo\groupId-lib\com.groupId.asset\trunk\src\as3\entities
\com\groupId\asset\entities\model\AssetBase.as:[20,18] No constructor
function was specified for class AssetBase.    public class AssetBase
extends AbstractModel implements IExternalizable {
[WARNING] D:\repo\groupId-lib\com.groupId.asset\trunk\src\as3\entities
\com\groupId\asset\entities\model\ImageAssetBase.as:[18,18] No
constructor function was specified for class ImageAssetBase.    public
class ImageAssetBase extends Asset {
[WARNING] D:\repo\groupId-lib\com.groupId.asset\trunk\src\as3\entities
\com\groupId\asset\entities\model\FontAssetBase.as:[18,18] No
constructor function was specified for class FontAssetBase.    public
class FontAssetBase extends Asset {
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\repo\groupId-lib
\com.groupId.asset\trunk\src\as3\src\test\resources
[INFO] [flexmojos:test-compile]
[INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[WARNING] Test folder not foundD:\repo\groupId-lib\com.groupId.asset
\trunk\src\as3\src\test\java
[INFO] [flexmojos:test-run]
[INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[WARNING] Skipping test run. Runner not found: D:\repo\groupId-lib
\com.groupId.asset\trunk\target\test-classes
[INFO] [install:install]
[INFO] Installing D:\repo\groupId-lib\com.groupId.asset\trunk\target
\com.groupId.asset-swc-1.0.0.swc to C:\Users\usernamec\.m2\repository
\com\groupId\asset-swc\1.0.0\asset-swc-1.0.0.swc
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] com.groupId.asset .................................... SUCCESS
[2.148s]
[INFO] com.groupId.asset-jar ................................ SUCCESS
[1.612s]
[INFO] com.groupId.asset-swc ................................ SUCCESS
[20.427s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 24 seconds
[INFO] Finished at: Thu Sep 10 12:22:12 EDT 2009
[INFO] Final Memory: 33M/63M
[INFO]
------------------------------------------------------------------------

If you look at the generation, it skips them because i've already run
the generation and nothing has changed.  I've tried many many times to
delete and regenerate, and got the same result.
com\groupId\asset\entities\model\AssetBase.as
should extend AbstractFile which is in com.groupId.os.entities, but it
can't find it so the base class ends up not extending anything.  If i
change my <includeJavaClasses> from
<includeJavaClasses>
   <includeClass>*asset.entities.model*</includeClass>
</includeJavaClasses>
to
<includeJavaClasses>
   <includeClass>*entities.model*</includeClass>
</includeJavaClasses>

AssetBase ends up extending AbstractFile like it should, but it also
generates all the entities from com.groupId.os, which it shouldn't,
because they exist in the swc created from the os project.



On Sep 10, 12:18 pm, Marvin Froeder <[email protected]> wrote:
> At first mvn -e install is enough...
>
> On Thu, Sep 10, 2009 at 1:13 PM, Jimic79 <[email protected]> wrote:
>
> > What's most helpful, general output?
> > mvn install
> > mvn -e install
> > mvn -X install
>
> > -X (debug output) prints probably 20 pages of output, i don't want to
> > clog the page
>
> > On Sep 10, 12:00 pm, Marvin Froeder <[email protected]> wrote:
> > > Flexmojos must be printing something on console..... w/o that I have no
> > idea
> > > what is going on.
>
> > > VELO
>
> > > On Thu, Sep 10, 2009 at 12:55 PM, Jimic79 <[email protected]> wrote:
>
> > > > All signs point to gas3 not being able to generate as3 for entities in
> > > > the source path that are dependent upon entities that are on the
> > > > classpath, but not generate those entities from the classpath.
>
> > > > we have 2 projects:
> > > > project 1: groupId.os.entities <-- in a jar on the classpath
> > > > project 2: groupId.asset.entities <-- part of the current source tree
>
> > > > Some of the classes in asset (project 2) extend those in os (project
> > > > 1)
>
> > > > If i make my includeJavaClasses say:
> > > > <includeJavaClasses>
> > > >   <includeClass>*entities*</includeClass>
> > > > </includeJavaClasses>
>
> > > > gas3 generates all entities, both for the os jar on the classpath and
> > > > the asset source, anything available that matches that package regex.
> > > > If i make my includeJavaClasses say
>
> > > > <includeJavaClasses>
> > > >   <includeClass>*asset.entities*</includeClass>
> > > > </includeJavaClasses>
>
> > > > it generates the right amount of classes (those in project 2's
> > > > entities folder, but not project 1's), but the includes during
> > > > generation fail because a class dependent upon a class made available
> > > > in a jar on the classpath is considered "not available"
>
> > > > I know, simple right?  This has been my hellish life for the past 2
> > > > weeks....
>
> > > > Long story short, project 1's as3 classes should not be generated
> > > > because maven builds a jar and swc correctly with java classes and as3
> > > > classes respectively, so it would be repeating code.  I need to be
> > > > able to generate as3 classes dependent upon project 1's jars/swcs but
> > > > not regenerate project 1's code as that should already exist on
> > > > project 2's maven dependency list.
>
> > > > *pant *pant *pant *wheeeeeeze
>
> > > > On Sep 10, 11:13 am, Marvin Froeder <[email protected]> wrote:
> > > > > gas3 should have access to the full dependency tree....  but I can be
> > > > wrong
> > > > > =D
> > > > > So gas3 will be able to reflect your classes.  But it won't generate
> > as3
> > > > for
> > > > > non declared classes.
>
> > > > > VELO
>
> > > > > On Thu, Sep 10, 2009 at 11:58 AM, Jimic79 <[email protected]>
> > wrote:
>
> > > > > > Before I start posting way too many debug outputs that are really
> > > > > > huge, and probably not helpful as there are no failures, just
> > > > > > incorrect output, lemme first ask a direct question:
>
> > > > > > If i am using gas3, and my java classes require classes within a
> > jar
> > > > > > dependency, where does that dependency go, and what does the
> > > > > > dependency look like (xml-node-wise)?
>
> > > > > > Also, that was not my flexbuilder license, i made it into 1234s.
>
> > > > > > On Sep 10, 10:07 am, Marvin Froeder <[email protected]> wrote:
> > > > > > > I failed to understand the problem... Did you got any error
> > printed
> > > > on
> > > > > > log,
> > > > > > > could you provide it?
> > > > > > > PS: Be aware, you did post your flexbuilder license.
>
> > > > > > > On Thu, Sep 10, 2009 at 10:58 AM, Jimic79 <[email protected]>
> > > > wrote:
>
> > > > > > > > Ok, next issue.
>
> > > > > > > > We have a massive project broken into logical sub-projects.
> >  This
> > > > > > > > project uses graniteds2. Out of each project, we have a .jar
> > and
> > > > .swc
> > > > > > > > created.  There are sub-projects that extend other
> > sub-projects, so
> > > > we
> > > > > > > > might have an entity in project 2 that extends an entity in
> > project
> > > > > > > > 1.  Obviously project 2 requires the jar and swc from project
> > 1,
> > > > and I
> > > > > > > > have the dependencies set up as such.
>
> > > > > > > > The issue comes at as3 generation time.  In project 1,
> > everything
> > > > > > > > works great.  In project 2, which extends project 1, the as3 is
> > > > > > > > generated fine for most of the entities, except the ones
> > extending
> > > > > > > > entities from project 1.  In the as3 generation.
>
> > > > > > > > Question 1 is: if i want the jar that project 2 is dependent on
> > on
> > > > the
> > > > > > > > classpath for as3 generation, where do i put the dependency, in
> > the
> > > > > > > > plugin definition, or just within the pom's dependencies.
>
> > > > > > > > Question 2 is: what do i make the scope of that dependency so
> > that
> > > > the
> > > > > > > > as3 is generated for entities within the current project but
> > not
> > > > the
> > > > > > > > entities within the jar.
>
> > > > > > > > My current plugin definition:
> > > > > > > > <plugin>
> > > > > > > >        <groupId>org.sonatype.flexmojos</groupId>
> > > > > > > >        <artifactId>flexmojos-maven-plugin</artifactId>
> > > > > > > >        <version>3.3.0</version>
> > > > > > > >        <extensions>true</extensions>
> > > > > > > >        <executions>
> > > > > > > >          <execution>
> > > > > > > >            <goals>
> > > > > > > >              <goal>generate</goal>
> > > > > > > >            </goals>
> > > > > > > >            <configuration>
> > > > > > > >                        <targetPlayer>10.0.0</targetPlayer>
>
> >  <generatorToUse>graniteds2</generatorToUse>
> > > > > > > >                                <licenses>
>
> > > > > > > >  <flexbuilder3>0000-1234-1234-1234-1234-1234</flexbuilder3>
> > > > > > > >                            </licenses>
>
> > > >  <outputDirectory>entities</outputDirectory>
>
> > > > > > > >  <baseOutputDirectory>entities</baseOutputDirectory>
> > > > > > > >                            <includeJavaClasses>
>
> > > > > > > >  <includeClass>*asset.entities.model*</includeClass>
> > > > > > > >                            </includeJavaClasses>
> > > > > > > >                            <entityTemplate>
>
> > > >  <template>entityBase2.gsp</template>
>
> >  <template>entity.gsp</template>
> > > > > > > >                                </entityTemplate>
> > > > > > > >                        </configuration>
> > > > > > > >          </execution>
> > > > > > > >        </executions>
> > > > > > > >        <dependencies>
> > > > > > > >                   <dependency>
> > > > > > > >                       <groupId>com.adobe.flex</groupId>
> > > > > > > >                       <artifactId>license</artifactId>
> > > > > > > >                       <version>3.0.0</version>
> > > > > > > >                       <scope>external</scope>
> > > > > > > >                     </dependency>
> > > > > > > >          </dependencies>
> > > > > > > >      </plugin>
>
> > > > > > > > this is the dependency i'm not sure of.  This is the jar that
> > the
> > > > > > > > current project's entities rely on:
> > > > > > > > <dependency>
> > > > > > > >          <groupId>[mygroupid]</groupId>
> > > > > > > >          <artifactId>os-jar</artifactId>
> > > > > > > >          <version>1.0.0</version>
> > > > > > > >          <scope>external</scope>
> > > > > > > >        </dependency>
>
> > > > > > > > note: for my plugin definition, all the files are output in the
> > > > right
> > > > > > > > directories, the templates are found and used correctly, but
> > please
> > > > > > > > let me know if you see something that doesn't look right.
>
> > > > > > > > note 2: for the <includeJavaClasses> the package name would
> > mask
> > > > out
> > > > > > > > overlaying entities, the project 2 name is asset, the project 1
> > > > name
> > > > > > > > is os, so the os entities wouldn't be in the generated files,
> > or so
> > > > i
> > > > > > > > believe.
--~--~---------~--~----~------------~-------~--~----~
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