Hi, We initially had only 1 mxml file in the source folder, so flex-mojos picked this one up. Later, we added an .as file to that same folder and suddenly flex-mojos did not compile anymore. I looked through the source code and found that if there is more then 1 mxml or as file, you only look for Main.mxml or Index.mxml, but our file was not named like that. Solving it once I knew what the problem was, was easy. I just had to add <sourceFile> to my configuration.
Maybe you can document this some more in the docs of <sourceFile/>. Now, it just states that this is optional, but it would be good to elaborate on it. Maybe it would also be good to fail the build with a nice exception, saying you cannot find a single mxml or as file and the user needs to specify it using <sourceFile/>. It would have saved me some hours of research. regards, Wim PS: Thanks for the great plugin! 2009/9/19 Marvin Froeder <[email protected]> > Now I got curious.... > What is up with flexmojos? > > > VELO > > On Wed, Sep 16, 2009 at 6:31 AM, Wim Deblauwe <[email protected] > >wrote: > > > It seems the problem was not related to assembly, but to flex mojos. > Thank > > you for your help. > > > > regards, > > > > Wim > > > > 2009/9/16 Aleksey Didik <[email protected]> > > > > > Hi, > > > because you use _aseembly:single_ instead of _assembly:assembly_. > > > > > > Documentation of maven-assembly-plugin, goal single : > > > > > > Assemble an application bundle or distribution from an assembly > > >>> descriptor. This goal is suitable either for binding to the lifecycle > > or > > >>> calling directly from the command line (provided all >> required > files > > are > > >>> available before the build starts, or are produced by another goal > > specified > > >>> before this one on the command line). > > >>> > > >> > > > > > > Change _<goal>single</goal>_ to _<goal>assembly</goal>_ and try again. > > > > > > > > > > > > Best regards, > > > > > > Aleksey Didik > > > > > > > > > > > > > > > Wim Deblauwe ?????: > > > > > > Hi, > > >> > > >> I have a maven project with 'swf' packaging. I also have the assembly > > >> plugin > > >> configured as follows: > > >> > > >> <plugin> > > >> <groupId>org.apache.maven.plugins</groupId> > > >> <artifactId>maven-assembly-plugin</artifactId> > > >> <executions> > > >> <execution> > > >> <id>assembly</id> > > >> <goals> > > >> <goal>single</goal> > > >> </goals> > > >> <phase>package</phase> > > >> <configuration> > > >> <descriptors> > > >> > > >> <descriptor>src/main/assembly/descriptor.xml</descriptor> > > >> </descriptors> > > >> </configuration> > > >> </execution> > > >> </executions> > > >> </plugin> > > >> > > >> When I do a 'mvn clean install', the swf is not generated and I see > the > > >> following info message: > > >> > > >> [INFO] [install:install {execution: default-install}] > > >> [INFO] No primary artifact to install, installing attached artifacts > > >> instead. > > >> > > >> Why is my swf no longer being installed? > > >> > > >> regards, > > >> > > >> Wim > > >> > > >> > > >> > > > > > >
