On Tue, Jun 3, 2008 at 3:10 PM, Jody wrote:
> Michael Bedward wrote:
>
> You should be able to go *just* into the project you modified; say
> modules/plugin/postgis
> and type: mvn clean install
yep - I've been doing that (when I realized that it helped a lot ! )
> If you do need to change something in the root pom.xml (say a version number
> for log4j) you can do so; and install the root pom non recursively; and then
> go into your project and install. Ie build 2 things rather than everything.
I'll read up about that (installing root pom non-recursively) - thanks
> > <cathartic rant>
> > I wasted a couple of hours yesterday trying to work out why adding
> > log4j to my very very basic geotools / swing app was generating so
> > much pain.
>
> You lost me a bit there; if maven needed something it should of downloaded
> it; log4j
Perhaps I should have tagged it <incoherent rant> :) For Sun
components like JMS I gather the pom is routinely in a public repo but
the jar isn't - hence the original hiccup. But the real problem for
me was that (a) JMS isn't required for basic use of log4j and (b) I
couldn't have installed it on my system even if I did need it.
Luckily for me there was a helpful blog where this was discussed and
the method of excluding transitive dependencies in the pom was
given...
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</exclusion>
</exclusions>
</dependency>
> Good rant; and as you discover tips and trick please update our wiki - we
> can all use the help.
Absolutely !
cheers
Michael
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users