Я начинаю использовать Axis2, никогда не работал с ним раньше.
Maven был зависимостью для работы образцов Axis2. Я правильно выполнил шаги и создал переменные среды и перезапустил Windows 7.
При попытке запустить любой из примеров axis2, я получаю это сообщение об ошибке:
cd C:\Apache\axis\samples\java_first_jaxws; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_02" C:\\Apache\\maven\\bin\\mvn.bat
The syntax of the command is incorrect.
The syntax of the command is incorrect.
ERROR: M2_HOME not found in your environment.
Please set the M2_HOME variable in your environment to match the
location of the Maven installation
Я дважды проверил переменные окружения, и они верны. Есть одна вещь, которая меня беспокоит. Когда я запускаю команду mvn --version
, она возвращает мне The syntax of the command is incorrect.
, и эта ошибка связана с несуществующим POM-файлом. Все сэмплы из Axis2 имеют файл pom.xml.
Посколькуэто мой первый контакт с Java, я думаю, что это легко решить проблему.
Заранее спасибо за любую помощь.
РЕДАКТИРОВАТЬ
Запускэто: cd /d C:\Apache\axis\samples\java_first_jaxws and then mvn install
Результат: [ERROR] Unknown lifecycle phase "pom.xml". You must specify a valid lifecycle ph
ase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-
artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate
, initialize, generate-sources, process-sources, generate-resources, process-res
ources, compile, process-classes, generate-test-sources, process-test-sources, g
enerate-test-resources, process-test-resources, test-compile, process-test-class
es, test, prepare-package, package, pre-integration-test, integration-test, post
-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-si
te, site, post-site, site-deploy. -> [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/LifecyclePhase
NotFoundException