Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7519085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:50:42+00:00 2026-05-30T01:50:42+00:00

Im starting to use Axis2, never worked with it before. Maven was a dependency

  • 0

I”m starting to use Axis2, never worked with it before.

Maven was a dependency for Axis2 samples to work. I followed the steps correctly and have created the environment variables and restarted windows 7.

When trying to run any of the axis2 samples, I get this error message:

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

I have double checked the environment variables and they are correct. There is a thing that is bugging me. When I run mvn --version on command, it returns me The syntax of the command is incorrect. and this error is related to a POM file that doesn’t exists. All samples from Axis2 have a pom.xml file.

Since it is my first contact with Java, I think it is a easy to solve problem.

Thanks in advance for any help.

EDIT

Running this:
cd /d C:\Apache\axis\samples\java_first_jaxws and then mvn install

Result:
[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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:50:43+00:00Added an answer on May 30, 2026 at 1:50 am
    • Are you using some kind of Cygwin shell or did you copy this from some webpage? The command you pasted is not valid if you use a plain old Command Prompt.
    • Set JAVA_HOME in your environment variables, not on the command line.
    • Add C:\Apache\maven\bin to your PATH environment variable so that you don’t always have to run mvn by specifying the path to it.
    • Set M2_HOME in your environment variables, I guess it should be C:\Apache\maven\bin.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are starting to use a Scrum process for development. We have a nice
I'm starting to use Linux and Vim at work. I'm started reading vims documentation
Just starting to use Ruby on Rails to see what its like. I have
I'm starting to use Dojo; this is (essentially) my introduction to AJAX. We have
I'm starting to use Entity Framework. Let's say I have to Entity from my
I am just starting to use Subversion with Tortoise SVN client for one of
I'm just starting to use Django for a personal project. What are the pros
I'm starting to use ASP.NET Ajax. Following Eric Pascarello's recommendations, I always operate under
I am starting to use the jquery $.ajax() but I can't get back what
I am starting to use some Java code which was written by someone else.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.