Re: No source for 2.3.14 in Maven repository

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, November 27, 2008, 11:59:04 AM, Daniel López wrote:

> 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.

I tried it and the name is decided by the artifact:deploy task (the
name of the local file is irrelevant), so one don't have to worry
about that.

> Would that work?

It seems it does. Thanks for the tip! I will soon re-deploy 2.3.14.

> 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.

-- 
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=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.