Maven 2.2.0

Any thoughts on files not being included unless they are explicitly
listed in the <includeFiles /> configuration?

Should I file bugs for any of these issues?

Thanks again.
- Scott

On Feb 5, 4:57 pm, Marvin Froeder <[email protected]> wrote:
> WTF?!  No way, maven should inject the resources into 
> SignAirMojo....http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/sign-air-m...
>
> Any changes you do to project/build/resources should be automagically there.
>
> What maven version are you using, maybe a bug on maven who knows?!
>
> On Fri, Feb 5, 2010 at 10:29 PM, TizzyTool <[email protected]> wrote:
> > I've run into a few issues:
>
> > - In order to use a non-standards resource folder, I need to add the
> > listing to both build.resources AND to the flexmojos
> > build.plugins.plugin.configuration.resources. If I do just one or the
> > other, SignAirMojo can't find the folders. Could this relate to the
> > warning message I see which says "The parameter expression:
> > 'project.build.resources' used in mojo: 'sign-air' has been
> > deprecated. Use 'project.resources' instead."?
> > - SignAirMojo won't include any include files if there is no
> > <includeFiles /> entry.
>
> > Here's a snippet I'm using. I've left in the need to specify the
> > resources folders more than once, and commented out the <includeFiles /
> > > statement
>
> > <properties>
> >        <myProject.air.bundleExportDir>${project.build.directory}/bundle-
> > export</myProject.air.bundleExportDir>
> > </properties>
>
> > <build>
> >        <resources>
>
> >  <resource><directory>${myProject.air.bundleExportDir}</directory></
> > resource>
> >        </resources>
> >        <plugins>
> >                <plugin>
> >                        <artifactId>maven-clean-plugin</artifactId>
> >                        <configuration>
> >                                <filesets>
> >                                        <fileset>
>
> >  <directory>${myProject.air.bundleExportDir}</directory>
> >                                                <includes>
>
> >  <include>**/*</include>
> >                                                </includes>
> >                                        </fileset>
> >                                </filesets>
> >                        </configuration>
> >                </plugin>
> >                <plugin>
> >                        <groupId>org.sonatype.flexmojos</groupId>
> >                        <artifactId>flexmojos-maven-plugin</artifactId>
> >                        <configuration>
> >                                <storepass>pass</storepass>
> >                                <!--
> >                                <includeFiles>
>
> >  <includeFile>file-from-bundle-zip.txt</includeFile>
> >                                </includeFiles>
> >                                -->
> >                                <resources>
>
> >  <resource><directory>${myProject.air.bundleExportDir}</
> > directory></resource>
> >                                </resources>
> >                        </configuration>
> >                </plugin>
> >                <plugin>
> >                        <artifactId>maven-dependency-plugin</artifactId>
> >                        <executions>
> >                                <execution>
> >                                        <id>unpack-zip</id>
> >                                        <phase>generate-resources</phase>
> >                                        <goals>
> >                                                <goal>unpack</goal>
> >                                        </goals>
> >                                        <configuration>
> >                                                <artifactItems>
> >                                                        <artifactItem>
>
> >  <groupId>${groupId}</groupId>
>
> >  <artifactId>myProject-runtime-bundle</artifactId>
>
> >  <version>${myProject.version}</version>
>
> >  <type>zip</type>
> >                                                        </artifactItem>
> >                                                </artifactItems>
>
> >  <outputDirectory>${myProject.air.bundleExportDir}</
> > outputDirectory>
> >                                        </configuration>
> >                                </execution>
> >                        </executions>
> >                </plugin>
> >        </plugins>
> > </build>
>
> > On Feb 5, 11:09 am, Marvin Froeder <[email protected]> wrote:
> > > On Fri, Feb 5, 2010 at 4:28 PM, TizzyTool <[email protected]> wrote:
> > > > Where would I copy the files? I can't copy them to the resources
> > > > folder because that folder is checked into source control, so I
> > > > wouldn't want to mix sourced- and non-sourced files at build time. I
> > > > tried copying them to "target/air" but they don't seem to get included
> > > > in the package.
>
> > > No but you can have as many resources folder you wanna...  so create one
> > > inside target...
>
> > > > I also tried copying the files to a folder I created inside of
> > > > "target", but the <includeFiles /> configuration claimed it couldn't
> > > > find the files there, even though files were actually there (I
> > > > verified that the file path specified by the sign-air error message
> > > > actually does exist).
>
> > > > Also, it appears that:
> > > > 1. files in the resources folder aren't included in the .air file
> > > > unless they are listed in the <includeFiles /> configuration
> > > > 2. <includeFiles /> doesn't support wildcards
>
> > > If you put nothing on includeFiles flexmojos will assume all resources
> > (if
> > > it is not doing so must be fixed).  But if you decide to pic what should
> > be
> > > included you must do all the work.
>
> > > > Is that correct?
>
> > > > I also find it confusing that the resources folder is supposed to
> > > > contain files that are used only for building the .air file (*.p12 and
> > > > descriptor.xml) AND is also supposed to house files to be included in
> > > > the .air package.
>
> > > I agree with you here... may be an src/main/config..... not sure....
>
> > > > Thanks again for the help.
> > > > - Scott
>
> > > > On Feb 4, 5:22 pm, Marvin Froeder <[email protected]> wrote:
> > > > > Tell me exactly what you wanna do? Trying to attach an jar or what?
> > > > Still,
> > > > > use maven dependency plugin, copy goal.
>
> > > > > Sent from DROID
>
> > > > > Em 04/02/2010 23:19, "TizzyTool" <[email protected]>escreveu:
>
> > > > > My files are coming from Maven dependencies, not some local path. I
> > > > > didn't mention that just to keep it simple. So it is a valid issue, I
> > > > > feel.
>
> > > > > I started down the ANT path a while ago, but I need the .air file to
> > > > > be installed to Maven in the default build process, and if the
> > project
> > > > > is not of package "air", this won't happen.
>
> > > > > Does that make sense? Non-SWC/SWFs are coming from dependencies, and
> > I
> > > > > need to use the package "air" to create a Maven artifact.
>
> > > > > Thanks
> > > > > - Scott
>
> > > > > On Feb 4, 4:49 pm, Marvin Froeder <[email protected]> wrote:
>
> > > > > > Well, this is a maven thing....
> > > > > > Yo...
> > > > > > On Thu, Feb 4, 2010 at 10:38 PM, TizzyTool <[email protected]>
> > > > wrote:
> > > > > > > HAHAH No worries.
>
> > > > > > ...
> > > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > > > > > > For more options, visit this group at
> > > > > > > > >http://groups.google.com/group/flex-mojos?hl=...
>
> > > > --
> > > > 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]<flex-mojos%[email protected]>
> > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> > > >http://flexmojos.sonatype.org/
>
> > --
> > 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]<flex-mojos%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >http://flexmojos.sonatype.org/

-- 
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://flexmojos.sonatype.org/

Reply via email to