首页 > 其他分享 >maven2 配置M2_REPO

maven2 配置M2_REPO

时间:2023-11-09 11:36:05浏览次数:42  
标签:xml maven repository maven2 REPO m2 M2


1、手动创建本地仓库的地址为:d:/m2/repository 


2、从windows的环境变量中增加了:M2_REPO=d:/m2/repository,同时把这个变量增加到path变量中。

3、修改d:/maven/conf/setting.xml文件,在<localRepository>节点下新增一行:
代码:
<localRepository>d:/m2/repository</localRepository>
表示本地仓库的地址为:d:/m2/repository。

4、从myeclipse->preferences->maven->installations下add一个已经安装到d盘的 maven,如:d:/maven,并勾选此新加项。并点击下面的browse按钮打开maven的全局配置文件,如:d:/maven/conf /setting.xml。

5、从myeclipse->preferences->maven->installations下修改user setting 选项为:D:/m2/repository/settings.xml,并点击update settings。并点击下面的reindex按钮更新索引。

6、点击配置窗口的apply按钮,突出配置窗口。

7、配置修改后,myeclise会自动更新索引,当完成后重启myeclipse,会发现M2_REPO变量的值变成了d:/m2/repository。

自此,maven从远程库下载的jar包都会放到d:/m2/repository下。

标签:xml,maven,repository,maven2,REPO,m2,M2
From: https://blog.51cto.com/u_809530/8274606

相关文章

  • ReportViewer (RDLC) 中的换行符是什么
     报表换行 1ReportViewer(RDLC)中的换行符是什么:chr(13)&chr(10) , 或者 & vbcrlf &示例:=Fields!FirstLine.Value&chr(13)&chr(10)&Fields!SecondLine.Value 2ReportViewer(RDLC)中改变文字方向:水平,纵向(垂直)WritingMode:tb-rl 纵向(垂直)WritingMod......
  • Adding custom code to Local Reports in Visual Studio.NET 2005 (Problems & Soluti
    AddingcustomcodetoLocalReportsinVisualStudio.NET2005(Problems&Solutions)IfyouareoneofthepeoplewhousedandenjoyedSQLServerReportingServices(SSRS)inSQL2000andyouwantedtouseitinyourwindows/webapplicationswithou......
  • Catch ReportViewer Exception
    Problem: IwouldliketoknowhowIcancatcherrorsthatshowuponmyreportviewerwebservercontrolwhenforinstancethereisaparameterwhosevaluewasnotset.Solution:YoucanyoutheReportErrormethodoftheReportViewercontrol.Ithasan......
  • Adding empty space into SQL Server Reporting Services
    REF:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1400080&SiteID=1(1)Ratherthaninsertingspaces,canyouadjustthepaddingpropertyonthetextbox?Ifyougoalistohavethefieldindented,thatshouldwork.(2)Anyreasonyoucouldn'......
  • How to grant permissions to a custom assembly that is referenced in a report in
    Ref:http://support.microsoft.com/kb/842419/en-us HowtograntpermissionstoacustomassemblythatisreferencedinareportinReportingServicesViewproductsthatthisarticleappliesto.ArticleID:842419LastReview:April3,2007Revision:2.1OnThisPa......
  • How to add an image on reportViewer (rdlc)
    OpenthereportintheDesigner.IntheToolBox,select/expandthe"ReportItems"section.Dragan"Image"field/controlontothereport.ClickontheimageandpressF4,thepropertieswindow popsup,underthegroupdatayou'llf......
  • Veeam Backup & Replication v12-(5)Scale-Out Backup Repository
    VeeamBackup&Replication可使用多个不同类型的存储库:WindowsBackupRepositories,Windows备份存储库:NTFS或推荐的ReFS。LinuxBackupRepositories,inux备份存储库:XFS与Reflink。ObjectStorage:对象存储:指向对象存储。这在v12版本中提供,可用于SOBR的所有层,包括性能层。SharedFo......
  • 报表ReportMachine与FastReport固定行数分页不足补空白行实践
    ReportMachine与FastReport固定行数分页不足补空白行实践ReportMachine简单容易,FastReport有点复杂准备工作ReportMachine实现ReportMachine实现很简单,设置报表MasterData的LinesPerPage每页记录数,AutoAppendBlank为True即可。效果FastReport实现需在在报表里使用代码来控制才能实......
  • 关于《selenium2自动测试实战--基于Python语言》
     关于本书的类型: 首先在我看来技术书分为两类,一类是“思想”,一类是“操作手册”。对于思想类的书,一般作者有很多年经验积累,这类书需要细读与品位。高手读了会深有体会,豁然开朗。新手读了不止所云,甚至会说,都在扯犊子,看了半天也不知道如何下手。对于操作手册的书,一般会......
  • Sam2Tsv 安装使用
     官网http://lindenb.github.io/jvarkit/Sam2Tsv.html 下载安装$gitclone"https://github.com/lindenb/jvarkit.git"$cdjvarkit$./gradlewsam2tsv Example$java-jardist/sam2tsv.jar-Rsrc/test/resources/toy.fasrc/test/resources/toy.bam......