Hello Christopher, I realized that I need to use the <executions> in order to specify multiple executions of the same plugin. So I have updated the flexmojos-maven-plugin this way now, where each execution should compile a different sourceFile (so I can compile 3 sourceFiles with 3 executions):
<plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.8</version> <extensions>true</extensions> <executions> <execution> <id>Build1</id> <configuration> <sourceFile>File1.mxml</sourceFile> <debug>true</debug> <output>File1.swf</output> </configuration> <goals> <goal>compile-swf</goal> </goals> </execution> <execution> <id>Build2</id> <configuration> <sourceFile>File2.mxml</sourceFile> <debug>true</debug> <output>File2.swf</output> </configuration> <goals> <goal>compile-swf</goal> </goals> </execution> <execution> <id>Build3</id> <configuration> <sourceFile>File3.mxml</sourceFile> <debug>true</debug> <output>File3.swf</output> </configuration> <goals> <goal>compile-swf</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>3.2.0.3958</version> <type>pom</type> </dependency> </dependencies> </plugin> However, while running the maven build with above in my pom, it gives following error: /[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:compile-swf (default-compile-swf) on project TA_UI_Test2: Source file not expecified and no default found! -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:compile-swf (default-compile-swf) on project TA_UI_Test2: Source file not expecified and no default found! at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: org.apache.maven.plugin.MojoExecutionException: Source file not expecified and no default found! at org.sonatype.flexmojos.compiler.SwfMojo.setUp(SwfMojo.java:310) at org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:154) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 more/ Why does above error appear even if the sourceFile is specified for each execution? -- Sent from: http://apache-flex-development.2333347.n4.nabble.com/