I use maven to build my project, and i tried to modify an existing pom.xml to compile my project, seems like it's not really compiling as it detects that no sources to compile. As a basic start of learning pom.xml, where can i start from?

8 Years
Discussion Span
Last Post by stephen84s

I have another question .refer to http://www.daniweb.com/forums/post807486.html#post807486



and your question there is: how to set settings in the pom.xml


you might want to clearify a bit. what is it you try to put in the pom.xml?

which pom.xml are we talking about, the one that oversees the entire project, or just a module?

and for your .jar/.war issue: I take it you're developing a web-application: a .jar file is a library of classes you use, that you import in your project, the .war file is being build by maven, you don't have to 'choose' between them, logic (and maven) will do that for you


Hi and thanks for the reply. Im talking about the pom.xml which oversees the whole project, and currently only jar file is generated for the project as the pom.xml is auto generated based on the example. How to modify the pom.xml such that war is generated as well? This is my current pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">



Hijacking his own thread, this has to be the first of its kind. Anyway I have posted links to tutorials /articles on how to generate WAR files using maven in your "other" thread.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.