You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by thiago <tc...@gmail.com> on 2006/08/15 13:58:39 UTC
Maven is lying to me!
Hi,
I'm quite new to maven, and i'm having troubles with an intranet
repository. I have a similar entry in my pom.xml
<distributionManagement>
<repository>
<id>mavenrepo</id>
<name>mavenrepo</name>
<url>file:///server/dev/mavenrepo</url>
</repository>
</distributionManagement>
When I run "mvn deploy", maven log shows that the artifact is installed
locally AND at the configured intranet repository (it even shows the upload
progress). But it's a lie!!! The artifact is not copied to
\\server\dev\mavenrepo !!!! Any clue anyone?
Kind Regards,
Thiago Souza
--
View this message in context: http://www.nabble.com/Maven-is-lying-to-me%21-tf2108802.html#a5812824
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site:deploy execution
Posted by Ciprian Duma <ci...@gmail.com>.
mvn -N site:deploy
On 8/15/06, Sebastien Pennec <se...@qos.ch> wrote:
> Hello,
>
> I've had a problem today with the site:deploy command.
>
> My project had a parent pom, and 4 sub-modules. A distribution management element is
> present in the parent pom, and not in the sub-modules.
> What I wanted to do is execute site:deploy on the parent pom and not have the site
> commande propagated to sub-modules. Is there a way to prevent its execution?
>
> Thanks!
>
> Sébastien
>
> --
> Sébastien Pennec
> sebastien@qos.ch
>
> Logback: The reliable, generic, fast and flexible logging framework for Java.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site:deploy execution
Posted by Sebastien Pennec <se...@qos.ch>.
Actually, nabble connected the mails while I thought it would handle them as two threads.
Sorry bout that...
Sébastien
thiago a écrit :
>
> Sorry, as i'm new to maven, I have no idea...
>
> Why you replied my question with another question? This should be another
> post!
>
>
> Sebastien Pennec wrote:
>> Hello,
>>
>> I've had a problem today with the site:deploy command.
>>
>> My project had a parent pom, and 4 sub-modules. A distribution management
>> element is
>> present in the parent pom, and not in the sub-modules.
>> What I wanted to do is execute site:deploy on the parent pom and not have
>> the site
>> commande propagated to sub-modules. Is there a way to prevent its
>> execution?
>>
>> Thanks!
>>
>> Sébastien
>>
>> --
>> Sébastien Pennec
>> sebastien@qos.ch
>>
>> Logback: The reliable, generic, fast and flexible logging framework for
>> Java.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
--
Sébastien Pennec
sebastien@qos.ch
Logback: The reliable, generic, fast and flexible logging framework for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site:deploy execution
Posted by thiago <tc...@gmail.com>.
Sorry, as i'm new to maven, I have no idea...
Why you replied my question with another question? This should be another
post!
Sebastien Pennec wrote:
>
> Hello,
>
> I've had a problem today with the site:deploy command.
>
> My project had a parent pom, and 4 sub-modules. A distribution management
> element is
> present in the parent pom, and not in the sub-modules.
> What I wanted to do is execute site:deploy on the parent pom and not have
> the site
> commande propagated to sub-modules. Is there a way to prevent its
> execution?
>
> Thanks!
>
> Sébastien
>
> --
> Sébastien Pennec
> sebastien@qos.ch
>
> Logback: The reliable, generic, fast and flexible logging framework for
> Java.
>
> ---------------------------------------------------------------------
> 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/Maven-is-lying-to-me%21-tf2108802.html#a5813014
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site:deploy execution
Posted by Sebastien Pennec <se...@qos.ch>.
Hello Milos,
That's exactly what I wanted... although it's not really where I was looking for it :)
Thanks,
Sébastien
Milos Kleint a écrit :
> Sebastien Pennec wrote:
>> Hello,
>>
>> I've had a problem today with the site:deploy command.
>>
>> My project had a parent pom, and 4 sub-modules. A distribution
>> management element is present in the parent pom, and not in the
>> sub-modules.
>> What I wanted to do is execute site:deploy on the parent pom and not
>> have the site commande propagated to sub-modules. Is there a way to
>> prevent its execution?
>>
>> Thanks!
>>
>> Sébastien
>>
> check the command line options, one of them is to force maven not to
> process the project's modules during the build. I think it's -N but not
> completely sure.
>
> Milos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Sébastien Pennec
sebastien@qos.ch
Logback: The reliable, generic, fast and flexible logging framework for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Site:deploy execution
Posted by Milos Kleint <Mi...@Sun.COM>.
Sebastien Pennec wrote:
> Hello,
>
> I've had a problem today with the site:deploy command.
>
> My project had a parent pom, and 4 sub-modules. A distribution
> management element is present in the parent pom, and not in the
> sub-modules.
> What I wanted to do is execute site:deploy on the parent pom and not
> have the site commande propagated to sub-modules. Is there a way to
> prevent its execution?
>
> Thanks!
>
> Sébastien
>
check the command line options, one of them is to force maven not to
process the project's modules during the build. I think it's -N but not
completely sure.
Milos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Site:deploy execution
Posted by Sebastien Pennec <se...@qos.ch>.
Hello,
I've had a problem today with the site:deploy command.
My project had a parent pom, and 4 sub-modules. A distribution management element is
present in the parent pom, and not in the sub-modules.
What I wanted to do is execute site:deploy on the parent pom and not have the site
commande propagated to sub-modules. Is there a way to prevent its execution?
Thanks!
Sébastien
--
Sébastien Pennec
sebastien@qos.ch
Logback: The reliable, generic, fast and flexible logging framework for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven is lying to me!
Posted by thiago <tc...@gmail.com>.
Thanks!!!!
Jörg Schaible wrote:
>
> thiago wrote on Tuesday, August 15, 2006 2:27 PM:
>
>> Milos Kleint-2 wrote:
>>>
>>>
>>> maybe it's not interpreting the location correctly and instead
>>> deploys to a local disk? try searching for the server/dev/mavenrepo
>>> on your local disk. No idea how to setup this url configuration. On
>>> linux the same url would definitely deploy to a local directory at
>>> /server/dev/mavenrepo
>>>
>>
>> Hi,
>>
>> Yeh, you're right, I checked my c:\ and I noticed the directory
>> created there =)
>>
>> Ok, so how do I achieve this? How do I map a repository to a
>> network share?
>
> Use a proper URL!
>
> file:// defines the file protocol
> file://localhost/ is the root adress on your local system
> file:/// is the short form of file://localhost/
> file://///server/share/ addresses the "share" of "server" in a Windows
> network, which is a convenient form of file://localhost/\\server\share\,
> since the path from your local system to the server's share is
> \\server\share
>
> Got it? Any other mixture is a concession to user's habbits and may or may
> not be supported by the URL parser of your product/app/browser.
>
> - Jörg
>
> ---------------------------------------------------------------------
> 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/Maven-is-lying-to-me%21-tf2108802.html#a5813804
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven is lying to me!
Posted by a crawford <ar...@gmail.com>.
I was lied to also :-) The following worked for me on windows though.
<url>file:///\\server\maven\repos\snapshot</url>
Regards,
Arthur.
thiago wrote:
>
>
> Milos Kleint-2 wrote:
>>
>>
>> maybe it's not interpreting the location correctly and instead deploys
>> to a local disk? try searching for the server/dev/mavenrepo on your
>> local disk.
>> No idea how to setup this url configuration. On linux the same url would
>> definitely deploy to a local directory at /server/dev/mavenrepo
>>
>
> Hi,
>
> Yeh, you're right, I checked my c:\ and I noticed the directory
> created there =)
>
> Ok, so how do I achieve this? How do I map a repository to a network
> share?
>
> Regards,
> Thiago Souza
>
>
--
View this message in context: http://www.nabble.com/Maven-is-lying-to-me%21-tf2108802.html#a5813558
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven is lying to me!
Posted by thiago <tc...@gmail.com>.
Milos Kleint-2 wrote:
>
>
> maybe it's not interpreting the location correctly and instead deploys
> to a local disk? try searching for the server/dev/mavenrepo on your
> local disk.
> No idea how to setup this url configuration. On linux the same url would
> definitely deploy to a local directory at /server/dev/mavenrepo
>
Hi,
Yeh, you're right, I checked my c:\ and I noticed the directory created
there =)
Ok, so how do I achieve this? How do I map a repository to a network
share?
Regards,
Thiago Souza
--
View this message in context: http://www.nabble.com/Maven-is-lying-to-me%21-tf2108802.html#a5813159
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven is lying to me!
Posted by Milos Kleint <Mi...@Sun.COM>.
thiago wrote:
> Hi,
>
> I'm quite new to maven, and i'm having troubles with an intranet
> repository. I have a similar entry in my pom.xml
>
> <distributionManagement>
> <repository>
> <id>mavenrepo</id>
> <name>mavenrepo</name>
> <url>file:///server/dev/mavenrepo</url>
> </repository>
> </distributionManagement>
>
> When I run "mvn deploy", maven log shows that the artifact is installed
> locally AND at the configured intranet repository (it even shows the upload
> progress). But it's a lie!!! The artifact is not copied to
> \\server\dev\mavenrepo !!!! Any clue anyone?
>
> Kind Regards,
> Thiago Souza
>
>
maybe it's not interpreting the location correctly and instead deploys
to a local disk? try searching for the server/dev/mavenrepo on your
local disk.
No idea how to setup this url configuration. On linux the same url would
definitely deploy to a local directory at /server/dev/mavenrepo
Milos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org