Project and namespace Depending on the pom generator, you have no idea, whether the xmlns:xsi and xsi:schemaLocation are present or not.
Jochen 2010/1/8 amaresh mourya <amaresh.mou...@gmail.com>: > Hi all, > I am need of writing a check method to filter POMs from a list of xml files. > What should be the exact check? > Only the <project> tag along with Namespace is sufficient or I need to check > for all three xmlns, xmlns :xsi and xsi:schemaLocation? > > <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/xsd/maven-4.0.0.xsd"> > > > > Another related question is : Consider a case of multi-module application > pom, where in each module's directory there are more than one xml files, So > is it possible that for this module there can be two POMs ? or only one.? > > There are two xml files attached, that have the same artifactId > "common-artifact", what check would return me correct POM for this artifact. > 1. bak_pom.xml > 2. pom.xml > > Thanks > --amaresh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Germanys national anthem is the most boring in the world - how telling! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org