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

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

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:

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

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

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.

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

package question

2010-09-14 Thread Daniel Rindt
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

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. dependency