Sunday, July 11, 2010

Army Ets Dity Move Help

Illegal character in path at index 18: file: ~ / .m2/repository/org/apache/ant/ant/1.7.0/ant SAXNotRecognizedException

few days ago while my CRUD generated using the tool appfuse: AppFuse gene of showed me the following strange error:
[INFO] null
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
After 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).
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
  1. generated Maven repository, which by default is in " C: / Documents and Settings / \u0026lt;user> /. M2 / " one that does not contain spaces as C: \\. m2 "
  2. Edit Maven configuration file located in \u0026lt;MAVEN_HOME> \\ conf \\ settings.xml . Uncomment and update the local repository aimed at

    c: \\. M2 \\ repository
  3. and
  4. BUILD SUCCESSFUL

I hope they serve for any execution of Maven with the same problem.

0 comments:

Post a Comment