Re: package question

2010-09-15 Thread Daniel Rindt
Am Mittwoch, den 15.09.2010, 11:04 +0100 schrieb Stephen Connolly:
> if you get the md5 sum of the jar file, then a nexus instance that is
> configured will let you search by md5 or sha1 sum for the artifact.
I have done this:
=== 8< ===
$ md5sum /usr/share/java/javamail.jar
c091017514d3e3704865765816afed35  /usr/share/java/javamail.jar
=== >8 ===
Then i invoked a checksum search on the Repository you mentioned, no
summary.

So i guess i have to add it manually to me ~/.m2 repo.

Thanks
Daniel


signature.asc
Description: This is a digitally signed message part


Re: package question

2010-09-15 Thread Stephen Connolly
if you get the md5 sum of the jar file, then a nexus instance that is
configured will let you search by md5 or sha1 sum for the artifact.

for example if you go to repository.sonatype.org, click on advanced search
and then change to checksum search you can get it to search for the jar on
central.

-Stephen


On 15 September 2010 10:26, Baptiste MATHUS  wrote:

> Hi,
>
> Setting up a nexus is two minutes work, and then makes you easier the
> ongoing config/add every days.
>
> But anyway, yes, you can install properly a resource into the local
> repository. Just google install:install-file to find doc about that goal.
> Before doing that, you should triple-check on the web that this jar hasn't
> already been deployed to central maven repository under some path.
> Because if so, you deploy it locally in another path and someone uses the
> version on the public path, you're gonna end up in classpath-hell.
>
> Cheers
>
> 2010/9/15 Daniel Rindt 
>
> > Am Mittwoch, den 15.09.2010, 10:20 +0200 schrieb per-henrik hedman:
> > > you only need to define your dependency in your pom.xml and then maven
> > > will take care of it, but you will have to define it for yourself, as
> > > the version of the javamail needs to be correct, and only you know
> > > what version you are using, right?
> > I understand that maven takes care about. But how to define this
> > external jar file? So first i have to import it into my ~/.m2 repo?
> > Sorry but a repository and nexus stuff is to much for me.
> > The version i use is classpathx-mail-1.1.1.
> > Can you please give me a example?
> >
> > many TIA
> > Daniel
> >
>
>
>
> --
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>


Re: package question

2010-09-15 Thread Baptiste MATHUS
Hi,

Setting up a nexus is two minutes work, and then makes you easier the
ongoing config/add every days.

But anyway, yes, you can install properly a resource into the local
repository. Just google install:install-file to find doc about that goal.
Before doing that, you should triple-check on the web that this jar hasn't
already been deployed to central maven repository under some path.
Because if so, you deploy it locally in another path and someone uses the
version on the public path, you're gonna end up in classpath-hell.

Cheers

2010/9/15 Daniel Rindt 

> Am Mittwoch, den 15.09.2010, 10:20 +0200 schrieb per-henrik hedman:
> > you only need to define your dependency in your pom.xml and then maven
> > will take care of it, but you will have to define it for yourself, as
> > the version of the javamail needs to be correct, and only you know
> > what version you are using, right?
> I understand that maven takes care about. But how to define this
> external jar file? So first i have to import it into my ~/.m2 repo?
> Sorry but a repository and nexus stuff is to much for me.
> The version i use is classpathx-mail-1.1.1.
> Can you please give me a example?
>
> many TIA
> Daniel
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: package question

2010-09-15 Thread Daniel Rindt
Am Mittwoch, den 15.09.2010, 10:20 +0200 schrieb per-henrik hedman:
> you only need to define your dependency in your pom.xml and then maven
> will take care of it, but you will have to define it for yourself, as
> the version of the javamail needs to be correct, and only you know
> what version you are using, right?
I understand that maven takes care about. But how to define this
external jar file? So first i have to import it into my ~/.m2 repo?
Sorry but a repository and nexus stuff is to much for me.
The version i use is classpathx-mail-1.1.1. 
Can you please give me a example?

many TIA
Daniel


signature.asc
Description: This is a digitally signed message part


Re: package question

2010-09-15 Thread Anders Hammar
1. Get yourself a repo manager. I suggest Nexus, but there are others.
2. Deploy the jar to a repo in the manager.
3. Declare the dependency in your pom the normal Maven way.

This has been discussed several times on the list and there are also
numerous blog posts. Here's one:
http://www.sonatype.com/people/2010/08/benefits-of-a-repository-manager-part-ii-caching-and-collaborating/

/Anders

On Wed, Sep 15, 2010 at 10:11, Daniel Rindt  wrote:

> Am Dienstag, den 14.09.2010, 21:37 +0200 schrieb per-henrik hedman:
> > And given that it's within Tomcat it probably exists at Central, so
> > you won't need to add a repository declaration to your pom.xml.
>
> Hey per,
>
> thanks for your reply. Yes i am talking about a jar, i mentioned as
> package. So the package is always installed on all runtimes. So how can
> i integrate it into my pom.xml properly?
> The jar resides in /usr/share/java/javamail.jar.
>
> Thanks
> Daniel
>


Re: package question

2010-09-15 Thread per-henrik hedman
Hello Daniel,
you only need to define your dependency in your pom.xml and then maven
will take care of it, but you will have to define it for yourself, as
the version of the javamail needs to be correct, and only you know
what version you are using, right?

Cheers,
Per-Henrik

On Wed, Sep 15, 2010 at 10:11 AM, Daniel Rindt  wrote:
> Am Dienstag, den 14.09.2010, 21:37 +0200 schrieb per-henrik hedman:
>> And given that it's within Tomcat it probably exists at Central, so
>> you won't need to add a repository declaration to your pom.xml.
>
> Hey per,
>
> thanks for your reply. Yes i am talking about a jar, i mentioned as
> package. So the package is always installed on all runtimes. So how can
> i integrate it into my pom.xml properly?
> The jar resides in /usr/share/java/javamail.jar.
>
> Thanks
> Daniel
>

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



Re: package question

2010-09-15 Thread Daniel Rindt
Am Dienstag, den 14.09.2010, 21:37 +0200 schrieb per-henrik hedman:
> And given that it's within Tomcat it probably exists at Central, so
> you won't need to add a repository declaration to your pom.xml.

Hey per,

thanks for your reply. Yes i am talking about a jar, i mentioned as
package. So the package is always installed on all runtimes. So how can
i integrate it into my pom.xml properly? 
The jar resides in /usr/share/java/javamail.jar.

Thanks
Daniel


signature.asc
Description: This is a digitally signed message part


Re: package question

2010-09-14 Thread per-henrik hedman
I think you need to clarify.
Do you mean the jar, when you are talking about package?
If I understand you correctly you are meaning a jar, if so you should
declare a dependency to that jar. Probably you need to find it's pom
in some repository so that you can declare it correctly.


   {group id for the classpathx-mail.jar}
   {artifact id for the classpathx-mail.jar}
   {version of the classpathx-mail.jar}


If you are talking about package as in java-package, you will have to
find where, in what jar, the package reside, and do the same for that
jar.

And given that it's within Tomcat it probably exists at Central, so
you won't need to add a repository declaration to your pom.xml.

You should also declare the  as provided...
Cheers,
Per-Henrik



On Tue, Sep 14, 2010 at 2:43 PM, Daniel Rindt  wrote:
> Hello,
>
> my Tomcat 5.5 is comming with the classpathx-mail package. I can use
> this package without mention it in the pom.xml. But when i want
> packaging it the compiler complains because it can't find the dependent
> classes. I guess i have to add the classpathx-mail package to my local
> m2 repository and place a  in my pom.xml?
>
> TIA
> Daniel
>

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