You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Allen, Daniel" <Da...@kbcfp.com> on 2008/03/26 16:31:01 UTC

[m2] manually "deploying"?

Ok, so I know it's sort of an asinine thing to do. However, currently
mvn deploy is returning an HTTP 405 error from our repository, and I
don't really have control over our company repository (new employee
doesn't get permissions for a while), so I can only do a manual copy to
the appropriate point in the remote file system.

So, does deploy do anything besides copy the files (including metadata
from the install phase) and generate a checksum? Can I create checksums
manually? What do I hash, just the JAR file itself?

Thanks for indulging my roundabout way of doing things. I promise it's
corporate circumstance, not me. :p

~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m2] manually "deploying"?

Posted by simon <si...@chello.at>.
Edit the distributionManagement section of the pom, so that the url
element is 
  file:///wherever/your/repository/root/is
instead of whatever protocol it is trying to use which is  blocked.

Run the standard deploy command, then change the pom back (no need to
commit it).

On Wed, 2008-03-26 at 16:27 -0400, Allen, Daniel wrote:
> What do you mean? Change it how?
> 
> -----Original Message-----
> From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
> Sent: Wednesday, March 26, 2008 2:49 PM
> To: Maven Users List
> Subject: RE: [m2] manually "deploying"?
> 
> If you have file or scp access to the repo, why not just change the
> distMgt url in the meantime?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m2] manually "deploying"?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Hrm. I seem to recall there are odd instances where the checksums don't
get created. I can't recall if it was if you use file:// or some other
thing.

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 5:01 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

It does upload the files now, but for some reason a checksum is only
generated for a metadata XML file, and not for the JAR or POM. 

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 4:33 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

Change your pom to use file:/// or scp:///

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 4:27 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

What do you mean? Change it how?

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided "as is", without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


---------------------------------------------------------------------
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: [m2] manually "deploying"?

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
It does upload the files now, but for some reason a checksum is only
generated for a metadata XML file, and not for the JAR or POM. 

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 4:33 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

Change your pom to use file:/// or scp:///

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 4:27 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

What do you mean? Change it how?

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m2] manually "deploying"?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Change your pom to use file:/// or scp:///

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 4:27 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

What do you mean? Change it how?

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided "as is", without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


---------------------------------------------------------------------
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: [m2] manually "deploying"?

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
What do you mean? Change it how?

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m2] manually "deploying"?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 2:42 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

Something is set up wrong with the repository so that it's basically
read-only at present, and any attempt to use "deploy" gives an HTTP 405
error. The people who maintain it are on a different continent, and also
pretty busy, so it can be hard to get hold of them, and when I do I'm
often told to find a workaround in the mean time. Hence my question
here.

Thanks for the info. Assuming we have hash utilities around here (and we
ought to) that should suffice.
~DVA

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 1:43 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

Wouldn't it be easier to have someone else deploy it for you?

Every file that goes into the repository gets a sha1 and md5 hash. That
minimally means the pom and the jar.

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided "as is", without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


---------------------------------------------------------------------
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: [m2] manually "deploying"?

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
Something is set up wrong with the repository so that it's basically
read-only at present, and any attempt to use "deploy" gives an HTTP 405
error. The people who maintain it are on a different continent, and also
pretty busy, so it can be hard to get hold of them, and when I do I'm
often told to find a workaround in the mean time. Hence my question
here.

Thanks for the info. Assuming we have hash utilities around here (and we
ought to) that should suffice.
~DVA

-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu] 
Sent: Wednesday, March 26, 2008 1:43 PM
To: Maven Users List
Subject: RE: [m2] manually "deploying"?

Wouldn't it be easier to have someone else deploy it for you?

Every file that goes into the repository gets a sha1 and md5 hash. That
minimally means the pom and the jar.

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m2] manually "deploying"?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Wouldn't it be easier to have someone else deploy it for you?

Every file that goes into the repository gets a sha1 and md5 hash. That
minimally means the pom and the jar.

-----Original Message-----
From: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Sent: Wednesday, March 26, 2008 11:31 AM
To: Maven Users List
Subject: [m2] manually "deploying"?

Ok, so I know it's sort of an asinine thing to do. However, currently
mvn deploy is returning an HTTP 405 error from our repository, and I
don't really have control over our company repository (new employee
doesn't get permissions for a while), so I can only do a manual copy to
the appropriate point in the remote file system.

So, does deploy do anything besides copy the files (including metadata
from the install phase) and generate a checksum? Can I create checksums
manually? What do I hash, just the JAR file itself?

Thanks for indulging my roundabout way of doing things. I promise it's
corporate circumstance, not me. :p

~Dan Allen

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided "as is", without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


---------------------------------------------------------------------
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