POM
17 May 2008Maven uses an XML project descriptor to generate the object model for project. This file is POM.XML and should be located at the top level directory of the project.
The XML file contains all the needed information for the project. Apart from core information, it also contains groupid, version, name and all the libraries needed for the project.
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency>
You may create profiles in POM file as shown below:
<profiles> <profile> <id>student</id> <properties> <buildkind>work</buildkind> </properties> </profile> <profile> <id>solutions</id> <properties> <buildkind>solutions</buildkind> </properties> </profile> </profiles>
Related Posts:
- No related posts
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: POM