You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mike <mi...@seafieldgetaway.com> on 2006/05/21 19:09:34 UTC

Re: Structure of an Internal Repository - POM extension

Ben, thanks for responding.  Your answer helps, but doesn't address my 
real problem. 

Here's what I did....put my repository in public_html on my local box.  
(Apache automatically exposes the contents of public_html.)  I added a 
repository tag in pom.xml that  points at the repository in 
public_html.  When I ran Maven it found the repository, but complained 
that it could not find a file with an extension of "pom". 

So, Maven can find the repository, but it is not finding what it needs.

Mike

ben short wrote:

> Hi Mike,
>
> Im trying todo the same thing as you are.. this is what i have got...
>
> I added the follwoing to my pom.xml
>
> <distributionManagement>
>    <repository>
>    <id>scp-repository</id>
>    <url>scp://192.168.100.20/home/ben</url>
>    </repository>
> </distributionManagement>
>
> And this to my settings.xml
>
> <server>
> <id>scp-repository</id>
> <username>ben</username>
> <password>123456</password>
> </server>
>
> This uses scp which copys files via ssh and uses the same auth details
> as the sshd. I chose scp over ftp as i didnt want to install a ftp
> server on the repository box.
>
> When you run the mvn deploy goal the packaged artifact will be copied
> onto the server, in my case under the /home/ben directory.
>
> I guess what i need todo now is add a http server to the box and make
> it list the files under the /home/ben directory.
>
> Hope this helps.
>
> Ben
>
>
> On 5/20/06, Mike Markovich <mi...@comcast.net> wrote:
>
>> BTW, I'm using Maven 2.0.4.
>>
>> Mike wrote:
>>
>> > Hi All, I'm new to Maven and I'm trying setup an internal repository.
>> > I've done a lot of searching but there doesn't seem to be a lot of
>> > information on how to set up an internol repository.   I'd appreciate
>> > it if someone could outline the steps or point me to a link.
>> >
>> > Thanks,
>> > Mike
>> >
>> > ---------------------------------------------------------------------
>> > 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
>>
>>
>
> ---------------------------------------------------------------------
> 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: Structure of an Internal Repository - POM extension

Posted by ben short <ja...@gmail.com>.
Mike,

I have added the following to my settings.xml

<profile>
     <id>internal</id>
     <repositories>
       <repository>
         <id>internal-release</id>
         <name>Internal Release</name>
     <url>http://192.168.100.20/maven2/release</url>
       </repository>
     </repositories>
   </profile>

<activeProfiles>
    <activeProfile>internal</activeProfile>
  </activeProfiles>

Also I added

text/xml   pom
test/plain md5 sha1

to /etc/mime.types

Ben



