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
<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"> <parent> <groupId>OER-Common</groupId> <artifactId>OER-Common</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>OER-Common</groupId> <artifactId>common.artifact</artifactId> <version>0.0.1-SNAPSHOT</version> <name>common.artifact</name> <dependencies> <dependency> <groupId>OER-Common</groupId> <artifactId>common.web</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>OER-Common</groupId> <artifactId>common.util</artifactId> <version>0.0.1-SNAPSHOT</version> <classifier>tests</classifier> <scope>test</scope> </dependency> </dependencies> </project>
<?xml version="1.0" encoding="US-ASCII" ?> <project xmlns="http://maven.apache.org/POM/4.0.0"> <modelVersion>4.0.0</modelVersion> <groupId>common.artifact</groupId> <artifactId>common.artifact</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <sourceDirectory>src/main/java/</sourceDirectory> <outputDirectory>target/</outputDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source> 1.6 </source> <target> 1.6 </target> </configuration> </plugin> </plugins> </build> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org