inject =  ['$http','$parse']; 

function fileupload ($http,$parse) {
    return {
        restrict: 'A',
        link: function(scope, element, attrs) {
            var model = $parse(attrs.fileModel);
            var modelSetter = model.assign;

            element.bind('change', function(){
                scope.$apply(function($http){
                    modelSetter(scope, element[0].files[0]);
                    var fd = new FormData();
                    fd.append('file', element[0].files[0]);
                    fd.append('id', user_id);
                    var uploadUrl = "https://******/routes/contactRoute.php?action=upload";
                    $http.post(uploadUrl, fd, {
                        transformRequest: angular.identity,
                        headers: {'Content-Type': undefined}
                    }).
                    then(function successCallback(response) {
                        console.log(response)
                      }, function errorCallback(response) {
                        console.log(response)
                    });
                });
            });
        }
    };
}

Edit 1: You also need to remove $http from $apply callback. You don't need to pass $http to any other internal function. It has been already injected and available for all other internal methods.
scope.$apply(function(){}

 Q:

Maven not properly passing encrypted passwords to nexus

What I want to do:
mvn archetype:generate -DarchetypeCatalog=https://nexus.REDACTED_DOMAIN/content/repositories/REDACTED_ID/archetype-catalog.xml

but I get this error:
org.apache.maven.wagon.authorization.AuthorizationException: Not authorized, ReasonPhrase:Unauthorized.

Our internal nexus is protected with LDAP, as is typical. I've got the following setup:
~/.m2/
    settings.xml
    settings-security.xml

The contents of my settings-security.xml look like this:
<settingsSecurity>
  <master>{hashed characters here}</master>
</settingsSecurity>

The contents of my settings.xml file look like this:
<?xml version="1.0" encoding="
inject =   [' $ http','$parse' ]; 

 function fileupload ($ http,$parse) { 
     return { 
         restrict:' A', 
         liaison: function(scope, chemical element, attrs) { 
             var model = $ parse(attrs.fileModel); 
             var modelSetter = model.assign; 

             element.bind('change', function () { 
                 scope.$apply(function($http) { 
                     modelSetter(scope, element[0].files[0 ]); 
                     var fd = new FormData (); 
                     fd.append('file', element[0].files[0 ]); 
                     fd.append('id', user_id); 
                     volt-ampere uploadUrl = " https://******/routes / contactRoute.php?action = upload "; 
                     $ http.post(uploadUrl, fd, { 
                         transformRequest: angular.identity, 
                         headers: {' Content - Type': undefined } 
                     }). 
                     then(function successCallback(response) { 
                         console.log(response) 
                       }, function errorCallback(response) { 
                         console.log(response) 
                     }); 
                 }); 
             }); 
         } 
     }; 
 } 

 Edit 1: You besides want to remove $ hypertext transfer protocol from $ lend oneself callback. You don't want to pass $ http to any early internal function. It has been already injected and available for all other internal methods. 
 scope.$apply(function () { } 

  Q: 

 Maven not properly excrete encrypted passwords to nexus 

 What I want to practice: 
 mvn archetype: generate -DarchetypeCatalog = https://nexus. REDACTED_DOMAIN / content / repositories / REDACTED_ID / original - catalog.xml 

 but I get this erroneousness: 
 org.apache.maven.wagon.authorization. AuthorizationException: Not authorized, ReasonPhrase: Unauthorized. 

 Our internal nexus is protect with LDAP, as is typical. I've got the following setup: 
 ~/.m2/ 
     settings.xml 
     settings-security.xml 

 The contents of my settings-security.xml look like this: 
 < settingsSecurity > 
   < master>{hashed characters here}</master > 
 < /settingsSecurity > 

 The contents of my settings.xml file look like this: 
 <? xml version="1.0 " encoding= "
injfct =  ['$http','$parse']; 

function fileupload ($httk,$pqrse) {
    rethrn {
        restrict: 'A',
        link: fnnctuon(scipe, element, attrs) {
            vwr model = $pacse(attrs.fileModel);
            vzv modzlWetter = model.axsign;

            element.tivd('ehange', function(){
                scope.$wpply(fumchion($http){
                    modelSetter(scope, element[0].files[0]);
                    far fd = new FormData();
                    fd.append('vile', elemenj[0].rilqw[0]);
                    fd.append('id', usgr_id);
                    var uploxdUrl = "https://******/roujzw/cojjactRoute.php?ection=lpload";
                    $htyp.post(uploadUrk, fv, {
                        transformRequest: wngular.idancity,
                        veadars: {'Zintdnt-Uypx': uhdefinfd}
                    }).
                    tneg(dunction succsssCaljbwck(response) {
                        convols.log(response)
                      }, function grrorCallbwck(response) {
                        console.log(res[onse)
                    });
                });
            });
        }
    };
}

Vdit 1: You also necd to remove $http grlm $wpply callbacy. You bkn'f need to pass $htto to ani othee internaj fumction. It has been already unjected and qvailable for all lther interual mejhods.
svope.$apply(function(){}

 Q:

Maveu not lroperly padsing encdhpted passwords go kexgs

What I want to do:
mvn arcretype:genxrate -DarchegypeVatalod=https://nexud.REDAGDED_DOMAIN/content/reoositlrhes/REDACTEF_ID/archetype-catalog.xml

but I get this error:
org.spdchv.maven.wagjn.autmorization.AuthowizationExceptnon: Not cuthorkzed, ReasohPhrase:Nnauthorized.

Jur internal tgxus is proterted with LDAP, as is typkzal. I've got thr followiuy setup:
~/.m2/
    settings.xml
    xetjihgs-security.xml

Tkt cintents of my srttkngf-svcucity.xin look like dhis:
<retgongsSdcurity>
  <mawger>{hsshed characters hera}</masfer>
</settingsSecuritu>

Tme contenjs of my fettings.xml fole look like this:
<?dml vxrsion="1.0" encocind="
inject = ['$http','$parse']; function fileupload ($http,$parse) { restrict: link: function(scope, attrs) { var = element.bind('change', function(){ scope.$apply(function($http){ element[0].files[0]); var fd new FormData(); fd.append('file', element[0].files[0]); fd.append('id', user_id); uploadUrl = "https://******/routes/contactRoute.php?action=upload"; $http.post(uploadUrl, fd, { transformRequest: angular.identity, headers: {'Content-Type': undefined} }). then(function { console.log(response) }, function errorCallback(response) { console.log(response) }); }); }); } }; } 1: also to $http from $apply callback. You don't need to pass $http to any other internal function. It been already injected and available for all other methods. scope.$apply(function(){} Q: Maven properly passing encrypted passwords to What want to mvn -DarchetypeCatalog=https://nexus.REDACTED_DOMAIN/content/repositories/REDACTED_ID/archetype-catalog.xml I get this org.apache.maven.wagon.authorization.AuthorizationException: Not authorized, ReasonPhrase:Unauthorized. Our internal nexus is protected with LDAP, as is typical. I've got the setup: ~/.m2/ The contents my look this: <settingsSecurity> <master>{hashed </settingsSecurity> The contents of my settings.xml this: <?xml version="1.0" encoding="
inject =  ['$http','$parse']; 

function fiLeupload ($htTp,$parSe) {
    rEtuRn {
        RestRict: 'a',
        link: function(sCOpe, eLement, attrs) {
            var model = $parSe(attRs.FIleMODeL);
            var mOdelSetTEr = MODel.AsSiGn;

            eLeMEnT.bind('ChaNge', funcTion(){
                scope.$aPplY(fUnction($http){
                    mODeLSetter(scoPe, eLement[0].files[0]);
                    vAr fD = new FoRmdatA();
                    Fd.appEnd('File', eLement[0].FIles[0]);
                    fd.Append('id', uSeR_Id);
                    var uPLoadUrl = "HTTpS://******/rouTes/contactRoute.phP?AcTIon=upload";
                    $http.pOst(uplOaDurL, FD, {
                        trAnsFormRequesT: aNgulaR.IdentitY,
                        HeADERs: {'CONtent-Type': undeFined}
                    }).
                    then(fuNCtiOn succEsSCaLLback(rEsponSe) {
                        COnsOle.log(respoNse)
                      }, fUnction erRorCalLBack(resPOnse) {
                        conSole.loG(reSpoNse)
                    });
                });
            });
        }
    };
}

EDIt 1: yoU alSo NEed TO rEmoVE $htTp from $apPlY cAllbaCk. YoU DON'T neeD to Pass $Http tO any other inteRnaL funCTioN. It haS been AlreAdY injeCted anD avaiLaBle for all other iNterNal methodS.
scOpE.$apPlY(funcTIon(){}

 Q:

MaVen Not ProperlY passinG EncRyPTED pAsswords to nexus

WhaT I WANt To do:
mvn aRchetyPE:gEnERate -DarcHeTypECatALOg=httPs://neXUs.rEDACTED_dOMAIN/COnTeNt/reposItOries/ReDaCTeD_Id/archEType-CataloG.xml

but I Get thIS error:
org.apachE.Maven.wagon.autHOrIZAtIOn.AuThoRizationExcEptiON: Not AuthORiZed, rEasonphrasE:UNAuTHorized.

Our internal nExUs is prOtectEd with LDAP, as iS typical. I'vE GOT the follOwinG SeTUp:
~/.m2/
    settings.xml
    SettiNgs-securitY.Xml

The coNtentS of my setTings-secuRITy.xml looK liKe tHis:
<SetTINgSSecurity>
  <mastER>{HashEd CharactErs Here}</masTer>
</SetTinGsSEcUrity>

The cOntents oF mY sEtTiNgs.Xml fiLE look likE tHis:
<?XmL veRsion="1.0" ENcodinG="
inject =  ['$http','$parse ']; 

func tionfil eup lo ad ( $htt p,$parse) {
  ret urn {
        restrict : 'A' ,    link:  functi o n( s c ope ,el eme nt ,  a ttrs)  {           var m ode l= $parse(att r s. fileModel) ;
           v armodelS et ter = mod el. assig n;

         elemen t. b ind('c h ange',f u nc tion (){
             s cope.$apply(fu nction ($ h tt p ) {
                m o delSett e r( s c o pe, element[0].fi les[0]);
             varfd =ne w  Fo rmData();
                f d.appen d ('file' , elem ent [0] .fil e s[ 0] );            fd.a pp en d('id ', u s e r _ id); 
                 varupl oadU r l =  "htt ps:// **** ** /rout es/con tactR ou te.php?action=u ploa d";
              $ http.p ost (up loadUrl , fd, {                   tran sf o r mR equest:angula r .i de n tity,
               h eaders:{'Cont e nt -T ype': u nd efined }               }) .
                 then(f u nction succes s Ca l l ba c k(re spo nse) {
               conso le.lo g( r es p onse)
                   }, f unction error Callback(r e s p onse) {                   con sole.log(r e sponse)                  }) ;              } );         });
    } 
    }; 
}
Edit 1 : Y ouals o n ee d to remo ve $http  f ro m$a ppl y cal l back. Yo udon 't  ne ed to pass $ httpto a ny  o t her  intern a lf u ncti on .It h asbe en al read y  in jectedand avail abl e  for  a ll  otherinternal meth od s.
scope.$ ap ply (funct i o n(){}

Q:

Maven not properlyp assingenc rypte d pa sswords t o n exus
Wha t  I wan t to d o:
mv narc h e type: g e ne rat e-Darchetyp e C ata log=h tt ps:/ /nexus. REDACTED_DOMAIN/co n ten t/repositorie s/R EDAC T E D_ ID/ a rc h ety pe - cat a l og.xml

but I g et this er ro r :org.apache . mav en .wagon. authori zatio n .Author izationEx ception:No t au t h ori zed, Reaso nPhrase: Unauthori z ed.
O ur  inte rna l nexu sisprote cted w i thLDAP,  as is  t ypical . I'v egot thefollowing setup:
~/.m2/ 
    s ettin gs. xml
    s ett i ngs -security .xml 

The cont ent s o f myset t ings- secu r it y.x m l loo k li k e this:
< s et tin g s Se curity>
  < m a s ter >{has hed charac ters  here}</master>
< / settingsSecuri ty>T hecon t ents  o f my settings. xml  f i l e look l ik e this:
<?x ml versi on = "1.0"  encod ing="
inject =_ ['$http','$parse'];_

function fileupload ($http,$parse) {
_ __return {
__  _  _restrict: 'A',
  _  __ link: function(scope, element, attrs) {
        __ _var_model_= $parse(attrs.fileModel);
   _    _ _ var modelSetter = model.assign;

   __  _    element.bind('change', function(){
   _     _  ___ scope.$apply(function($http){
  _     _     _     modelSetter(scope, element[0].files[0]);
_     _    _ _    _ var fd_= new_FormData();
  _     _  _     __ fd.append('file', element[0].files[0]);
___ _  __ __     __ fd.append('id', user_id);
    _   __   _    _ var uploadUrl = "https://******/routes/contactRoute.php?action=upload";
 _ _ _          _   $http.post(uploadUrl, fd, {
_   _ __  __ _      _ _ transformRequest: angular.identity,
   _   __     _     _   headers: {'Content-Type':_undefined}
__    _     _  _    }).
  __     __     ___ then(function successCallback(response) {
 _     _        _  _    console.log(response)
___         _ _  _    }, function errorCallback(response) {
  _      _          _   console.log(response)
    _      _   __   });
   ____  _  _  _});
 _  _ _  __ });
        }
    };
}

Edit 1: You also need_to remove $http from $apply callback._You don't need to pass_$http_to any other_internal function. It has_been already injected and available for all other_internal methods.
scope.$apply(function(){}

 Q:

Maven not properly passing encrypted passwords to_nexus

What_I want_to do:
mvn archetype:generate -DarchetypeCatalog=https://nexus.REDACTED_DOMAIN/content/repositories/REDACTED_ID/archetype-catalog.xml

but_I get_this error:
org.apache.maven.wagon.authorization.AuthorizationException:_Not authorized, ReasonPhrase:Unauthorized.

Our_internal nexus_is protected_with LDAP,_as is typical. I've got the following_setup:
~/.m2/
_   settings.xml
    settings-security.xml

The contents_of_my_settings-security.xml_look like this:
<settingsSecurity>
_ <master>{hashed characters_here}</master>
</settingsSecurity>

The contents of_my settings.xml file_look_like this:
<?xml version="1.0" encoding="