Hi, One of my project (ObjetTrouveService) depends on another project of mine (SapiensCommonsCore).
When building ObjetTrouveService I have a warning telling me that SapiensCommonsCore pom is not valid. Here's the trace : [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building ObjetTrouveService [INFO] task-segment: [compile] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM f or project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Thu Jul 12 10:28:49 CEST 2007 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ Here's ObjetTrouveService 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"> <modelVersion>4.0.0</modelVersion> <groupId>sapiens</groupId> <artifactId>ObjetTrouveService</artifactId> <packaging>jar</packaging> <version>2.6.0-SNAPSHOT</version> <name>ObjetTrouveService</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>sapiens</groupId> <artifactId>SapiensCommonsCore</artifactId> <type>jar</type> <version>2.6.0</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.0.6</version> <type>jar</type> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-all</artifactId> <version>2.2.3</version> <type>jar</type> </dependency> <dependency> <groupId>aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.5.3</version> <type>jar</type> </dependency> <dependency> <groupId>aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.5.3</version> <type>jar</type> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.8</version> <type>jar</type> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> <type>jar</type> </dependency> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.2.1</version> <type>jar</type> <scope>runtime</scope> </dependency> <!-- pour les transactions s'appuyant sur Weblogic --> <dependency> <groupId>weblogic</groupId> <artifactId>weblogic</artifactId> <type>jar</type> <version>8.1.5</version> <scope>system</scope> <systemPath>${bea.server.home}/lib/weblogic.jar</systemPath> </dependency> <dependency> <groupId>weblogic</groupId> <artifactId>oracle-jdbc-driver</artifactId> <version>8.1.5</version> <type>jar</type> <scope>system</scope> <systemPath>${bea.server.home}/ext/jdbc/oracle/10g/ojdbc14_g.jar</systemPath> </dependency> <!-- test dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <additionalProjectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalBuildcommands> </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>copy-project-artifact-to-bav-objtrouve</id> <phase>package</phase> <configuration> <tasks> <copy file="${project.build.directory}/${project.build.finalName}.jar" todir="../../../SAPIENS/APP-INF/lib/." overwrite="true" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <!-- Seulement utile pour copier dans le projet workshop les dépendances du BAS ObjetTrouveService. Lorsque la rupture de protocole sera faite, cette copie sera inutile. --> <execution> <id>copy-dependencies-to-bav-objtrouve</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>../../../SAPIENS/APP-INF/lib/.</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> <excludeGroupIds>weblogic,junit,commons-dbcp</excludeGroupIds> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> And here's SapiensCommonsCore-2.6.0.pom as found in local repository : <project> <parent> <groupId>sapiens</groupId> <artifactId>SocleSapiens</artifactId> <version>2.6.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>SapiensCommonsCore</artifactId> <packaging>jar</packaging> <name>Sapiens Core</name> <dependencies> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> </dependency> </dependencies> <build> <sourceDirectory>src/java</sourceDirectory> <testSourceDirectory>src/test</testSourceDirectory> </build> </project> I have searched on the web and haven't found a reason for such a warning. Can somebody explain me the reason of warning ? Thanks in advance, Regards, Joël Costigliola --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]