You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Patti Arachchige Eshan Sudharaka (JIRA)" <ji...@codehaus.org> on 2012/09/12 05:23:21 UTC

[jira] (MRM-1630) manual artifact upload should determine artifact id and group id from uploaded pom

    [ https://jira.codehaus.org/browse/MRM-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308300#comment-308300 ] 

Patti Arachchige Eshan Sudharaka commented on MRM-1630:
-------------------------------------------------------

I would like to suggest following approach for this. 

* We need to click, start upload button when we drop an artifact in to the upload page. Once we click it following process will take place
{code:xml}
<button type="submit" class="btn btn-primary start">
          <i class="icon-upload icon-white"></i>
          <span>${$.i18n.prop('fileupload.start')}</span>
  </button>
{code} 
This button posts the form in to following service.
http://localhost:9091/archiva/restServices/archivaUiServices/fileUploadService

>From the server side we can test the files is a pom file or not. If it is a pom file we can parse the pom and get the artifact details. 

What I am suggesting is to have an On-click event on above button and if it is a pom file , then in the success scenario of java script form submission fill the artifact info text fields.

Could you please give me a feed back.

Thanks

                
> manual artifact upload should determine artifact id and group id from uploaded pom
> ----------------------------------------------------------------------------------
>
>                 Key: MRM-1630
>                 URL: https://jira.codehaus.org/browse/MRM-1630
>             Project: Archiva
>          Issue Type: Improvement
>          Components: Web Interface
>    Affects Versions: 1.4-M2
>            Reporter: Olivier Bourgain
>            Assignee: Olivier Lamy
>            Priority: Trivial
>             Fix For: 1.4-M3
>
>
> The artifact upload web interface should be able to parse the uploaded pom to populate artifact id and group id.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira