Re: No source for 2.3.14 in Maven repository
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Wednesday, November 26, 2008, 6:31:37 PM, Jeff Ramsdale wrote: > Ah, I assumed it was a slip since 2.3.13 has source (separate jar): > > http://repo2.maven.org/maven2/org/freemarker/freemarker/2.3.13/ > I'm quite handy with Ant and mean no disdain when saying Maven (once > the learning curve is conquered) dramatically simplifies the build > management for more complex projects. In our case we're using > FreeMarker with Restlet, the latest release of which is hard-coded > to depend on 2.3.14. BTW, I think they should depend on "[2.3.14,2.4)". See: http://freemarker.org/freemarkerdownload.html Do I suggest a bad practice there? I hope not. > We use the m2eclipse plugin to provide Maven integration with Eclipse. > Thus, by adding Restlet with the FreeMarker extension to our pom > FreeMarker 2.3.14 is downloaded automatically. A context menu provides > the option to automatically download and attach source (no need to go to > a provider's website, find the download, unzip, and configure project to > attach source). Since no FreeMarker source jar is posted this step > fails. But it's a beautiful thing when it works! So, you need this for looking into the source code with ctrl+click and for the JavaDoc "hints", and that's all. Right? > There's no need to build FreeMarker itself with Maven if you're happy > with your build process. However, as many of your users will be > obtaining it via another framework that embeds it (e.g. Restlet) there > is particular value in supporting Maven users. I'm grateful you > currently deliver to the Maven repository and only ask that you take the > additional step of providing the source as well. This makes it dead > simple for Maven users who obtain FreeMarker as a transitive dependency > to discover the joys of your fine product. > > Re-reading your message, though, I see you were asking about maintaining > the pom. Whomever posted your 2.3.14 artifact provided a suitable pom > (<http://repo2.maven.org/maven2/org/freemarker/freemarker/2.3.14/freemarker-2.3.14.pom>) > and FreeMarker works great with Maven. If there's a process for creating > the source jar that was followed for 2.3.13 but not for 2.3.14 I would > guess it should be possible to use it to produce the missing (though > optional) sources artifact. As of 2.3.14 the Maven artifacts and the POM are generated and upload by the ant build.xml. (If someone cares, from line 858: http://freemarker.svn.sourceforge.net/viewvc/freemarker/branches/2.3/freemarker/build.xml?view=markup) I guess it will not be hard to extend that script to release the sources too. > Would be glad to answer any more questions if you have any... > > -jeff > > Daniel Dekany wrote: >> Wednesday, November 26, 2008, 7:34:24 AM, Jeff Ramsdale wrote: >> >>> See: http://repo1.maven.org/maven2/org/freemarker/freemarker/2.3.14/ >>> >>> No source. :-( >>> >>> I don't suppose anything could be done about it? >> >> Well, tell us more about it, because we are not very familiar with the >> "Maven world". I suppose it has no much point if it doesn't contain a >> POM that can actually build the freemarker.jar, right? We build with >> Ant, and as far as we don't switch to Maven (there is no such plan >> currently), certainly it would be an unrealistic idea to maintain a >> POM-based builder in parallel. But I'm just guessing here. After all, >> we only had to buld the freemarker.jar, not the other stuff (like Web >> pages, Manual, etc.). -- Best regards, Daniel Dekany ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/