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>
<groupId>{group id for the classpathx-mail.jar}</groupId>
<artifactId>{artifact id for the classpathx-mail.jar}</artifactId>
<version>{version of the classpathx-mail.jar}</version>
</dependency>
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 <scope> as provided...
Cheers,
Per-Henrik
On Tue, Sep 14, 2010 at 2:43 PM, Daniel Rindt <[email protected]> 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 <dependency> in my pom.xml?
>
> TIA
> Daniel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]