I tried the dependency override, but it really doesn't seem like it's
granite/gas3's fault. There seems to be no filter for flexmojos to
filter output of the generator. It seems that the only way for me to
fix the problem is to generate everything, then delete the .as files /
package that i don't want to keep.
Like i've posted before, this was our ant task:
<path id="lib">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<target name="as3.generate">
<delete includeemptydirs="true">
<fileset dir="src/as3/entities" includes="**/*.as" />
</delete>
<gas3 outputdir="src/as3/entities" classpathref="lib"
tide="true"
entitybasetemplate="entitybase2.gsp"
entitytemplate="entity.gsp">
<classpath>
<pathelement location="bin" />
</classpath>
<fileset dir="bin">
<include
name="com/groupId/asset/entities/model/**/*.class"/>
</fileset>
</gas3>
</target>
the classpath was all of the files available to the generator, but the
<fileset dir="bin"> was files with a filter, to generate, so it
wouldn't generate the os files. Is there no way to filter the output
of flexmojos-generate?
On Sep 10, 8:17 pm, Edward Yakop <[email protected]> wrote:
> You can override flexmojo granite ds dependency by doing the following:
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.sonatype.flexmojos</groupId>
> <artifactId>flexmojos-maven-plugin</artifactId>
> <extensions>true</extensions>
> < .... >
> <dependencies>
> <dependency>
> <groupId>org.graniteds</groupId>
> <artifactId>...</artifactId>
> <version>2.0.0.SP1</version>
> </dependency>
> </dependencies>
> <....>
>
> Regards,
> Edward Yakop
>
> On Fri, Sep 11, 2009 at 04:25, Jimic79 <[email protected]> wrote:
>
> > According to
> >http://repository.sonatype.org/content/groups/flexgroup/org/sonatype/...
>
> > You're requiring granite-generator 2.0.0.GA. There's 2.0.0.SP1, but
> > i'm not sure what the differences are. So short of trying SP1, i'm
> > not sure what else to try. This has worked with ant, so i don't know
> > why/if it could be granite itself.
>
> > I could post to the granite forum about it, and maybe I will...
> > Anything else you think I should try before I do so?
>
> > On Sep 10, 4:07 pm, Marvin Froeder <[email protected]> wrote:
> >> May be a bug on granite version used by flexmojos?
>
> >> On Thu, Sep 10, 2009 at 4:57 PM, Jimic79 <[email protected]> wrote:
>
> >> > Right, that's not really the issue. We have the generator templates
> >> > making customized entities, as it did in ant and worked fine. The
> >> > problem is, if the entity it's generating extends an entity that
> >> > should be on the classpath, but apparently is outside the scope of the
> >> > <includeJavaClasses>, the extend fails in the generated base class.
> >> > So it seems like there's no division between classes on the classpath,
> >> > and classes in the source path. Either it generates as3 for them if i
> >> > weaken the <includeJavaClasses> reference or it doesn't have them
> >> > available if they're not in the <includeJavaClasses>.
>
> >> > Here's the AssetBase.as class definition as it's currently generated:
> >> > public class AssetBase {
>
> >> > but the com.groupId.asset.entities.file.Asset extends
> >> > com.groupId.os.entities.file.AbstractFile, which is in the os package,
> >> > so it should look like this:
>
> >> > import com.groupId.os.entities.file.AbstractFile;
> >> > public class AssetBase extends AbstractFile {
>
> >> > but it's not finding that import because the import is not available
> >> > on the classpath with <includeJavaClasses> set like this:
> >> > <includeJavaClasses>
> >> > <includeClass>*asset.entities.model*</includeClass>
> >> > </includeJavaClasses>
>
> >> > But it works fine when includeJavaClasses looks like this:
> >> > <includeJavaClasses>
> >> > <includeClass>*entities.model*</includeClass>
> >> > </includeJavaClasses>
>
> >> > but it also generates the as3 in the os package, which it shouldn't
> >> > do.
>
> >> > On Sep 10, 3:44 pm, Marvin Froeder <[email protected]> wrote:
> >> > > Well, if you delete already existing files it should generate all,
> >> > removing
> >> > > this skipping messages, but it looks like gas3 generated all files it
> >> > should
> >> > > generate....
>
> >> > > On Thu, Sep 10, 2009 at 4:41 PM, Jimic79 <[email protected]> wrote:
>
> >> > > > D:\repo\groupId-lib\com.groupId.asset\trunk>mvn -U -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] snapshot org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-
> >> > > > SNAPSHOT: checking for updates from repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-
> >> > > > SNAPSHOT: checking for updates from clients.groupId.com-snapshots
> >> > > > [WARNING] repository metadata for: 'snapshot
> >> > > > org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-SNAPSHOT' could not
> >> > > > be retrieved from repository: clients.groupId.com-snapshots due to an
> >> > > > error: Authorization failed: Access denied to:
> >> > > >http://clients.groupId.com:8081/artifactory/repo/org/sonatype/flex
> >> > > > mojos/flexmojos-maven-plugin/3.4-SNAPSHOT/maven-metadata.xml
> >> > > > [INFO] Repository 'clients.groupId.com-snapshots' will be blacklisted
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-parent:3.4-SNAPSHOT:
> >> > > > checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-parent:3.4-SNAPSHOT:
> >> > > > checking for updates from repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-parent:3.4-SNAPSHOT:
> >> > > > checking for updates from flex-mojos-repository
> >> > > > [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] snapshot org.sonatype.flexmojos:flexmojos-generator-api:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-api:3.4-
> >> > > > SNAPSHOT: checking for updates from repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-api:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator:3.4-
> >> > > > SNAPSHOT: checking for updates from repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator:3.4-
> >> > > > SNAPSHOT: checking for updates from flex-mojos-repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-1.1.0:3.4-SNAPSHOT: checking for updates from flex-mojos-
> >> > > > repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-1.1.0:3.4-SNAPSHOT: checking for updates from
> >> > > > repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-1.1.0:3.4-SNAPSHOT: checking for updates from flex-mojos-
> >> > > > repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-2.0.0:3.4-SNAPSHOT: checking for updates from flex-mojos-
> >> > > > repository
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-2.0.0:3.4-SNAPSHOT: checking for updates from
> >> > > > repository.jboss.org
> >> > > > [INFO] snapshot org.sonatype.flexmojos:flexmojos-generator-
> >> > > > graniteds-2.0.0:3.4-SNAPSHOT: checking for updates from flex-mojos-
> >> > > > repository
> >> > > > [INFO] snapshot
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---