You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need more documentation on options. The issue is we have our own maven repository and we are not supposed to use the http://central.maven.org/maven2/.
Our repository and authentication of repository details are present in settings.xml under .m2 directory. The mvn command automatically pulls the artifacts from our repository as per defined in settings.xml.
var opts = {
repositories: [
{
id: "<id></id>",
url: "<url>Modified ! See below</url>"
}
]};
mvn(opts, function(err, mvnResults) {
//Callback after fetching from the protected repo.
});
For HTTP Authentication modify the url as ^^ https://user:pass@mymvnartifactory.com/repo
But this issue can't be closed yet, as we still need complete documentation. :)
Being dumb, burnt time looking at alternate solutions for resolving dependencies thinking that I would need to do a hack. Some good time with the code and documentation of the modules it uses, was easy to figure out. I would be happy to do some documentation as I find time...
Activity
joeferner commentedon Dec 2, 2015
Are you doing something like this in your
settings.xmlor is it more complex?email2vimalraj commentedon Jan 6, 2016
Sorry for delay in response. My
settings.xmllook like this:email2vimalraj commentedon Mar 7, 2016
Any updates on this?
joeferner commentedon Mar 7, 2016
Sorry, I haven't had a chance to look into this issue.
pratikdmehta commentedon May 16, 2016
@email2vimalraj Just use:
For HTTP Authentication modify the url as ^^
https://user:pass@mymvnartifactory.com/repoBut this issue can't be closed yet, as we still need complete documentation. :)
Being dumb, burnt time looking at alternate solutions for resolving dependencies thinking that I would need to do a hack. Some good time with the code and documentation of the modules it uses, was easy to figure out. I would be happy to do some documentation as I find time...
hyperlink commentedon Aug 12, 2016
@pratikdmehta don't forget to add a trailing slash to the
url. It doesn't call join to combine the paths.