Hello, Kinh, I don't know how to solve your problem, but the page [1] says it's not a bug:
"Due to the use of executions configurations, invoking the named goals from the command-line will fail to function correctly." [1] http://mojo.codehaus.org/retrotranslator-maven-plugin/examples/general-translation.html Cheers, Taras On Fri, Jul 10, 2009 at 3:17 PM, NGUYEN Cong Kinh <[email protected]> wrote: > Hello, > > I'm using the retrotranslator plugin. In fact, I want to transform the > result classes to Java 1.4. Here is my configuration: > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>retrotranslator-maven-plugin</artifactId> > <executions> > <execution> > <phase>process-classes</phase> > <goals> > <goal>translate</goal> > </goals> > <configuration> > <filesets> > <fileset> > > <directory>${project.build.outputDirectory}</directory> > <includes> > <include>**/*.class</include> > </includes> > </fileset> > </filesets> > </configuration> > </execution> > </executions> > </plugin> > > With this configuration, I can transform result classes to Java 1.4 by the > command "mvn install" (it works). But, I want to specify that I use > retrotranslator in my pom by using "mvn retrotranslator:translate", here is > the error: > > [INFO] [retrotranslator:translate] > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] No files to translate. > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IllegalArgumentException: No files to translate. > at > net.sf.retrotranslator.transformer.Retrotranslator.run(Retrotranslator.java:168) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ... > > > Could anyone give me suggestions to solve my problem? If not, how I could > configure my pom to transform the classes to Java 1.4 by using "mvn > retrotranslator:translate" instead of "mvn install". > > Thanks in advance! > Kinh > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
