jira-importer commented on issue #507:
URL: https://github.com/apache/maven-indexer/issues/507#issuecomment-2965146316

   **[Martin 
Todorov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=carlspring)**
 commented
   
   [Aaron 
Simmons](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=paleozogt),
   
    
   
   The problem is more due to the the following:
   * One POM file can define one artifact. (Sure, you can use the 
build-helper-maven-plugin to add additional ones, but they are never reflected 
in the uploaded POM file).
   * You can't always guess the extension properly. You can guess simple 
extensions like jar, war, zip, but will fail with parsing the extensions for 
tar.gz, tar.bz2 and so on, unless you have an exact list of all possible 
extensions...
   
   So, if you were to scan a directory that contains such artifacts, how would 
you locate the artifacts?
   
   How would you figure out what the extension is?
   
   How would you know where the classifier ends when you have a complex 
extension like the above? You will end up getting classifiers like 
gcc4.4.5.tar. Clearly, this is not what you'd want.
   
    
   
   If you have suggestions and advice, do share!
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to