Does anyone has an idea of why Maven is producing such a warning : [DEBUG] Retrieving parent-POM: sapiens:SocleSapiens::2.6.0 for project: null:SapiensCommonsCore:jar:null from the repository. [WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile] [DEBUG] Reason: Failed to validate POM for project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile]
To remind you of the context, I use only a local repository and as far as I know the SapiensCommonsCore POM seems correct to me ... By the way, is there a tool or plugin to validate a POM ? Joël Costigliola -----Message d'origine----- De : Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) [mailto:[EMAIL PROTECTED] Envoyé : vendredi 13 juillet 2007 09:54 À : Maven Users List Objet : RE: Failed to validate POM warning Thanks Steven for the reply. The result of "mvn help:effective-pom" command seems good to me, it has a groupId with a correct value (sapiens), here's the output : ************************************************************************************ Effective POM for project 'sapiens:SapiensCommonsCore:jar:2.6.0' ************************************************************************************ <?xml version="1.0"?><project> <parent> <artifactId>SocleSapiens</artifactId> <groupId>sapiens</groupId> <version>2.6.0</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>sapiens</groupId> <artifactId>SapiensCommonsCore</artifactId> <name>Sapiens Core</name> <version>2.6.0</version> <description>Socle Technique Sapiens</description> <url>http://asa.anpe.fr/asa/index.php?page=documents#sapiens/SapiensCommonsCore</url> <developers> <developer> <id>jojo</id> <name>JoÙl Costigliola</name> <email>[EMAIL PROTECTED]</email> <organization>ANPE/ASA</organization> <roles> <role>Developper</role> </roles> </developer> <developer> <id>yoyo</id> <name>Yoann Charpiot</name> <email>[EMAIL PROTECTED]</email> <organization>ANPE/ASA</organization> <roles> <role>Developper</role> </roles> </developer> </developers> <build> <sourceDirectory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\src\java</sourceDirectory> <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> <testSourceDirectory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\src\test</testSourceDirectory> <outputDirectory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\target\classes</outputDirectory> <testOutputDirectory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\target\test-classes</testOutputDirectory> <resources> <resource> <directory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\src\main\resources</directory> </resource> </resources> <testResources> <testResource> <directory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\src\test\resources</directory> </testResource> </testResources> <directory>D:\bea_dev\SocleSapiens\SapiensCommonsCore\target</directory> <finalName>SapiensCommonsCore-2.6.0</finalName> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> </configuration> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <configuration> <locales>fr</locales> </configuration> </plugin> <plugin> <artifactId>maven-help-plugin</artifactId> <version>2.0.1</version> </plugin> </plugins> </build> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Maven Plugin Repository</name> <url>http://repo1.maven.org/maven2</url> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>1.4.0</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.8</version> </dependency> </dependencies> <reporting> <outputDirectory>target/site</outputDirectory> <plugins> <plugin> <artifactId>maven-changes-plugin</artifactId> <configuration> <xmlPath>D:\bea_dev\SocleSapiens\SapiensCommonsCore/src/site/xdoc/changes.xml</xmlPath> </configuration> <reportSets> <reportSet> <reports> <report>changes-report</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <dependencyManagement> <dependencies> <dependency> <groupId>sapiens</groupId> <artifactId>SapiensCommonsCore</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>sapiens</groupId> <artifactId>AuthentificationService</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>sapiens</groupId> <artifactId>SapiensServices</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>1.4.0</version> </dependency> <dependency> <groupId>weblogic</groupId> <artifactId>weblogic</artifactId> <version>8.1.5</version> <scope>system</scope> <systemPath>D:/bea/weblogic81/server/lib/weblogic.jar</systemPath> </dependency> </dependencies> </dependencyManagement> <distributionManagement> <site> <id>socle.sapiens.site</id> <name>Site Web du Socle Technique Sapiens</name> <url>d:/temp/SapiensCommonsCore</url> </site> </distributionManagement> <properties> <bea.server.home>D:/bea/weblogic81/server</bea.server.home> <sapiens.domain.home>D:/bea_dev/domains/sapiensPortalDomain</sapiens.domain.home> </properties> </project> ************************************************************************************ I have also tried the -X option on ObjetTrouveService project for compile goal "mvn -X compile" Do you think The DEBUG trace before the WARNING is normal ? : null:SapiensCommonsCore:jar:null from the repository [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [DEBUG] sapiens:ObjetTrouveService:jar:2.6.0 (selected for null) [DEBUG] commons-lang:commons-lang:jar:2.1:compile (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] Retrieving parent-POM: sapiens:SocleSapiens::2.6.0 for project: null:SapiensCommonsCore:jar:null from the repository. [WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile] [DEBUG] Reason: Failed to validate POM for project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile] You can check here the complete trace of "mvn -X compile" on ObjetTrouveService project : + Error stacktraces are turned on. Maven version: 2.0.7 Java version: 1.4.2_08 OS name: "windows xp" version: "5.1" arch: "x86" [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\joel.costigliola\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'D:\program files\Apache Software Foundation\Maven\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: sapiens:BASObjetTrouve::2.6.0 of project: sapiens:ObjetTrouveService:jar:null in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: sapiens:ObjetTrouveService:jar:null [DEBUG] Adding managed dependencies for sapiens:ObjetTrouveService [DEBUG] sapiens:SapiensCommonsCore:jar:2.6.0 [DEBUG] commons-net:commons-net:jar:1.4.0 [DEBUG] weblogic:weblogic:jar:8.1.5:system [INFO] ---------------------------------------------------------------------------- [INFO] Building ObjetTrouveService [INFO] task-segment: [compile] [INFO] ---------------------------------------------------------------------------- [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository. [DEBUG] maven-surefire-plugin: resolved to version 2.3 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3 from the repository. [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from repository central [DEBUG] maven-eclipse-plugin: resolved to version 2.3 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::7 for project: org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.3 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-plugin-surrogate-parent::5 for project: org.apache.maven.plugins:maven-plugins:pom:7 from the repos itory. [DEBUG] maven-antrun-plugin: resolved to version 1.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project: null:maven-antrun-plugin:maven-plugin:1.1 from the reposi tory. [DEBUG] Adding managed dependencies for unknown:maven-antrun-plugin [DEBUG] org.apache.maven:maven-project:jar:2.0.1 [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5 [DEBUG] maven-dependency-plugin: resolved to version 2.0-alpha-4 from repository central [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository. [DEBUG] Adding managed dependencies for org.apache.maven:maven-model [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.1 from the repository. [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime) [DEBUG] Adding managed dependencies for unknown:maven-project [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime) [DEBUG] Adding managed dependencies for unknown:maven-profile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] Adding managed dependencies for org.apache.maven:maven-artifact-manager [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime) [DEBUG] Adding managed dependencies for org.apache.maven:maven-repository-metadata [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] Adding managed dependencies for org.apache.maven:maven-artifact [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] Adding managed dependencies for org.apache.maven:maven-plugin-api [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5 [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' --> [DEBUG] (f) filters = [] [DEBUG] (f) outputDirectory = D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target\classes [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) resources = [EMAIL PROTECTED] [DEBUG] -- end configuration -- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [DEBUG] sapiens:ObjetTrouveService:jar:2.6.0 (selected for null) [DEBUG] commons-lang:commons-lang:jar:2.1:compile (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] Retrieving parent-POM: sapiens:SocleSapiens::2.6.0 for project: null:SapiensCommonsCore:jar:null from the repository. [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] [DEBUG] Reason: Failed to validate POM for project sapiens:SapiensCommonsCore at Artifact [sapiens:SapiensCommonsCore:pom:2.6.0:compile] [DEBUG] Validation Errors: [DEBUG] For managed dependency Dependency {groupId=weblogic, artifactId=weblogic, version=8.1.5, type=jar}: system-scoped dependency must specify an abso lute path systemPath. [DEBUG] [DEBUG] sapiens:SapiensCommonsCore:jar:2.6.0:compile (selected for compile) [DEBUG] log4j:log4j:jar:1.2.8:compile (selected for compile) [DEBUG] commons-dbcp:commons-dbcp:jar:1.2.1:runtime (selected for runtime) [DEBUG] commons-collections:commons-collections:jar:2.1:runtime (selected for runtime) [DEBUG] commons-pool:commons-pool:jar:1.2:runtime (selected for runtime) [DEBUG] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [DEBUG] xml-apis:xml-apis:jar:1.0.b2:runtime (selected for runtime) [DEBUG] While downloading xerces:xerces:2.0.2 This artifact has been relocated to xerces:xercesImpl:2.0.2. [DEBUG] xerces:xercesImpl:jar:2.0.2:runtime (selected for runtime) [DEBUG] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [DEBUG] xml-apis:xml-apis:jar:1.0.b2:runtime (selected for runtime) [DEBUG] While downloading xerces:xerces:2.0.2 This artifact has been relocated to xerces:xercesImpl:2.0.2. [DEBUG] xerces:xercesImpl:jar:2.0.2:runtime (selected for runtime) [DEBUG] weblogic:oracle-jdbc-driver:jar:8.1.5:system (selected for system) [DEBUG] aspectj:aspectjweaver:jar:1.5.3:compile (selected for compile) [DEBUG] weblogic:weblogic:jar:8.1.5:system (selected for system) [DEBUG] org.springframework:spring:jar:2.0.6:compile (selected for compile) [DEBUG] commons-logging:commons-logging:jar:1.1:compile (selected for compile) [DEBUG] log4j:log4j:jar:1.2.12:compile (removed - nearer found: 1.2.8) [DEBUG] logkit:logkit:jar:1.0.1:compile (selected for compile) [DEBUG] avalon-framework:avalon-framework:jar:4.1.3:compile (selected for compile) [DEBUG] javax.servlet:servlet-api:jar:2.3:compile (selected for compile) [DEBUG] aspectj:aspectjrt:jar:1.5.3:compile (selected for compile) [DEBUG] Retrieving parent-POM: asm:asm-parent::2.2.3 for project: asm:asm-all:jar:null from the repository. [DEBUG] Adding managed dependencies for asm:asm-all [DEBUG] asm:asm:jar:2.2.3 [DEBUG] asm:asm-tree:jar:2.2.3 [DEBUG] asm:asm-analysis:jar:2.2.3 [DEBUG] asm:asm-commons:jar:2.2.3 [DEBUG] asm:asm-util:jar:2.2.3 [DEBUG] asm:asm-xml:jar:2.2.3 [DEBUG] asm:asm-all:jar:2.2.3:compile (selected for compile) [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.3 for project: null:plexus-compiler-manager:jar:1.5.3 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.6 for project: null:plexus-compiler:pom:1.5.3 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the repository. [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.5.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed - nearer found: 1.0.4) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compilers::1.5.3 for project: null:plexus-compiler-javac:jar:1.5.3 from the repository. [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.5.3:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed - nearer found: 1.0.4) [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' --> [DEBUG] (f) basedir = D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService [DEBUG] (f) buildDirectory = D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target [DEBUG] (f) classpathElements = [D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target\classes, D:\bea\weblogic81\server\lib\weblogic.jar, C:\Docu ments and Settings\joel.costigliola\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar, C:\Documents and Settings\joel.costigliol a\.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\log4j\log4j\1.2.8\log4j-1.2 .8.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\sapiens\SapiensCommonsCore\2.6.0\SapiensCommonsCore-2.6.0.jar, D:\bea\weblogic81\server \ext\jdbc\oracle\10g\ojdbc14_g.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar, C:\Docu ments and Settings\joel.costigliola\.m2\repository\aspectj\aspectjweaver\1.5.3\aspectjweaver-1.5.3.jar, C:\Documents and Settings\joel.costigliola\.m2\re pository\logkit\logkit\1.0.1\logkit-1.0.1.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-f ramework-4.1.3.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\asm\asm-all\2.2.3\asm-all-2.2.3.jar, C:\Documents and Settings\joel.costigl iola\.m2\repository\org\springframework\spring\2.0.6\spring-2.0.6.jar, C:\Documents and Settings\joel.costigliola\.m2\repository\aspectj\aspectjrt\1.5.3\ aspectjrt-1.5.3.jar] [DEBUG] (f) compileSourceRoots = [D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\src\main\java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) failOnError = true [DEBUG] (f) fork = false [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target\classes [DEBUG] (f) outputFileName = ObjetTrouveService-2.6.0 [DEBUG] (f) projectArtifact = sapiens:ObjetTrouveService:jar:2.6.0 [DEBUG] (f) showDeprecation = false [DEBUG] (f) showWarnings = false [DEBUG] (f) source = 1.4 [DEBUG] (f) staleMillis = 0 [DEBUG] (f) target = 1.4 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [INFO] [compiler:compile] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\src\main\java] [DEBUG] Classpath: [D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target\classes D:\bea\weblogic81\server\lib\weblogic.jar C:\Documents and Settings\joel.costigliola\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar C:\Documents and Settings\joel.costigliola\.m2\repository\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar C:\Documents and Settings\joel.costigliola\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar C:\Documents and Settings\joel.costigliola\.m2\repository\sapiens\SapiensCommonsCore\2.6.0\SapiensCommonsCore-2.6.0.jar D:\bea\weblogic81\server\ext\jdbc\oracle\10g\ojdbc14_g.jar C:\Documents and Settings\joel.costigliola\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar C:\Documents and Settings\joel.costigliola\.m2\repository\aspectj\aspectjweaver\1.5.3\aspectjweaver-1.5.3.jar C:\Documents and Settings\joel.costigliola\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar C:\Documents and Settings\joel.costigliola\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar C:\Documents and Settings\joel.costigliola\.m2\repository\asm\asm-all\2.2.3\asm-all-2.2.3.jar C:\Documents and Settings\joel.costigliola\.m2\repository\org\springframework\spring\2.0.6\spring-2.0.6.jar C:\Documents and Settings\joel.costigliola\.m2\repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jar] [DEBUG] Output directory: D:\bea_dev\ApplicationModele\BAS\ObjetTrouveService\target\classes [INFO] Nothing to compile - all classes are up to date [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Fri Jul 13 09:40:30 CEST 2007 [INFO] Final Memory: 6M/11M [INFO] ------------------------------------------------------------------------ Joël Costigliola -----Message d'origine----- De : Steven Rowe [mailto:[EMAIL PROTECTED] Envoyé : jeudi 12 juillet 2007 18:02 À : Maven Users List Objet : Re: Failed to validate POM warning Hi Joël, Have you tried using the -X option to mvn? It might give more details on the problem. I checked your SapiensCommonsCore POM against maven-4.0.0.xsd, and it appears to be valid, but you don't have a groupId there - are you expecting to inherit it from the parent? It might also be useful to run "mvn help:effective-pom" agianst the SapiensCommonsCore POM, to see if its parent POM is introducing something that's causing a problem. Steve Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) wrote: > 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 : > [...] > [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] [...] > 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> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
