few days ago while my CRUD generated using the tool appfuse: AppFuse gene of showed me the following strange error:
[INFO] nullAfter searching a few minutes, then found what was wrong. The problem is that Maven have some conflicts when trying to parse the repository location if this location contains whitespace. And this is a well known error and I was touched to see before, but I had forgotten (very common).
Illegal character in path at index 18: file: / ~ / .m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
[INFO] -------------------- -------------------------------------------------- -
[INFO] Trace java.lang.IllegalArgumentException
As for me, that you are using a Windows XP in English, generates Maven default repository " C: / Documents and Settings / \u0026lt;user> / .m2/repository/org/apache/ant/ant / 1.7.0/ant-1.7.0.jar "therefore generate this error in any execution. The steps to correct the error was: Move
- generated Maven repository, which by default is in " C: / Documents and Settings / \u0026lt;user> /. M2 / " one that does not contain spaces as C: \\. m2 "
- Edit Maven configuration file located in \u0026lt;MAVEN_HOME> \\ conf \\ settings.xml . Uncomment and update the local repository aimed at
c: \\. M2 \\ repository and - BUILD SUCCESSFUL
I hope they serve for any execution of Maven with the same problem.
0 comments:
Post a Comment