What do you mean by "Deploy complains that I don't have an artifact to
deploy, only an attachment." ?

VELO

On Dec 23, 7:38 pm, Brian <[email protected]> wrote:
> Afternoon,
>
> I have a need to build an application SWF twice in a project.  Once
> for production and once for QA with the automation SWCs and RIATest
> SWCs baked into the QA version.  Minus the difference in dependencies
> and the use of a classifier, the config for the plugin for each SWF is
> exactly the same.  I've tried using the classifier flag on the compile-
> swf goal along with a profile to include the RIATest and automation
> SWCs as dependencies, activated by a property.  Everything in the
> lifecycle occurs as expected, until I get to deploy.  Deploy complains
> that I don't have an artifact to deploy, only an attachment.  Using
> the debug flag and reading the docs on "classifier", I can tell that
> the main artifact for the project is not created when using this
> option.  Is there an easy way to trick deploy to only deploy an
> attachment?  Is there another way that anyone can suggest to
> dynamically include dependencies so I can build the production and QA
> SWF in two different executions of compile-swf on the same build run?
> Can I use the pluginArtifacts config option to do this?
>
> Snippets of my POM are shown below (including the profile):
>
> ...
>    <plugin>
>             <groupId>org.sonatype.flexmojos</groupId>
>             <artifactId>flexmojos-maven-plugin</artifactId>
>             <version>3.5.0</version>
>             <extensions>true</extensions>
>             <configuration>
>                <optimize>false</optimize>
>                <sourceFile>Main.mxml</sourceFile>
>                <allowHeadlessMode>false</allowHeadlessMode>
>                <headlessServer>true</headlessServer>
>                <includeTestFiles>
>                   <param>*Test.as</param>
>                   <param>*Test.mxml</param>
>                </includeTestFiles>
>                <excludeTestFiles>
>                   <param>**/integration/*</param>
>                   <param>**/functional/*</param>
>                </excludeTestFiles>
>                <licenses>
>                   <flexbuilder3></flexbuilder3>
>                </licenses>
>                <resourceBundlePath>
>                   ${basedir}/src/main/locales/{locale}
>                </resourceBundlePath>
>                <targetPlayer>10.0.0</targetPlayer>
>                <verboseStacktraces>true</verboseStacktraces>
>             </configuration>
>             <dependencies>
>                <dependency>
>                   <groupId>com.adobe.flex</groupId>
>                   <artifactId>compiler</artifactId>
>                   <version>${flex.sdk.version}</version>
>                   <type>pom</type>
>                </dependency>
>                <dependency>
>                   <groupId>com.adobe.flex</groupId>
>                   <artifactId>license</artifactId>
>                   <version>${flex.sdk.version}</version>
>                </dependency>
>             </dependencies>
>          </plugin>
>
> ...
>       <profile>
>          <id>dit-specific-build</id>
>          <activation>
>             <activeByDefault>false</activeByDefault>
>             <property>
>                <name>qa</name>
>             </property>
>          </activation>
>          <build>
>             <plugins>
>                <plugin>
>                   <groupId>org.sonatype.flexmojos</groupId>
>                   <artifactId>flexmojos-maven-plugin</artifactId>
>                   <configuration>
>                      <classifier>riatest</classifier>
>                   </configuration>
>                </plugin>
>             </plugins>
>          </build>
>          <dependencies>
>             <!-- Use the latest version of RIATest -->
>             <dependency>
>                <groupId>com.riatest</groupId>
>                <artifactId>testagent</artifactId>
>                <version>[4.3311,)</version>
>                <type>swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <!-- Flex Automation SWCs -->
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation</artifactId>
>                <version>${flex.sdk.version}</version>
>                <type>swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation_dmv</artifactId>
>                <version>${flex.sdk.version}</version>
>                <type>swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation_agent</artifactId>
>                <version>${flex.sdk.version}</version>
>                <type>swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation_spark</artifactId>
>                <version>${flex.sdk.version}</version>
>                <type>swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation</artifactId>
>                <version>${flex.sdk.version}</version>
>                <classifier>en_US</classifier>
>                <type>rb.swc</type>
>                <scope>internal</scope>
>             </dependency>
>             <dependency>
>                <groupId>com.adobe.flex.sdk</groupId>
>                <artifactId>automation_agent</artifactId>
>                <version>${flex.sdk.version}</version>
>                <classifier>en_US</classifier>
>                <type>rb.swc</type>
>                <scope>internal</scope>
>             </dependency>
>          </dependencies>
>       </profile>
>
> Is there anything in the new test-swf goal that would help me out?  If
> I made the RIATest SWC a dependency in the runtime scope. would it
> build it into my SWF for me?   Any help is appreciated.
>
> -Brian

-- 
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