jira-importer opened a new issue, #1261:
URL: https://github.com/apache/httpcomponents-core/issues/1261

   **[Chris 
Hubick](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCORE-184](https://issues.apache.org/jira/browse/HTTPCORE-184?redirect=false)**
 and commented
   
   I could be missing something, but it appears the httpcore (and httpclient) 
source bundle build depends on a parent Maven project which isn't included in 
the bundle.
   
   Given a Maven install with the required plugins, it should be possible to 
build binaries from the source distribution in an offline situation, entirely 
using files found in the source bundle.
   
   I am trying to write RPM packages for httpcore and httpclient.  This is done 
by creating a spec file which, given to the rpmbuild tool with the source 
bundle, will build it in a temp directory and generate (S)RPM packages 
containing the source and binaries.  These packages are designed to be self 
contained - that is, besides the declared project dependencies, they should 
contain all the files needed to rebuild the generated source package into the 
binary package.  The httpcore maven pom references the parent project using a 
path to the parent directory, which would be outside the distributed source 
package, and thus outside the temp directory used by rpmbuild.  This is 
problematic.
   
   I was going to work around this situation by ignoring the default 
distributed source bundles for httpcore/httpclient, and just create my own 
bundle of the whole parent and child project source directly out of svn, and 
having a single spec file to build the whole thing, with sub-packages for each 
of core/client - this would have the RPM's nicely parallel the Maven structure. 
 The problem here is that core and client exist in separate svn folders, and as 
near as I can tell, you don't actually branch/tag the parent project info.  
This is problematic.
   
   I don't quite know what to suggest here.  The simplest solution would 
perhaps be to have the httpcore bundle include the parent project folder and 
pom, with core as a subdir of that - meaning the core dist actually includes 
the core and the parent.  But that would mean you have files in that bundle 
which can't be recreated from SVN tags.  You could add branches/tags/trunk 
under the parent project dir in SVN to fix that though.  Or something?
   
   Thanks for your consideration.
   
   
   ---
   
   **Affects:** 4.0-beta3
   
   **Attachments:**
   - 
[src-assembly.patch](https://issues.apache.org/jira/secure/attachment/12400170/src-assembly.patch)
 (_761 bytes_)
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to