You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff MAURY <je...@gmail.com> on 2010/03/30 17:29:56 UTC

Re: Beginner question: I can't find the library i'm using on the repository

If it does not exist on the cloud, don't try to put it there, there are
probably many reasons for that.
I would recommand that you install a Maven repository manager like Nexus and
once you've set it up, then deploy on it the missing jar and all your
internal Maven projects will see it now !!!

Regards
Jeff MAURY

2010/3/30 Benoît Thiébault <th...@artenum.com>

> Hello everyone,
>
> I am currently reading the very good Maven book from Nicolas De loof and
> Arnaud Héritier (written in French) and I have decided to convert one of my
> test projects to Maven. Unfortunately, I already have a problem :-).
>
> My software depends on an open source software, jlibeps (
> http://jlibeps.sourceforge.net/), but I can't find it in any Maven
> repository. This library seems not very maintained anymore, but it does what
> I need it to do. I don't want (yet) to host my own Maven repository and I
> was wondering what are my options here ? Should I create a POM file for the
> library and submit it to a Maven repository ? It seems (
> http://maven.apache.org/guides/mini/guide-central-repository-upload.html)
> the simplest way to do it would be to host is on an approved forge, but I
> don't own the project (that looks dead to me)...
>
> Thanks for your feedbacks
>
> Ben
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal

Re: Beginner question: I can't find the library i'm using on the repository

Posted by David Hoffer <dh...@gmail.com>.
I don't work on open source projects so I haven't faced this issue.
However I would think that the same server you plan to use to host
your project on could be used to host the dependency; the key is that
it has to be available just like yours.

-Dave

2010/3/30 Benoît Thiébault <th...@artenum.com>:
> My software is an open source project (not released yet).
>
> I currently compile it with Ant and I store in my lib folder the JAR I manually downloaded on the net.
>
> What will happen when I release the software ? I guess I will have to provide this dependency JAR as well to new developers... This is not very maven-y... Or should I then make my local repository public ?
>
> Le 30 mars 2010 à 17:29, Jeff MAURY a écrit :
>
>> If it does not exist on the cloud, don't try to put it there, there are
>> probably many reasons for that.
>> I would recommand that you install a Maven repository manager like Nexus and
>> once you've set it up, then deploy on it the missing jar and all your
>> internal Maven projects will see it now !!!
>>
>> Regards
>> Jeff MAURY
>>
>> 2010/3/30 Benoît Thiébault <th...@artenum.com>
>>
>>> Hello everyone,
>>>
>>> I am currently reading the very good Maven book from Nicolas De loof and
>>> Arnaud Héritier (written in French) and I have decided to convert one of my
>>> test projects to Maven. Unfortunately, I already have a problem :-).
>>>
>>> My software depends on an open source software, jlibeps (
>>> http://jlibeps.sourceforge.net/), but I can't find it in any Maven
>>> repository. This library seems not very maintained anymore, but it does what
>>> I need it to do. I don't want (yet) to host my own Maven repository and I
>>> was wondering what are my options here ? Should I create a POM file for the
>>> library and submit it to a Maven repository ? It seems (
>>> http://maven.apache.org/guides/mini/guide-central-repository-upload.html)
>>> the simplest way to do it would be to host is on an approved forge, but I
>>> don't own the project (that looks dead to me)...
>>>
>>> Thanks for your feedbacks
>>>
>>> Ben
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>> --
>> http://www.jeffmaury.com
>> http://riadiscuss.jeffmaury.com
>> http://www.lastfm.fr/listen/user/jeffmaury/personal
>
>
>
>
> ---------------------------------------------------------------------
> 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: Beginner question: I can't find the library i'm using on the repository

Posted by Benoît Thiébault <th...@artenum.com>.
My software is an open source project (not released yet).

I currently compile it with Ant and I store in my lib folder the JAR I manually downloaded on the net.

What will happen when I release the software ? I guess I will have to provide this dependency JAR as well to new developers... This is not very maven-y... Or should I then make my local repository public ?

Le 30 mars 2010 à 17:29, Jeff MAURY a écrit :

> If it does not exist on the cloud, don't try to put it there, there are
> probably many reasons for that.
> I would recommand that you install a Maven repository manager like Nexus and
> once you've set it up, then deploy on it the missing jar and all your
> internal Maven projects will see it now !!!
> 
> Regards
> Jeff MAURY
> 
> 2010/3/30 Benoît Thiébault <th...@artenum.com>
> 
>> Hello everyone,
>> 
>> I am currently reading the very good Maven book from Nicolas De loof and
>> Arnaud Héritier (written in French) and I have decided to convert one of my
>> test projects to Maven. Unfortunately, I already have a problem :-).
>> 
>> My software depends on an open source software, jlibeps (
>> http://jlibeps.sourceforge.net/), but I can't find it in any Maven
>> repository. This library seems not very maintained anymore, but it does what
>> I need it to do. I don't want (yet) to host my own Maven repository and I
>> was wondering what are my options here ? Should I create a POM file for the
>> library and submit it to a Maven repository ? It seems (
>> http://maven.apache.org/guides/mini/guide-central-repository-upload.html)
>> the simplest way to do it would be to host is on an approved forge, but I
>> don't own the project (that looks dead to me)...
>> 
>> Thanks for your feedbacks
>> 
>> Ben
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 
> 
> 
> -- 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal




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


Re: Beginner question: I can't find the library i'm using on the repository

Posted by Steve Francolla <sf...@gmail.com>.
Forgot to mention that mvn-shade will also produce an
updated-dependency-pom.xml (or similarly named) where white-listed lib's
dependency on your local repo will be removed from the packaged pom.xml.  I
use mvn-shade with mvn release plugin to deploy to Nexus OSS repo with those
adjustments.



On Tue, Mar 30, 2010 at 11:48 AM, Steve Francolla <sf...@gmail.com>wrote:

> You can install the lib to your local system repo and then completely avoid
> others having the anticipated dependency build problem by applying the
> mvn-shade-plugin:
>
> (1) mvn install the lib to my local system repo.
>
> mvn install:install-file -Dfile=lib\<your-lib>.jar -DgroupId=<group-id> -DartifactId=<art-id> -Dversion=<vers> -Dpackaging=jar
>
>
> (2) then, simply package this dependency within my proj's package with
> something like:
>
> <project>
>   ...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-shade-plugin</artifactId>
>         <version>1.3.2</version>
>         <executions>
>           <execution>
>             <phase>package</phase>
>             <goals>
>               <goal>shade</goal>
>             </goals>
>             <configuration>
>
>               <includes>
>
>                 <include>[the-lib-group]:[the-lib-artifact]:*<includes>
>
>               </includes>
>
> </configuration> </execution> </executions> </plugin> </plugins> </build>
> ... </project>
>
>
> Those who pull down your project will receive the depended upon library's
> classes built directly into the project tree.
>
> SF
>
>
>
> On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <je...@gmail.com> wrote:
>
>> If it does not exist on the cloud, don't try to put it there, there are
>> probably many reasons for that.
>> I would recommand that you install a Maven repository manager like Nexus
>> and
>> once you've set it up, then deploy on it the missing jar and all your
>> internal Maven projects will see it now !!!
>>
>> Regards
>> Jeff MAURY
>>
>> 2010/3/30 Benoît Thiébault <th...@artenum.com>
>>
>> > Hello everyone,
>> >
>> > I am currently reading the very good Maven book from Nicolas De loof and
>> > Arnaud Héritier (written in French) and I have decided to convert one of
>> my
>> > test projects to Maven. Unfortunately, I already have a problem :-).
>> >
>> > My software depends on an open source software, jlibeps (
>> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven
>> > repository. This library seems not very maintained anymore, but it does
>> what
>> > I need it to do. I don't want (yet) to host my own Maven repository and
>> I
>> > was wondering what are my options here ? Should I create a POM file for
>> the
>> > library and submit it to a Maven repository ? It seems (
>> >
>> http://maven.apache.org/guides/mini/guide-central-repository-upload.html)
>> > the simplest way to do it would be to host is on an approved forge, but
>> I
>> > don't own the project (that looks dead to me)...
>> >
>> > Thanks for your feedbacks
>> >
>> > Ben
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>> --
>> http://www.jeffmaury.com
>> http://riadiscuss.jeffmaury.com
>> http://www.lastfm.fr/listen/user/jeffmaury/personal
>>
>
>
>
>
>
> On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <je...@gmail.com> wrote:
>
>> If it does not exist on the cloud, don't try to put it there, there are
>> probably many reasons for that.
>> I would recommand that you install a Maven repository manager like Nexus
>> and
>> once you've set it up, then deploy on it the missing jar and all your
>> internal Maven projects will see it now !!!
>>
>> Regards
>> Jeff MAURY
>>
>> 2010/3/30 Benoît Thiébault <th...@artenum.com>
>>
>> > Hello everyone,
>> >
>> > I am currently reading the very good Maven book from Nicolas De loof and
>> > Arnaud Héritier (written in French) and I have decided to convert one of
>> my
>> > test projects to Maven. Unfortunately, I already have a problem :-).
>> >
>> > My software depends on an open source software, jlibeps (
>> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven
>> > repository. This library seems not very maintained anymore, but it does
>> what
>> > I need it to do. I don't want (yet) to host my own Maven repository and
>> I
>> > was wondering what are my options here ? Should I create a POM file for
>> the
>> > library and submit it to a Maven repository ? It seems (
>> >
>> http://maven.apache.org/guides/mini/guide-central-repository-upload.html)
>> > the simplest way to do it would be to host is on an approved forge, but
>> I
>> > don't own the project (that looks dead to me)...
>> >
>> > Thanks for your feedbacks
>> >
>> > Ben
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>> --
>> http://www.jeffmaury.com
>> http://riadiscuss.jeffmaury.com
>> http://www.lastfm.fr/listen/user/jeffmaury/personal
>>
>
>

Re: Beginner question: I can't find the library i'm using on the repository

Posted by Steve Francolla <sf...@gmail.com>.
You can install the lib to your local system repo and then completely avoid
others having the anticipated dependency build problem by applying the
mvn-shade-plugin:

(1) mvn install the lib to my local system repo.

mvn install:install-file -Dfile=lib\<your-lib>.jar
-DgroupId=<group-id> -DartifactId=<art-id> -Dversion=<vers>
-Dpackaging=jar


(2) then, simply package this dependency within my proj's package with
something like:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.3.2</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>

              <includes>

                <include>[the-lib-group]:[the-lib-artifact]:*<includes>

              </includes>

</configuration> </execution> </executions> </plugin> </plugins> </build>
... </project>


Those who pull down your project will receive the depended upon library's
classes built directly into the project tree.

SF



On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <je...@gmail.com> wrote:

> If it does not exist on the cloud, don't try to put it there, there are
> probably many reasons for that.
> I would recommand that you install a Maven repository manager like Nexus
> and
> once you've set it up, then deploy on it the missing jar and all your
> internal Maven projects will see it now !!!
>
> Regards
> Jeff MAURY
>
> 2010/3/30 Benoît Thiébault <th...@artenum.com>
>
> > Hello everyone,
> >
> > I am currently reading the very good Maven book from Nicolas De loof and
> > Arnaud Héritier (written in French) and I have decided to convert one of
> my
> > test projects to Maven. Unfortunately, I already have a problem :-).
> >
> > My software depends on an open source software, jlibeps (
> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven
> > repository. This library seems not very maintained anymore, but it does
> what
> > I need it to do. I don't want (yet) to host my own Maven repository and I
> > was wondering what are my options here ? Should I create a POM file for
> the
> > library and submit it to a Maven repository ? It seems (
> > http://maven.apache.org/guides/mini/guide-central-repository-upload.html
> )
> > the simplest way to do it would be to host is on an approved forge, but I
> > don't own the project (that looks dead to me)...
> >
> > Thanks for your feedbacks
> >
> > Ben
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal
>





On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <je...@gmail.com> wrote:

> If it does not exist on the cloud, don't try to put it there, there are
> probably many reasons for that.
> I would recommand that you install a Maven repository manager like Nexus
> and
> once you've set it up, then deploy on it the missing jar and all your
> internal Maven projects will see it now !!!
>
> Regards
> Jeff MAURY
>
> 2010/3/30 Benoît Thiébault <th...@artenum.com>
>
> > Hello everyone,
> >
> > I am currently reading the very good Maven book from Nicolas De loof and
> > Arnaud Héritier (written in French) and I have decided to convert one of
> my
> > test projects to Maven. Unfortunately, I already have a problem :-).
> >
> > My software depends on an open source software, jlibeps (
> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven
> > repository. This library seems not very maintained anymore, but it does
> what
> > I need it to do. I don't want (yet) to host my own Maven repository and I
> > was wondering what are my options here ? Should I create a POM file for
> the
> > library and submit it to a Maven repository ? It seems (
> > http://maven.apache.org/guides/mini/guide-central-repository-upload.html
> )
> > the simplest way to do it would be to host is on an approved forge, but I
> > don't own the project (that looks dead to me)...
> >
> > Thanks for your feedbacks
> >
> > Ben
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal
>