[ 
https://issues.apache.org/jira/browse/MAHOUT-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912928#action_12912928
 ] 

Benson Margulies commented on MAHOUT-505:
-----------------------------------------

With the patch in the current state:

Installing 
/Users/benson/asf/mahout/trunk/core/target/mahout-core-0.4-SNAPSHOT-job.jar to 
/Users/benson/.m2/repository/org/apache/mahout/mahout-core/0.4-SNAPSHOT/mahout-core-0.4-SNAPSHOT-job.jar

means 

* group org.apache.mahout
* artifact mahout-core
* classifier job

There is no finalName in the current patch. 

It uploads:

https://repository.apache.org/content/repositories/snapshots/org/apache/mahout/mahout-core/0.4-SNAPSHOT/mahout-core-0.4-20100921.103833-155-job.jar

I think I see where all the frustration comes from. You can't really control 
the name of the file uploaded to the repo. finalName is there to let you 
control the name in 'target', and it has some limitations even with that. You 
could try turning off 'attach' in the assembly plugin, and then put the 
build-helper back into the picture, setting the 'type' to job. However, chances 
are that this will get you back into Ted's original problem.

Ted's original report is that nexus messes up when you attach an artifact that 
differs only in type from the main artifact. This does not surprise me. 'type' 
generally derives from the top-level packaging element, and 'classifier' is 
supposed to be used to distinguish multiple outputs.

If you really want <type>job</type>, then you need to move this to its own 
project. You may still need the build helper, because I don't know of any way 
to get the assembly plugin to end up with .job instead of .jar without 
modifying it. Just putting '.job' in the finalName does not change the <type>.




> Alternate mechanism for assembling job files.
> ---------------------------------------------
>
>                 Key: MAHOUT-505
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-505
>             Project: Mahout
>          Issue Type: Improvement
>    Affects Versions: 0.4
>            Reporter: Drew Farris
>            Assignee: Drew Farris
>            Priority: Minor
>         Attachments: MAHOUT-505.patch
>
>
> Per discussion here:
> http://www.lucidimagination.com/search/document/6082249e667f2a1b/problem_with_our_jar_publishing
> Assembly job files using the assembly plugin/descriptor instead of an ant 
> taks and the build helper plugin. This results in job files being named 
> {-job.jar} instead of {.job}, but that seems to be necessary to prevent nexus 
> from overwriting the main jar artifacts with the jar files. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to