You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "daniel.green" <oc...@gmail.com> on 2009/06/27 02:23:43 UTC
Failed to validate an ostensibly valid pom
dgreen@dgreen-desktop:~/redacted_renovation/workspace/dto$ mvn compileb
....
[WARNING] POM for 'com.redacted:utility:pom:1.0:compile' is invalid. It will
be ignored for artifact resolution. Reason: Failed to validate POM for
project com.redacted:utility at Artifact
[com.redacted:utility:pom:1.0:compile]
Downloading:
http://10.1.102.139:8081/artifactory/repo/org/apache/maven/doxia/doxia-converter/1.1-SNAPSHOT/doxia-converter-1.1-SNAPSHOT.pom
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Jun 26 19:52:22 EDT 2009
[INFO] Final Memory: 8M/16M
[INFO] -----------------------------------
Notice the warning regarding com.redacted:utility:pom:1.0. However I can
compile com.redacted:utility without any complaints. I can also do a compile
of the parent pom.
dto/pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<parent>
<groupId>com.redacted</groupId>
<artifactId>maven</artifactId>
<version>1.0</version>
<relativePath>../maven/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dto</artifactId>
<name>${artifactId}</name>
<url>../../${artifactId}/target/site</url>
<version>1.0</version>
<description>DTO</description>
<dependencies>
<dependency>
<groupId>com.redacted</groupId>
<artifactId>utility</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>
And the one of utility/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project>
<parent>
<groupId>com.redacted</groupId>
<artifactId>maven</artifactId>
<version>1.0</version>
<relativePath>../maven/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>utility</artifactId>
<name>${artifactId}</name>
<url>../../${artifactId}/target/site</url>
<version>1.0</version>
<description>Utility</description>
</project>
--
View this message in context: http://www.nabble.com/Failed-to-validate-an-ostensibly-valid-pom-tp24229127p24229127.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Failed to validate an ostensibly valid pom
Posted by "daniel.green" <oc...@gmail.com>.
Thank you for the tip! I discovered there was an issue with the parent pom.
Someone had created a profile that had a system scope dependency with an
associated systemPath on it.
John Casey-5 wrote:
>
> If you run with -X, it may give you more information about why it's
> invalid.
>
John Casey-5 wrote:
>
> If you run with -X, it may give you more information about why it's
> invalid.
>
> Just a thought.
>
> -john
>
> daniel.green wrote:
>> dgreen@dgreen-desktop:~/redacted_renovation/workspace/dto$ mvn compileb
>> ....
>> [WARNING] POM for 'com.redacted:utility:pom:1.0:compile' is invalid. It
>> will
>> be ignored for artifact resolution. Reason: Failed to validate POM for
>> project com.redacted:utility at Artifact
>> [com.redacted:utility:pom:1.0:compile]
>> Downloading:
>> http://10.1.102.139:8081/artifactory/repo/org/apache/maven/doxia/doxia-converter/1.1-SNAPSHOT/doxia-converter-1.1-SNAPSHOT.pom
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Fri Jun 26 19:52:22 EDT 2009
>> [INFO] Final Memory: 8M/16M
>> [INFO] -----------------------------------
>>
>> Notice the warning regarding com.redacted:utility:pom:1.0. However I can
>> compile com.redacted:utility without any complaints. I can also do a
>> compile
>> of the parent pom.
>>
>> dto/pom.xml:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project>
>> <parent>
>> <groupId>com.redacted</groupId>
>> <artifactId>maven</artifactId>
>> <version>1.0</version>
>> <relativePath>../maven/pom.xml</relativePath>
>> </parent>
>>
>> <modelVersion>4.0.0</modelVersion>
>> <artifactId>dto</artifactId>
>> <name>${artifactId}</name>
>> <url>../../${artifactId}/target/site</url>
>> <version>1.0</version>
>> <description>DTO</description>
>>
>> <dependencies>
>> <dependency>
>> <groupId>com.redacted</groupId>
>> <artifactId>utility</artifactId>
>> <version>1.0</version>
>> </dependency>
>> </dependencies>
>> </project>
>>
>> And the one of utility/pom.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project>
>> <parent>
>> <groupId>com.redacted</groupId>
>> <artifactId>maven</artifactId>
>> <version>1.0</version>
>> <relativePath>../maven/pom.xml</relativePath>
>> </parent>
>>
>> <modelVersion>4.0.0</modelVersion>
>> <artifactId>utility</artifactId>
>> <name>${artifactId}</name>
>> <url>../../${artifactId}/target/site</url>
>> <version>1.0</version>
>> <description>Utility</description>
>> </project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Failed-to-validate-an-ostensibly-valid-pom-tp24229127p24488848.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Failed to validate an ostensibly valid pom
Posted by John Casey <jd...@commonjava.org>.
If you run with -X, it may give you more information about why it's invalid.
Just a thought.
-john
daniel.green wrote:
> dgreen@dgreen-desktop:~/redacted_renovation/workspace/dto$ mvn compileb
> ....
> [WARNING] POM for 'com.redacted:utility:pom:1.0:compile' is invalid. It will
> be ignored for artifact resolution. Reason: Failed to validate POM for
> project com.redacted:utility at Artifact
> [com.redacted:utility:pom:1.0:compile]
> Downloading:
> http://10.1.102.139:8081/artifactory/repo/org/apache/maven/doxia/doxia-converter/1.1-SNAPSHOT/doxia-converter-1.1-SNAPSHOT.pom
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Fri Jun 26 19:52:22 EDT 2009
> [INFO] Final Memory: 8M/16M
> [INFO] -----------------------------------
>
> Notice the warning regarding com.redacted:utility:pom:1.0. However I can
> compile com.redacted:utility without any complaints. I can also do a compile
> of the parent pom.
>
> dto/pom.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
> <parent>
> <groupId>com.redacted</groupId>
> <artifactId>maven</artifactId>
> <version>1.0</version>
> <relativePath>../maven/pom.xml</relativePath>
> </parent>
>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>dto</artifactId>
> <name>${artifactId}</name>
> <url>../../${artifactId}/target/site</url>
> <version>1.0</version>
> <description>DTO</description>
>
> <dependencies>
> <dependency>
> <groupId>com.redacted</groupId>
> <artifactId>utility</artifactId>
> <version>1.0</version>
> </dependency>
> </dependencies>
> </project>
>
> And the one of utility/pom.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
> <parent>
> <groupId>com.redacted</groupId>
> <artifactId>maven</artifactId>
> <version>1.0</version>
> <relativePath>../maven/pom.xml</relativePath>
> </parent>
>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>utility</artifactId>
> <name>${artifactId}</name>
> <url>../../${artifactId}/target/site</url>
> <version>1.0</version>
> <description>Utility</description>
> </project>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org