mercredi 7 janvier 2015

Publish Modules from a Java Project on Github and integrate into IntelliJ


What is the best practice to work with several Java modules from different GitHub sources using IntelliJ?


This might be an odd qeustion but I do not know what the standard workflow is to achieve what I have in mind.


The current situation


I develop a Java project with IntelliJ and I manage my code with GitHub. The project is currently stored in a private repository on GitHuband it consists of several independent Maven modules. This is a sample structure:


The project structure


The plan


Now I plan to publish only ModuleB on a public repository on GitHub. I want to share only this module and allow others to use it. What is the best practice so that I can develop Module B further within my project and all changes get published in the public repository? I do not know how to do this in IntelliJ. I am insecure about the workflow here or is there another pattern which I could follow to achieve this?


Idea


I think I could export ModuleB, import it as a separate public repository into GitHub and then send pull requests when I make changes. But how do I do this with IntelliJ? How can I fork the public repository into my existing project, which is itself shared in a privare repository? Can I nest GitHub projects? Is this a good idea after all? Please let me know if my question is clear.





Aucun commentaire:

Enregistrer un commentaire