You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Meyer <mi...@netcetera.ch> on 2007/07/17 08:56:20 UTC
[WARNING] Unable to load parent project from repository: Could not
find the model file....
Hi
four our company I want to set up a parent pom that defines default
versions for plugins (pluginManagement), repository locations and so on.
The idea is that I make new releases of this project ever so often.
Other people should be able to use this pom in their project by
including the following in their top level pom:
<parent>
<groupId>com.company</groupId>
<artifactId>root-pom</artifactId>
<version>7</version>
</parent>
When I try to put this all together I get the following warning in a
project that references my root-pom module:
[INFO] [site:attach-descriptor]
[WARNING] Unable to load parent project from repository: Could not find
the model file 'D:\checkout\some-app\..\pom.xml'. for project unknown
I read about the relativePath tag but I don't want the people to
actually checkout the root-pom.
Am I using the parent tag for the wrong thing or have I misconfigured
something?
Cheers, michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [WARNING] Unable to load parent project from repository: Could
not find the model file....
Posted by Michael Meyer <mi...@netcetera.ch>.
Hi Ivo
thanks for your answer. I was just going to file a bug report when I
read the changelog [1] of the AbstractSiteMojo. And guess what... The
latest entry says: "Fix confusing logs. Often, it's not a problem if the
parent pom isn't found with a relative path but in the repository."
So, I guess my problem was solved by replacing 'getLog().warn(...)' with
'getLog().info(...)' :-)
Cheers, michael
[1]
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java?view=log
Ivo Limmen wrote:
> I ran into the same issue. It seems that Maven works using this setup
> but it
> will keep complaining that it can not find the pom file itself. From the
> documentation I understood that Maven first looks in the parent directory
> for the pom file. If it can not be found it looks in the local repository.
> And if that fails it will search the remote repository for the pom file.
> The
> warning is only a warning... it does work.
>
> Ivo
>
> On 7/17/07, Michael Meyer <mi...@netcetera.ch> wrote:
>>
>> Hi
>> four our company I want to set up a parent pom that defines default
>> versions for plugins (pluginManagement), repository locations and so on.
>>
>> The idea is that I make new releases of this project ever so often.
>> Other people should be able to use this pom in their project by
>> including the following in their top level pom:
>>
>> <parent>
>> <groupId>com.company</groupId>
>> <artifactId>root-pom</artifactId>
>> <version>7</version>
>> </parent>
>>
>>
>> When I try to put this all together I get the following warning in a
>> project that references my root-pom module:
>>
>> [INFO] [site:attach-descriptor]
>> [WARNING] Unable to load parent project from repository: Could not find
>> the model file 'D:\checkout\some-app\..\pom.xml'. for project unknown
>>
>> I read about the relativePath tag but I don't want the people to
>> actually checkout the root-pom.
>>
>> Am I using the parent tag for the wrong thing or have I misconfigured
>> something?
>>
>> Cheers, michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
--
Michael Meyer | michael.meyer@netcetera.ch
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [WARNING] Unable to load parent project from repository: Could not find the model file....
Posted by Ivo Limmen <iv...@gmail.com>.
I ran into the same issue. It seems that Maven works using this setup but it
will keep complaining that it can not find the pom file itself. From the
documentation I understood that Maven first looks in the parent directory
for the pom file. If it can not be found it looks in the local repository.
And if that fails it will search the remote repository for the pom file. The
warning is only a warning... it does work.
Ivo
On 7/17/07, Michael Meyer <mi...@netcetera.ch> wrote:
>
> Hi
> four our company I want to set up a parent pom that defines default
> versions for plugins (pluginManagement), repository locations and so on.
>
> The idea is that I make new releases of this project ever so often.
> Other people should be able to use this pom in their project by
> including the following in their top level pom:
>
> <parent>
> <groupId>com.company</groupId>
> <artifactId>root-pom</artifactId>
> <version>7</version>
> </parent>
>
>
> When I try to put this all together I get the following warning in a
> project that references my root-pom module:
>
> [INFO] [site:attach-descriptor]
> [WARNING] Unable to load parent project from repository: Could not find
> the model file 'D:\checkout\some-app\..\pom.xml'. for project unknown
>
> I read about the relativePath tag but I don't want the people to
> actually checkout the root-pom.
>
> Am I using the parent tag for the wrong thing or have I misconfigured
> something?
>
> Cheers, michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>