On 5/21/06, ben short <ja...@gmail.com> wrote:
>
> Mike,
>
> I think Its todo with content types.
>
> This link should help
>
>
> http://www.nabble.com/Relative+to+content-type%2C+Is+their+convention+for+the+file+in+the+repository--t1640083.html#a4442372
>
> When you have gotten it working maybe you could tell me what you did, hehe
> :)
>
> Ben
>
>
> On 5/21/06, Mike <mi...@seafieldgetaway.com> wrote:
> >
> > Ben, thanks for responding.  Your answer helps, but doesn't address my
> > real problem.
> >
> > Here's what I did....put my repository in public_html on my local box.
> > (Apache automatically exposes the contents of public_html.)  I added a
> > repository tag in pom.xml that  points at the repository in
> > public_html.  When I ran Maven it found the repository, but complained
> > that it could not find a file with an extension of "pom".
> >
> > So, Maven can find the repository, but it is not finding what it needs.
> >
> > Mike
> >
> > ben short wrote:
> >
> > > Hi Mike,
> > >
> > > Im trying todo the same thing as you are.. this is what i have got...
> > >
> > > I added the follwoing to my pom.xml
> > >
> > > <distributionManagement>
> > >    <repository>
> > >    <id>scp-repository</id>
> > >    <url>scp://192.168.100.20/home/ben</url>
> > >    </repository>
> > > </distributionManagement>
> > >
> > > And this to my settings.xml
> > >
> > > <server>
> > > <id>scp-repository</id>
> > > <username>ben</username>
> > > <password>123456</password>
> > > </server>
> > >
> > > This uses scp which copys files via ssh and uses the same auth details
> > > as the sshd. I chose scp over ftp as i didnt want to install a ftp
> > > server on the repository box.
> > >
> > > When you run the mvn deploy goal the packaged artifact will be copied
> > > onto the server, in my case under the /home/ben directory.
> > >
> > > I guess what i need todo now is add a http server to the box and make
> > > it list the files under the /home/ben directory.
> > >
> > > Hope this helps.
> > >
> > > Ben
> > >
> > >
> > > On 5/20/06, Mike Markovich <mi...@comcast.net> wrote:
> > >
> > >> BTW, I'm using Maven 2.0.4.
> > >>
> > >> Mike wrote:
> > >>
> > >> > Hi All, I'm new to Maven and I'm trying setup an internal
> > repository.
> > >> > I've done a lot of searching but there doesn't seem to be a lot of
> > >> > information on how to set up an internol repository.   I'd
> > appreciate
> > >> > it if someone could outline the steps or point me to a link.
> > >> >
> > >> > Thanks,
> > >> > Mike
> > >> >
> > >> >
> > ---------------------------------------------------------------------
> > >> > 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
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > 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: Structure of an Internal Repository - POM extension

Posted by ben short <ja...@gmail.com>.
Mike,

I think Its todo with content types.

This link should help

http://www.nabble.com/Relative+to+content-type%2C+Is+their+convention+for+the+file+in+the+repository--t1640083.html#a4442372

When you have gotten it working maybe you could tell me what you did, hehe
:)

Ben

On 5/21/06, Mike <mi...@seafieldgetaway.com> wrote:
>
> Ben, thanks for responding.  Your answer helps, but doesn't address my
> real problem.
>
> Here's what I did....put my repository in public_html on my local box.
> (Apache automatically exposes the contents of public_html.)  I added a
> repository tag in pom.xml that  points at the repository in
> public_html.  When I ran Maven it found the repository, but complained
> that it could not find a file with an extension of "pom".
>
> So, Maven can find the repository, but it is not finding what it needs.
>
> Mike
>
> ben short wrote:
>
> > Hi Mike,
> >
> > Im trying todo the same thing as you are.. this is what i have got...
> >
> > I added the follwoing to my pom.xml
> >
> > <distributionManagement>
> >    <repository>
> >    <id>scp-repository</id>
> >    <url>scp://192.168.100.20/home/ben</url>
> >    </repository>
> > </distributionManagement>
> >
> > And this to my settings.xml
> >
> > <server>
> > <id>scp-repository</id>
> > <username>ben</username>
> > <password>123456</password>
> > </server>
> >
> > This uses scp which copys files via ssh and uses the same auth details
> > as the sshd. I chose scp over ftp as i didnt want to install a ftp
> > server on the repository box.
> >
> > When you run the mvn deploy goal the packaged artifact will be copied
> > onto the server, in my case under the /home/ben directory.
> >
> > I guess what i need todo now is add a http server to the box and make
> > it list the files under the /home/ben directory.
> >
> > Hope this helps.
> >
> > Ben
> >
> >
> > On 5/20/06, Mike Markovich <mi...@comcast.net> wrote:
> >
> >> BTW, I'm using Maven 2.0.4.
> >>
> >> Mike wrote:
> >>
> >> > Hi All, I'm new to Maven and I'm trying setup an internal repository.
> >> > I've done a lot of searching but there doesn't seem to be a lot of
> >> > information on how to set up an internol repository.   I'd appreciate
> >> > it if someone could outline the steps or point me to a link.
> >> >
> >> > Thanks,
> >> > Mike
> >> >
> >> > ---------------------------------------------------------------------
> >> > 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
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > 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
>
>