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