Get you Maven installed into a folder without spaces in it and get the project into a different folder..
that should do the trick. manfred On Wed, April 25, 2012 1:22 am, bettypop wrote: > Hi I am using the maven-exec-plugin. But on trying to compile the build, I > get the following error: > > [INFO] Scanning for projects... > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building TestProjectMaven 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ > nativeTest > ProjectMaven --- > [debug] execute contextualize > [WARNING] Using platform encoding (Cp1252 actually) to copy filtered > resources, > i.e. build is platform dependent! > [INFO] skip non existing resourceDirectory C:\Program > Files\apache-maven-3.0.4\T > estProjectMaven\src\main\native\src\main\resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > nativeTestPro > jectMaven --- > [INFO] No sources to compile > [INFO] > [INFO] --- exec-maven-plugin:1.1:exec (buildlib) @ nativeTestProjectMaven > --- > [INFO] '"C:\Program > Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\ma > kefile"' is not recognized as an internal or external command, > [INFO] operable program or batch file. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.469s > [INFO] Finished at: Wed Apr 25 12:50:11 GMT+05:30 2012 > [INFO] Final Memory: 4M/15M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.codehaus.mojo:exec-maven-plugin:1.1:exec > (bui > ldlib) on project nativeTestProjectMaven: Result of cmd.exe /X /C > ""C:\Program F > iles\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile"" > execution is > : '1'. -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e > swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please > rea > d the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE > xception > C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native> > C:\Program Files\apache-maven-3.0.4\TestProjectMaven\src\main\native> > > > > *My POM.xml looks like this:* > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > > <groupId>com.nds.TestProjectMaven</groupId> > <artifactId>nativeTestProjectMaven</artifactId> > <version>1.0-SNAPSHOT</version> > > > <name>TestProjectMaven</name> > <url>http://maven.apache.org</url> > > <properties> > <native.source.dir>C:\Program > Files\apache-maven-3.0.4\maven-native-example\src\main\native</native.source.dir> > <native.build.dir>../../../target/native</native.build.dir> > </properties> > > > > <build> > <directory>${native.source.dir}</directory> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>exec-maven-plugin</artifactId> > <version>1.1</version> > <executions> > <execution> > > <id>buildlib</id> > <phase>compile</phase> > <goals><goal>exec</goal></goals> > <configuration> > <executable>C:\Program > Files\apache-maven-3.0.4\TestProjectMaven\src\main\native\makefile</executable> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > > </project> > > -- > View this message in context: > http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5664177.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org