I have maven project and ant task for it.
In ant task i want to get version property from pom.xml.
How to get it?
In pom.xml: <version>2.03.010</version>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The Maven Ant tasks provide some goals for POM processing
To access the version from a POM, you can use the following:
Update: To use the tasks. You will need to install them. Install instructions
You can either:
With option 2. you modify your project as follows to make ant aware of the maven-ant-tasks schema:
With option 3. You specify the typedef as follows (assuming the maven-ant-tasks jar is in the lib directory of your project):