pom.xml

Is it possible to use a file other than one named "pom.xml" for maven 2?

I googled around a bit and couldn't find any way to do it, but was wondering if I could have a project with multiple poms for various situations, then tell maven to use 'this' one or 'that' one. The underlying issue is we have a project that needs to be built "for production" in one manner, and "for development" in another due to vagari...

Additional context for tomcat:run goal

How do I add an additional directory based context to a tomcat:run configuration? I have the following jetty plugin configuration: <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <contextHandlers> <contextHandler implem...

How to execute a jar from pom.xml

I want to create a build info file into the specific location of the project's target folder (especially in target/abc_project/META-INF folder) through maven-2. Following is what I am doing in the pom.xml <build> <finalName>abc_project</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId...

Programmatically generating pom.xml

Hi all, I am creating a new maven project from an eclipse plugin. As it seems to me a bad idea to hardcode pom.xml to my plugin. Is there any way to generate this programmatically such that the plugin will be more maintainable ? Also creating the maven project structure from the plugin on my own seems to be a bad idea too ! Is there an...