Re: No source for 2.3.14 in Maven repository
Daniel López <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
If I'm not mistaken, if using a version of Maven-Ant tasks 2.0.6+, we
could use an "attach" nested node to upload the packaged sources along
with the FreeMarker artifact. You can see the feature documented here:
http://maven.apache.org/ant-tasks/reference.html#install
And an example that uses it to upload the sources here:
https://fisheye.springframework.org/browse/spring-build/trunk/project-build/common/publish.xml?r=515
(lines 31-37)
So it seems it would simply be a matter of packaging the .java files and
then adding a:
<attach file="${source-jar.file}" classifier="sources"/>
to the artifact:deploy task. I'm not an expert but I think the packaged
sources file might need to use a specific name freemarker-sources.jar...
but I'm not sure.
Would that work?
D.
Daniel Dekany escribió:
> Thursday, November 27, 2008, 9:44:12 AM, Daniel López wrote:
>
>> Hi,
>>
>> Would it be possible to have a look at that Ant script? I do generate
>> some source artifacts when I package one of my projects, but I'never
>> upload the artifacts to a Maven repo. Seeing how it is done, we might
>> think on how to combine both options.
>
> It starts from line 858 of:
> http://freemarker.svn.sourceforge.net/viewvc/freemarker/branches/2.3/freemarker/build.xml?view=markup
>
>
>> Thanks!
>> S!
>> D.
>
--
-------------------------------------------
Daniel Lopez Janariz ([email protected])
Web Services
Centre for Information and Technology
Balearic Islands University
(SPAIN)
-------------------------------------------
-------------------------------------------------------------------------
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=/