Hi Kasun, On Fri, Nov 10, 2017 at 6:01 PM, Kasun Siyambalapitiya <[email protected]> wrote:
> Hi all, > > I am currently working on a `go lang` application which will be used to > provision a server (written in `Java`) by building a given `pom.xml` file. > Since `Java` is required for running the server, we can assume that the > running system is already having `Java` installed, but it could or could > not have `maven` installed. > > So without installing `maven` or setting `M2_HOME` in `$PATH` variable of > the running system, the `go` application is written in such a way that it > uses a exploded `maven` distribution in a specific location for performing > the build. > > Although `maven` build runs as a daemon process in the above scenario, it > creates the `.m2` repo at the current user's home by default. What will be > best option for location of `.m2` repo out of following, > > 1. Place `.m2` repo at the place where the application runs (can be > configured using `settings.xml`) > 2. Place `.m2` repo at the current user's home. > > It would be better to go with option 2 where we use .m2 repo configured by the user. The reason for this, there is only one m2 repo in the user's machine. If the user wants to change the m2 location use by your application, then IMO there should be a configuration to set this. > Your thoughts on the above are highly appreciated. > > Thanks > > -- > *Regards,* > > *Kasun Siyambalapitiya* > *Software Engineer* > WSO2 Inc. - http://wso2.com/ > lean . enterprise . middleware > Tel : 0715523466 > E mail : [email protected] > Blog: https://medium.com/@kasunsiyambalapitiya > <https://wso2.com/signature> > Regards, Nira -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
