You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2007/08/15 17:36:43 UTC

Remote respository

How can I make my own remote respository that my team can use? 
I mean so that when I add a dependeny to my application the jar files are
downloaded from a remote server
-- 
View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12164430
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: Remote respository

Posted by Steven Rowe <sa...@syr.edu>.
Hi Mathias,

In Maven parlance, what you want is called an "Internal Repository".
See the Maven "intro to repos" for some discussion:

http://maven.apache.org/guides/introduction/introduction-to-repositories.html

Steve

Mathias P.W Nilsson wrote:
> I think I better explain this a little better :wistle:
> 
> When I have created my project with maven and I want some other programmers
> to be able to use my project as a dependency, how can I accomplish this?
> 
> Local harddrive doesn't work. I probably need a server of some sort that is
> exposed to the internet. but I don't know how this can be done.
> 
> // Mathias


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


RE: Remote respository

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
Thank you all!

But if maven should upload to respository I need login because the jars is
just for internal projects not for external. And I need to reach the remote
respository from home.


-- 
View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12183034
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: Remote respository

Posted by "Cort, Tom" <To...@state.vt.us>.
You can define a repository in the distributionManagement part of pom.xml.
When you want to upload the jar file to the repository, just run "mvn
deploy". In the example below, maven will upload the artifacts with scp
(secure copy) to /var/www/maven on gateway-demo.osuosl.org.

<project>
[...]
  <distributionManagement>
    <repository>
      <id>repository</id>
      <name>Repository</name>
      <url>scp://gateway-demo.osuosl.org/var/www/maven/</url>
    </repository>
  </distributionManagement>
[...]
</project>

To tell maven to use the repository when it looks for dependencies, add a
repository entry to pom.xml

<project>
[...]
  <repositories>
    <repository>
      <id>vt-repo</id>
      <name>Vermont Repository</name>
      <url>http://gateway-demo.osuosl.org/maven</url>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
  </repositories>
[...]
</project>

--
Tom Cort
Systems Developer
Vermont Department of Taxes

Re: Remote respository

Posted by Wayne Fay <wa...@gmail.com>.
Most people set up what is called a Corporate Repository, which is
then shared by all Maven-using dev teams in the organization.

Among your options for implementing something like this as Proximity,
Artifactory, Archiva etc (there are more, search this list).

Wayne

On 8/15/07, Mathias P.W Nilsson <ma...@snyltarna.se> wrote:
>
> I think I better explain this a little better :wistle:
>
> When I have created my project with maven and I want some other programmers
> to be able to use my project as a dependency, how can I accomplish this?
>
> Local harddrive doesn't work. I probably need a server of some sort that is
> exposed to the internet. but I don't know how this can be done.
>
> // Mathias
> --
> View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12164966
> 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
>
>

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


Re: Remote respository

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
I think I better explain this a little better :wistle:

When I have created my project with maven and I want some other programmers
to be able to use my project as a dependency, how can I accomplish this?

Local harddrive doesn't work. I probably need a server of some sort that is
exposed to the internet. but I don't know how this can be done.

// Mathias
-- 
View this message in context: http://www.nabble.com/Remote-respository-tf4273892s177.html#a12164966
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