← Back to team overview

dhis2-devs team mailing list archive

Re: How could import a class file in DHIS2

 

Jo does this mean that you can technically bypass the repo mechanism and
include jars as resources?  Probably again not to be encouraged but there
are instances where you have a jar which doesn't exist in maven repo.  A
situation I had recently.

A better solution I know is to set up an internal repository.

Cheers
Bob

2009/10/31 Jo Størset <storset@xxxxxxxxx>

> Hi,
>
> I feel the need to stress that there generally are better solutions to
> this. Just writing what you need from scratch is generally worth the effort
> in small cases. If that isn´t feasible, I need to know more about the
> context.
>
> You could just put the class in the src/main/resources directory, but [1]
> tells you how to setup a second resources directory ("classes"?), where you
> could put the class (in it´s correct place in the package structure)
>
> [1]
> http://maven.apache.org/plugins/maven-resources-plugin/examples/resource-directory.html
>
> Jo

Follow ups

References