You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rahulvd84 <ra...@gmail.com> on 2013/07/08 23:36:26 UTC
Maven deploy goal using ROLE account on Linux/Unix
Hi,I am relatively new to Maven and Linux as well. I was trying to set up a
maven repository for all the dependencies for the java projects we have and
so that the entire can use same version of the dependencies and we will just
have share the pom.xml (on svn). The repository needs to be created on a nfs
mount drive on a Linux box (/Server#1/) at ~/maven/repositoryTo access
/Server#1/ we use our AD user and password and then su to a user *appuser*.
Though this *appuser* does not have a password and it asks for the sudo
password for the AD user and each AD user is added to sudoers file.All our
build processes need to be run using the *appuser*. At the moment we are
trying to deploy the dependencies and the deploy goal asks for password
which scp(ing) to the /Server#1/.Is there a way we can by pass this? We have
already tried creating rsa keys for server and the client machine though of
no use.Here is how I have created the server node in the settings.xml file
<http://maven.40175.n5.nabble.com/file/n5762445/settingsxml.jpg> Please
suggest how can this be done in case we want to continue using same security
modes of having users login to linux machine using the AD user/password and
su to an account with no password.Thanks,Rahul
--
View this message in context: http://maven.40175.n5.nabble.com/Maven-deploy-goal-using-ROLE-account-on-Linux-Unix-tp5762445.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Maven deploy goal using ROLE account on Linux/Unix
Posted by Ron Wheeler <rw...@artifact-software.com>.
We have used it for about 5 years now and it has been no trouble from a
system administration point of view.
Your system administrator doing the install should be warned to read and
follow the instructions carefully.
Ron
On 17/07/2013 9:52 PM, rahulvd84 wrote:
> Thanks Niranjan, Barrie and Ron.
>
> The use of sudo account is needed pretty much due to policies and security
> restrictions. Though today finally my manager showed some willingness to
> try out some repository manager and we will begin with the open source
> edition of nexus. Ron, good to hear that you have used and are happy with
> that version, it is should serve our purpose.
>
>
> On Wed, Jul 17, 2013 at 9:23 PM, Ron Wheeler [via Maven] <
> ml-node+s40175n5763716h75@n5.nabble.com> wrote:
>
>> There has been many discussions about trying to use Maven without a
>> proper Maven repo.
>>
>> Barrie is one of the experienced Maven users and his advice is worth
>> following.
>>
>> We use the community version of Nexus and are very happy but other repos
>> exist and are well regarded.
>>
>> There are a lot of advantages besides the problem you are currently
>> trying to solve.
>>
>> Ron
>>
>> On 17/07/2013 9:15 PM, Barrie Treloar wrote:
>>
>>> The other short answer is:
>>>
>>> Don't share your local m2 cache (~/.m2/repository) between developers.
>>> That is a bad idea because one developers "install" of snapshots will
>>> pollute the cache for everyone and give you something you dont expect.
>>>
>>> Local disk is cheap - dont worry about the waste.
>>>
>>> The correct way is to install a Maven Repository Manager (see
>>> http://maven.apache.org/repository-management.html) which will isolate
>>> your from external repository failures and also reduce your internet
>>> usage.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=0>
>>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=1>
>>>
>>>
>>
>> --
>> Ron Wheeler
>> President
>> Artifact Software Inc
>> email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=2>
>> skype: ronaldmwheeler
>> phone: 866-970-2435, ext 102
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=3>
>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=4>
>>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://maven.40175.n5.nabble.com/Maven-deploy-goal-using-ROLE-account-on-Linux-Unix-tp5762445p5763716.html
>> To unsubscribe from Maven deploy goal using ROLE account on Linux/Unix, click
>> here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5762445&code=cmFodWx2ZDg0QGdtYWlsLmNvbXw1NzYyNDQ1fC0yMTI2NTI3ODM=>
>> .
>> NAML<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven deploy goal using ROLE account on Linux/Unix
Posted by rahulvd84 <ra...@gmail.com>.
Thanks Niranjan, Barrie and Ron.
The use of sudo account is needed pretty much due to policies and security
restrictions. Though today finally my manager showed some willingness to
try out some repository manager and we will begin with the open source
edition of nexus. Ron, good to hear that you have used and are happy with
that version, it is should serve our purpose.
On Wed, Jul 17, 2013 at 9:23 PM, Ron Wheeler [via Maven] <
ml-node+s40175n5763716h75@n5.nabble.com> wrote:
> There has been many discussions about trying to use Maven without a
> proper Maven repo.
>
> Barrie is one of the experienced Maven users and his advice is worth
> following.
>
> We use the community version of Nexus and are very happy but other repos
> exist and are well regarded.
>
> There are a lot of advantages besides the problem you are currently
> trying to solve.
>
> Ron
>
> On 17/07/2013 9:15 PM, Barrie Treloar wrote:
>
> > The other short answer is:
> >
> > Don't share your local m2 cache (~/.m2/repository) between developers.
> > That is a bad idea because one developers "install" of snapshots will
> > pollute the cache for everyone and give you something you dont expect.
> >
> > Local disk is cheap - dont worry about the waste.
> >
> > The correct way is to install a Maven Repository Manager (see
> > http://maven.apache.org/repository-management.html) which will isolate
> > your from external repository failures and also reduce your internet
> > usage.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=0>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=1>
> >
> >
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=2>
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=3>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5763716&i=4>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven.40175.n5.nabble.com/Maven-deploy-goal-using-ROLE-account-on-Linux-Unix-tp5762445p5763716.html
> To unsubscribe from Maven deploy goal using ROLE account on Linux/Unix, click
> here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5762445&code=cmFodWx2ZDg0QGdtYWlsLmNvbXw1NzYyNDQ1fC0yMTI2NTI3ODM=>
> .
> NAML<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
Regards,
Rahul Dixit
+91 98204 41783
*
*
*Save trees, print this mail only if necessary!!!*
--
View this message in context: http://maven.40175.n5.nabble.com/Maven-deploy-goal-using-ROLE-account-on-Linux-Unix-tp5762445p5763717.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Maven deploy goal using ROLE account on Linux/Unix
Posted by Ron Wheeler <rw...@artifact-software.com>.
There has been many discussions about trying to use Maven without a
proper Maven repo.
Barrie is one of the experienced Maven users and his advice is worth
following.
We use the community version of Nexus and are very happy but other repos
exist and are well regarded.
There are a lot of advantages besides the problem you are currently
trying to solve.
Ron
On 17/07/2013 9:15 PM, Barrie Treloar wrote:
> The other short answer is:
>
> Don't share your local m2 cache (~/.m2/repository) between developers.
> That is a bad idea because one developers "install" of snapshots will
> pollute the cache for everyone and give you something you dont expect.
>
> Local disk is cheap - dont worry about the waste.
>
> The correct way is to install a Maven Repository Manager (see
> http://maven.apache.org/repository-management.html) which will isolate
> your from external repository failures and also reduce your internet
> usage.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven deploy goal using ROLE account on Linux/Unix
Posted by Barrie Treloar <ba...@gmail.com>.
The other short answer is:
Don't share your local m2 cache (~/.m2/repository) between developers.
That is a bad idea because one developers "install" of snapshots will
pollute the cache for everyone and give you something you dont expect.
Local disk is cheap - dont worry about the waste.
The correct way is to install a Maven Repository Manager (see
http://maven.apache.org/repository-management.html) which will isolate
your from external repository failures and also reduce your internet
usage.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven deploy goal using ROLE account on Linux/Unix
Posted by Niranjan Rao <nh...@gmail.com>.
A little white space will help you a lot in getting answers. Its very
difficult read one long monologue.
Its not at all clear why it needs to be done this way? Company policy,
Security restrictions etc? Also it looks like everyone is getting sudo
permissions on the server which sounds dangerous.
Have you tried using ssh directly as appuser to see if your keys are
being accepted? scp is essentially built over ssh and if ssh works, then
scp should work in most of the cases.
On 07/08/2013 02:36 PM, rahulvd84 wrote:
> Hi,I am relatively new to Maven and Linux as well. I was trying to set up a
> maven repository for all the dependencies for the java projects we have and
> so that the entire can use same version of the dependencies and we will just
> have share the pom.xml (on svn). The repository needs to be created on a nfs
> mount drive on a Linux box (/Server#1/) at ~/maven/repositoryTo access
> /Server#1/ we use our AD user and password and then su to a user *appuser*.
> Though this *appuser* does not have a password and it asks for the sudo
> password for the AD user and each AD user is added to sudoers file.All our
> build processes need to be run using the *appuser*. At the moment we are
> trying to deploy the dependencies and the deploy goal asks for password
> which scp(ing) to the /Server#1/.Is there a way we can by pass this? We have
> already tried creating rsa keys for server and the client machine though of
> no use.Here is how I have created the server node in the settings.xml file
> <http://maven.40175.n5.nabble.com/file/n5762445/settingsxml.jpg> Please
> suggest how can this be done in case we want to continue using same security
> modes of having users login to linux machine using the AD user/password and
> su to an account with no password.Thanks,Rahul
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Maven-deploy-goal-using-ROLE-account-on-Linux-Unix-tp5762445.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