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

Drew Farris commented on MAHOUT-505:
------------------------------------

Some finalName wierdness:

{code}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-assembly-plugin</artifactId>
  <version>2.2-beta-5</version>
  <executions>
    <execution>
      <id>job</id>
      <phase>package</phase>
      <goals>
        <goal>single</goal>
      </goals>
      <configuration>
        <finalName>${project.artifactId}-${project.version}.job</finalName>
        <descriptors>
          <descriptor>src/main/assembly/job.xml</descriptor>
        </descriptors>
      </configuration>
    </execution>
  </executions>
</plugin>
{code}

Results in:

{[INFO] Installing 
/home/drew/mahout/trunk/core/target/mahout-core-0.4-SNAPSHOT.job-job.jar to 
/home/drew/maven/repository/org/apache/mahout/mahout-core/0.4-SNAPSHOT/mahout-core-0.4-SNAPSHOT-job.jar}

The former being wrong the latter being correct. So, it's getting deployed to 
the right location.

> 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