In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
maven:
Configure maven environment
① Decompress maven to a path with no spaces and no Chinese
② Add environment variable M2_HOME and PATH path
M2_HOME=C:\mysoft\apache-maven-3.5.0
PATH=%M2_HOME%\bin
Test (mvn -version)
Edit pom.xml file
org.apache.hadoop
hadoop-client
2.7.4
maven basic command
mvn clean compile
mvn clean package
mvn archetype:generate
Configure maven repository
① Get warehouse files
② Configuration conf/settings file
/path/to/local/repo
eclipe integration maven
① Go back to eclipse for configuration
Windows->Preferences-> Search maven->User Settings
Global Settings //Find maven Settings file
User Settings //Find maven Settings file
Local Repository //maven Settings file configured repository address
Build a private server
① Get tomcat and nexus.war and put them under the path
② Configure environmental variables
CATALINA_HOME=C:\mysoft\apache-tomcat-8.5.15
PATH=%CATALINA_HOME%\bin
③ Put nexus under tomcat webapps, start tomcat, initialize nexus.war
④web browser localhost:8080/nexus Enter the nexus home page. If you can enter, it proves that the initialization is complete.
Edit C:\mysoft\apache-tomcat-8.5.15\webapps\nexus\WEB-INF\classes\nexus.properties file,
nexus-work=C:/mysoft/apache-tomcat-8.5.15/sonatype-work/nexus //This path is a dependency library for private servers.
④ Extract the central file into the private server dependency library sonatype-work\nexus\storage\central
7 Start tamcat to check whether the private service is successfully built
Configure maven settings file
The administrator sets the index to update automatically
admin admin123
configuration->Download Remote Indexes= true
Register tamcat to system services
Step 1:
In tomcat bin directory, enter cmd
Step 2:
Command line type service.bat install tomcat
Step 3:
Modify tomcat service startup mode under windows service
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.