How to give a dynamic web app a version number in eclipse

As the title says really. I've deployed a dynamic web app (maven) to Tomcat and there's no version number.

I'd like to give it a version number, how would I go about doing this in eclipse?
SheppardDigitalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
I think you will need to give more information. eg. By version number, where do you expect to see this version number? There is already a version number in the maven pom.xml file, so assume you are not talking about that? More information is needed!!
SheppardDigitalAuthor Commented:
When you view the list of application in Apache Tomcat, there's a column labelled 'version', but it's always 'unspecified'.

Is there a way to populate this column?
mccarlIT Business Systems Analyst / Software DeveloperCommented:
When you view the list of application in Apache Tomcat, there's a column labelled 'version'

Ok, better but I'm still unsure of what you are referring to? The only list of applications that I know of in Tomcat is from it's "manager" app and that doesn't have anything about a version number that I know of.

The easiest way would be if you could provide a screenshot of what you are looking at. Also, what version of Tomcat are you using?
SheppardDigitalAuthor Commented:
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Ok, i haven't looked at the Manager app for a while so I hadn't noticed that that had been added in Tomcat 7. Anyway, after following a bit of a rabbit hole of source code and documentation I landed on this... http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming   It appears that that version number that the Manager app will report is taken from the name of the WAR file that it is deployed as. Since it is a property of the org.apache.catalina.Context object, I wondered whether it may be settable in the META-INF/context.xml file but the docs don't mention it (not that that has to be the actual truth though).

Hopefully the above is enough to go on to answer all your questions!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.