20021213 Friday December 13, 2002

What Maven Does I, like Charles, was unsure of what Maven did. James has made it clear and I have seen the light - I think. In my AppFuse project, I have a lib directory that contains all the various third-party jars I'm using in my build process. Among these are XDoclet, Struts, Cactus, JSTL, Hibernate, JUnitDoclet, etc. The problem is that this directory is ~16MB and if I add it to CVS, I've got a monster project. The zipped up version of AppFuse's source is 14MB! That's enough to scare off folks right there.

It sounds to me that Maven can help me out in 2 ways. It can be used to download and install these jars as part of the build process. Slick if it can! Can it get me nightly builds from CVS? The 2nd feature seems to be building a project website for me. That's cool and definitely better than my simple readme file. However, can I make my site look like this (my site) rather than this (Maven site)? The good news I see is that the generated website does use XHTML and a DOCTYPE:

<!DOCTYPE html PUBLIC "-//CollabNet//DTD XHTML 1.0 Transitional//EN"
    "http://www.collabnet.com/dtds/collabnet_transitional_10.dtd">

The bad news is that it's not a standard DOCTYPE and even after I override the doctype and charset, it still does not validate. Of coure, this may not be a big deal, but if this were to be more "standard" it would be easier to convince folks like me to jump on the bandwagon. If there's templates I can modify, show me, and I'll dig like a miner that's struck gold. Posted in Java at Dec 13 2002, 12:25:05 AM MST 2 Comments

Comments:

Firstly yes Maven will automatically download any dependent jars for you. There is a standard jar repository here... http://www.ibiblio.org/maven/ If you need a new jar added to the repository, just mail turbine-maven-dev@apache.org. Eventually we'll have a web application to make this easier. You can use multiple repositories - so you can have your own internal or external repositories too. Hopefully increasingly folks will host their own repositories. On the documentation - its easy in Maven to customize or even replace any particular goal implementation. So if you want to change how the XML -> HTML step works, just overload the goal in your maven.xml file. There's much more documentation on both these topics on the Maven website.

Posted by James Strachan on December 13, 2002 at 01:55 AM MST #

Sweet - this sounds like just the solution I was looking for! I was a little hesitant about releasing a product that requires a 20 MB download to generate a 3MB WAR file. Maven to the rescue...

Posted by Matt Raible on December 13, 2002 at 02:38 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud