logging/re - 总结

本文详细介绍了Python中的logging模块使用方法,包括不同级别的日志输出、日志格式化配置及同时输出到屏幕和文件的方式。此外,还深入探讨了Python中re模块的正则表达式用法,包括常见匹配语法、分割与替换操作及标识符使用等。

logging 模块

很多程序都有记录日志的需求
logging的日志可以分为 debug(), info(), warning(), error() and critical()5个级别

1.输出到屏幕上

import logging  #输出到屏幕上 只显示 warning error critical  不会显示 debug info 

logging.debug('user wrong 3 times')  
logging.info('user wrong 3 times')
logging.warning('user wrong 3 times')
logging.error('user wrong 3 times')
logging.critical('user wrong 3 times')

2.输出到文件中

import logging  #输出到文件中 显示 >= level(ERROR)  若是不设level  不会显示 debug info  

logging.basicConfig(filename='logmsg.log',level=logging.ERROR)

logging.debug('user wrong 3 times')
logging.info('user wrong 3 times')
logging.warning('user wrong 3 times')
logging.error('user wrong 3 times')
logging.critical('user wrong 3 times')

3.输出日期格式

import logging   

logging.basicConfig(filename='logmsg.log', format='%(asctime)s - %(levelno)s - %(levelname)s - %(filename)s - %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.DEBUG)
# logging.basicConfig(format='%(asctime)s %(message)s',datefmt='%Y-%m-%d %I:%M:%S %p',level=logging.DEBUG)

logging.debug('user wrong 3 times')
logging.info('user wrong 3 times')
logging.warning('user wrong 3 times')
logging.error('user wrong 3 times')
logging.critical('user wrong 3 times')

除了加时间,还可以自定义一大堆格式,下表就是所有支持的格式
%(name)s        Logger的名字
%(levelno)s     数字形式的日志级别
%(levelname)s   文本形式的日志级别
%(pathname)s    调用日志输出函数的模块的完整路径名,可能没有   会乱码 
%(filename)s    调用日志输出函数的模块的文件名
%(module)s      调用日志输出函数的模块名
%(funcName)s    调用日志输出函数的函数名
%(lineno)d      调用日志输出函数的语句所在的代码行
%(created)f     当前时间,用UNIX标准的表示时间的浮点数表示
%(relativeCreated)d   输出日志信息时的,自Logger创建以 来的毫秒数
%(asctime)s     字符串形式的当前时间。默认格式是 “2003-07-08 16:49:45,896”。逗号后面的是毫秒
%(thread)d      线程ID。可能没有
%(threadName)s  线程名。可能没有
%(process)d     进程ID。可能没有
%(message)s     用户输出的消息

4.同时输出到屏幕和文件中:四个组件,类:logger handler filter formatter 

 1 import logging
 2 from logging import handlers
 3 
 4 class IgnoreBackupLogFilter(logging.Filter):
 5     """忽略带db backup 的日志"""
 6     def filter(self, record): #固定写法
 7         return  "db backup" not in record.getMessage() #如果是True就记录
 8 
 9 # 1.生成logger对象
10 logger= logging.getLogger('web')
11 logger.setLevel(logging.DEBUG)
12 
13 #1.1 把filter对象添加到logger中
14 logger.addFilter(IgnoreBackupLogFilter())
15 
16 #2.生成handler对象
17 ch = logging.StreamHandler()
18 # ch.setLevel(logging.INFO)
19 # fh = logging.FileHandler('lweb.log')
20 # RotatingFileHandler( filename[, mode[, maxBytes[, backupCount]]])    按文件大小截断
21 # fh = handlers.RotatingFileHandler('lweb.log',maxBytes=10,backupCount=3)
22 # TimedRotatingFileHandler( filename [,when [,interval [,backupCount]]])  按时间截断
23 fh = handlers.TimedRotatingFileHandler('lweb.log',when='S',interval=5,backupCount=3)
24 # fh.setLevel(logging.WARNING)
25 
26 #2.1把handler对象绑定到logger
27 logger.addHandler(ch)
28 logger.addHandler(fh)
29 
30 #3.生成formatter对象
31 #3.1把formatter对象绑定到handler对象
32 file_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
33 console_formatter = logging.Formatter('%(asctime)s - %(name)s - %(lineno)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S %p')
34 ch.setFormatter(console_formatter)
35 fh.setFormatter(file_formatter)
36 
37 logger.debug('user db backup wrong 3 times')
38 logger.info('user wrong 3 times')
39 logger.warning('user wrong 3 times')
40 logger.error('user db backup wrong 3 times')
41 logger.critical('user db backup wrong 3 times')
42 
43 # 没有给级别 之前 默认是 warning
44 #handler的级别不能比全局低
45 #像是一个漏斗 全局过滤之后 才到handler
46 #全局设置为DEBUG后 console handler 设置为 INFO ,如果输出的日志级别为debug,那就不会在屏幕上打印
#注意:
maxBytes用于指定日志文件的最大文件大小
backupCount用于指定保留的备份文件的个数
when参数是一个字符串 S秒 M分 H小时 D天 W每星期(interval==0时 代表星期一) midnight 每天凌晨
interval是时间间隔 

 -------------------------------------------------------------------------------

re 模块
正则表达式:字符串的匹配规则

1.re常见的匹配语法有以下几种

 re.match     从头开始匹配 只匹配一个就返回 场景:手机号 
 re.search    全局匹配 只匹配一个就返回 
 re.findall   把所有匹配到的字符放到以列表中的元素返回 phones = re.findall('1[0-9]{10}', data)
 re.split     以匹配到的字符当做列表分隔符 
 re.sub       匹配字符并替换  
 re.fullmatch 全部匹配  

 re.match('[0-9]','123dasd') = <_sre.SRE_Match object; span=(0, 1), match='1'>    
 re.search('[0-9]','abc1d3e') =  <_sre.SRE_Match object; span=(3, 4), match='1'> #
 re.findall('[0-9]','abc1d3e') = ['1', '3']
注:
match 和 search 返回是一个对象 是这样拿值的:需要先判断 否则会报错
res = re.search('[0-9]','abs1d2')
if res:
    print(res.group())

re.match('sd','sd*sda') == re.search('^sd','sd*sda') == re.search('\Asd','sd*sda') == sd  
re.search('sd$','adssasd') == re.search('sd\Z','adssasd') == sd 
re.search('[0-9]','alex23') == re.search('\d','alex23') == 2 

2.示例:

re.search('.','*a2a3sdas') == *       #任意一个字符
re.search('^sd','sd*sda') == sd       #以什么开头
re.search('sd$','sdasd')  == sd       #以什么结尾
re.match('b$','b')  == b              #只匹配一个
re.search('ab*','abblex') == abb      #*前一个字符0次或多次 
re.search('ab*','sdad') == a
re.search('ab+','sdad') == None   
re.search('ab+','sdabbbd') == abbb   
re.search('a+','sdaa') == aa          #+前一个字符1次或多次
re.search('.+','abcd') == abcd        #匹配到所有
re.search('a?','aasad') == a          #?前一个字符0次或1次
re.search('a{2}','dddaa') == aa       #{m}前一个字符m次
re.search('[0-9]','asd232') == 2      #[] 匹配0-9一次 [a-z]
re.search('[a-z]{1,5}','2lex') == lex #{n,m}匹配前一个字符n到m次 
re.search('[a|A]lex','alex') == alex  #|或 匹配左或右的字符
re.search('([a-z]+)([0-9]+)','alex123').groups() == ('alex', '123') #()()分组匹配

re.search('\Aalex','alex') == alex    #\A以什么开头
re.search('sd\Z','adssasd') == sd     #\Z以什么结尾
re.search('\d','alex23') == 2         #\d匹配数字0-9 
re.search('\d+','alex23') == 23
re.search('\D','alex23') == a         #匹配非数字
re.search('\D+','@*&234alex23') == @*&  
re.search('\w+','!@#23saAS') == 23saAS  #匹配[A-Z a-z 0-9]
re.search('\W+','!$@23saAS') == !$@     #匹配非[A-Z a-z 0-9] 即:特殊字符 
re.findall('\s','alex\njack\rma ck\tjack') == ['\n', '\r', ' ', '\t']  #匹配空白字符 \n \r \t 

s='61062019991011053'  #分组,可定义成字典 
re.search('(?P<province>\d{3})(?P<city>\d{3})(?P<born_year>\d{4})',s).groups() == ('610', '620', '1999')
re.search('(?P<province>\d{3})(?P<city>\d{3})(?P<born_year>\d{4})',s).groupdict() == {'province': '610', 'city': '620', 'born_year': '1999'} 

3.常用的表达式规则

'.'     默认匹配除\n之外的任意一个字符,若指定flag DOTALL,(re.S)则匹配任意字符,包括换行
'^'     匹配字符开头,若指定flags MULTILINE,(re.M)这种也可以匹配上(r"^a","\nabc\neee",flags=re.MULTILINE)
'$'     匹配字符结尾, 若指定flags MULTILINE(re.M) ,re.search('foo.$','foo1\nfoo2\n',re.MULTILINE).group() 会匹配到foo1
'*'     匹配*号前的字符0次或多次, re.search('a*','aaaabac')  结果'aaaa'
'+'     匹配前一个字符1次或多次,re.findall("ab+","ab+cd+abb+bba") 结果['ab', 'abb']
'?'     匹配前一个字符1次或0次 ,re.search('b?','alex').group() 匹配b 0次
'{m}'   匹配前一个字符m次 ,re.search('b{3}','alexbbbs').group()  匹配到'bbb'
'{n,m}' 匹配前一个字符n到m次,re.findall("ab{1,3}","abb abc abbcbbb") 结果'abb', 'ab', 'abb']
'|'     匹配|左或|右的字符,re.search("abc|ABC","ABCBabcCD").group() 结果'ABC'
'(...)' 分组匹配, re.search("(abc){2}a(123|45)", "abcabca456c").group() 结果为'abcabca45'


'\A'    只从字符开头匹配,re.search("\Aabc","alexabc") 是匹配不到的,相当于re.match('abc',"alexabc") 或^
'\Z'    匹配字符结尾,同$ 
'\d'    匹配数字0-9
'\D'    匹配非数字
'\w'    匹配[A-Za-z0-9]
'\W'    匹配非[A-Za-z0-9]
'\s'    匹配空白字符、\t、\n、\r , re.search("\s+","ab\tc1\n3").group() 结果 '\t'

'(?P<name>...)' 分组匹配 re.search("(?P<province>[0-9]{4})(?P<city>[0-9]{2})(?P<birthday>[0-9]{4})","371481199306143242").groupdict("city") 结果{'province': '3714', 'city': '81', 'birthday': '1993'}

4.分割:re.split() 替换:re.sub() 全部匹配:re.fullmatch()  全部匹配:pattern = re.compile() pattern.fullmatch() 效率高

s='alex22jack23jinxin50|mack-oldboy'
re.split('\d+|\||-',s) == ['alex', 'jack', 'jinxin', '', 'mack', 'oldboy']
re.findall('\d+|\||-',s) = ['22', '23', '50', '|', '-'] 
s='alex22jack23jinxin50\mack-oldboy'
re.split('\\\\',s) == ['alex22jack23jinxin50', 'mack-oldboy'] 
s='9-2*5/3+7/3*99/4*2998+10*568/14'
re.split('\W+',s) == ['9', '2', '5', '3', '7', '3', '99', '4', '2998', '10', '568', '14']
re.split('\W+',s,maxsplit=3) == ['9', '2', '5', '3+7/3*99/4*2998+10*568/14'] 
re.split('[-\*/\+]',s) == ['9', '2', '5', '3', '7', '3', '99', '4', '2998', '10', '568', '14']

s = 'alex22jack23jinxin50\\mack-oldboy'
re.sub('\d+','_',s) == 'alex_jack_jinxin_\\mack-oldboy'
re.sub('\d+','_',s,count=2) == 'alex_jack_jinxin50\\mack-oldboy' 

re.fullmatch('\w+@\w+\.(com|cn|edu)','alex@oldboyedu.com') # 慢 规则需要转换成bytes需时间

pattern = re.compile('\w+@\w+\.(com|cn|edu)') #快 规则转换bytes1次就可以了
pattern.fullmatch('alex@oldboyedu.com') == <_sre.SRE_Match object; span=(0, 18), match='alex@oldboyedu.com'>

5.标识符 Flags 

re.I   #忽略大小写  re.IGNORECASE
re.M   #多行模式  re.MULTILINE
re.S   #改变.的行为,.是任意字符,除了换行符\n  re.DOTALL
re.X   #可对正则 规则 注释  re.VERBOSE 

re.search('a','Alex',re.I) == A 
re.search('foo.$','foo1\nfoo2\n') == foo2  
re.search('foo.$','foo1\nfoo2\n',re.M) == foo1  
re.search('^s','\nsds',re.M) == s  
re.search('.','\n') == None 
re.search('.','\n',re.S) == \n  
re.search('.','alex') == a 
re.search('. #test','alex') == None
re.search('. #test','alex',re.X) = a

 注:

    [^"] 表示不包含“这个字符

    [^()] 表示不包含()这个括号

re.search(r'\\','asd2\sad') == <_sre.SRE_Match object; span=(4, 5), match='\\'>
re.search('\\\\','asd2\sad') == <_sre.SRE_Match object; span=(4, 5), match='\\'>
r:表示原生字符串

转载于:https://www.cnblogs.com/alice-bj/p/8477076.html

C:\Users\c>mvn install:install-file -Dfile=spring-test-5.1.8.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-test -Dversion=5.1.8.RELEASE -Dpackaging=jar [INFO] Scanning for projects... Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (4 KB at 9.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/22/maven-plugins-22.pom (13 KB at 132.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/21/maven-parent-21.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/21/maven-parent-21.pom (26 KB at 79.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/10/apache-10.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/10/apache-10.pom (15 KB at 73.0 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (25 KB at 71.4 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom (7 KB at 20.9 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/23/maven-plugins-23.pom (9 KB at 109.5 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/22/maven-parent-22.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/22/maven-parent-22.pom (30 KB at 330.1 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/11/apache-11.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/11/apache-11.pom (15 KB at 45.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar (27 KB at 333.2 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom (2 KB at 3.7 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven/2.0.6/maven-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven/2.0.6/maven-2.0.6.pom (9 KB at 71.8 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/5/maven-parent-5.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-parent/5/maven-parent-5.pom (15 KB at 236.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/3/apache-3.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/apache/3/apache-3.pom (4 KB at 38.5 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom (3 KB at 37.3 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom (2 KB at 26.1 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom (3 KB at 49.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom (2 KB at 21.9 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom (9 KB at 116.8 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom (4 KB at 46.5 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-containers/1.0.3/plexus-containers-1.0.3.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-containers/1.0.3/plexus-containers-1.0.3.pom (492 B at 7.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom (6 KB at 96.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/junit/junit/3.8.1/junit-3.8.1.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/junit/junit/3.8.1/junit-3.8.1.pom (998 B at 14.3 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom (7 KB at 58.7 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom (4 KB at 51.8 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom (2 KB at 23.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom (3 KB at 40.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom (2 KB at 18.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom (2 KB at 22.3 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom (2 KB at 25.0 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.pom (3 KB at 30.3 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom (19 KB at 256.0 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/sonatype/spice/spice-parent/17/spice-parent-17.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/sonatype/spice/spice-parent/17/spice-parent-17.pom (7 KB at 91.7 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/sonatype/forge/forge-parent/10/forge-parent-10.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/sonatype/forge/forge-parent/10/forge-parent-10.pom (14 KB at 181.4 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom (2 KB at 11.1 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom (5 KB at 57.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom (8 KB at 87.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom (8 KB at 72.4 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.jar Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.jar Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.jar Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar (13 KB at 115.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.jar (48 KB at 409.8 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/junit/junit/3.8.1/junit-3.8.1.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.jar (29 KB at 241.4 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.jar (35 KB at 294.1 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.jar (114 KB at 766.6 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar (37 KB at 144.2 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar (85 KB at 320.8 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/junit/junit/3.8.1/junit-3.8.1.jar (119 KB at 434.7 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar (190 KB at 660.7 KB/sec) Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.jar (56 KB at 184.6 KB/sec) Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar (24 KB at 72.6 KB/sec) Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar (86 KB at 248.0 KB/sec) Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar (226 KB at 601.7 KB/sec) Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar (12 KB at 30.2 KB/sec) [ERROR] The specified file 'C:\Users\c\spring-test-5.1.8.RELEASE.jar' not exists [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.888 s [INFO] Finished at: 2025-07-29T10:57:44+08:00 [INFO] Final Memory: 10M/201M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: The specified file 'C:\Users\c\spring-test-5.1.8.RELEASE.jar' not exists -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
07-30
lvzhuoyuan@U-VF56K71F-1930 lindormML % mvn javadoc:javadoc # 单独执行插件目标 [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Detecting the operating system and CPU architecture [INFO] ------------------------------------------------------------------------ [INFO] os.detected.name: osx [INFO] os.detected.arch: x86_64 [INFO] os.detected.bitness: 64 [INFO] os.detected.version: 10.16 [INFO] os.detected.version.major: 10 [INFO] os.detected.version.minor: 16 [INFO] os.detected.classifier: osx-x86_64 [INFO] ------------------------------------------------------------------------ [INFO] Detecting the operating system and CPU architecture [INFO] ------------------------------------------------------------------------ [INFO] os.detected.name: osx [INFO] os.detected.arch: x86_64 [INFO] os.detected.version: 10.16 [INFO] os.detected.version.major: 10 [INFO] os.detected.version.minor: 16 [INFO] os.detected.classifier: osx-x86_64 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Lindorm ML Project [pom] [INFO] ldml-sql [jar] [INFO] ldml-inference-client [jar] [INFO] ldml-core [jar] [INFO] ldml-jdbc [jar] [INFO] ldml-train [jar] [INFO] ldml-inference [jar] [INFO] ldml-exec [jar] [INFO] ldml-server [jar] [INFO] ldml-endpoint-lsql [jar] [INFO] dist-ldml-server [pom] Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-enforcer-plugin/3.1.0/maven-enforcer-plugin-3.1.0.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-enforcer-plugin/3.1.0/maven-enforcer-plugin-3.1.0.pom (7.2 kB at 35 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/enforcer/enforcer/3.1.0/enforcer-3.1.0.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/enforcer/enforcer/3.1.0/enforcer-3.1.0.pom (8.3 kB at 101 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-enforcer-plugin/3.1.0/maven-enforcer-plugin-3.1.0.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-enforcer-plugin/3.1.0/maven-enforcer-plugin-3.1.0.jar (26 kB at 231 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/alchim31/maven/scala-maven-plugin/4.5.3/scala-maven-plugin-4.5.3.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/alchim31/maven/scala-maven-plugin/4.5.3/scala-maven-plugin-4.5.3.pom (24 kB at 152 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/alchim31/maven/scala-maven-plugin/4.5.3/scala-maven-plugin-4.5.3.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/alchim31/maven/scala-maven-plugin/4.5.3/scala-maven-plugin-4.5.3.jar (136 kB at 1.2 MB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/gmavenplus/gmavenplus-plugin/1.2/gmavenplus-plugin-1.2.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/gmavenplus/gmavenplus-plugin/1.2/gmavenplus-plugin-1.2.pom (23 kB at 297 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom (4.8 kB at 62 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/gmavenplus/gmavenplus-plugin/1.2/gmavenplus-plugin-1.2.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/gmavenplus/gmavenplus-plugin/1.2/gmavenplus-plugin-1.2.jar (88 kB at 1.1 MB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/bytebuddy/byte-buddy-maven-plugin/1.12.9/byte-buddy-maven-plugin-1.12.9.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/bytebuddy/byte-buddy-maven-plugin/1.12.9/byte-buddy-maven-plugin-1.12.9.pom (4.7 kB at 57 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/bytebuddy/byte-buddy-maven-plugin/1.12.9/byte-buddy-maven-plugin-1.12.9.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/net/bytebuddy/byte-buddy-maven-plugin/1.12.9/byte-buddy-maven-plugin-1.12.9.jar (44 kB at 514 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-release-plugin/3.0.0-M7/maven-release-plugin-3.0.0-M7.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-release-plugin/3.0.0-M7/maven-release-plugin-3.0.0-M7.pom (9.4 kB at 110 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/release/maven-release/3.0.0-M7/maven-release-3.0.0-M7.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/release/maven-release/3.0.0-M7/maven-release-3.0.0-M7.pom (11 kB at 144 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-release-plugin/3.0.0-M7/maven-release-plugin-3.0.0-M7.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-release-plugin/3.0.0-M7/maven-release-plugin-3.0.0-M7.jar (61 kB at 704 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/build-helper-maven-plugin/3.3.0/build-helper-maven-plugin-3.3.0.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/build-helper-maven-plugin/3.3.0/build-helper-maven-plugin-3.3.0.pom (7.4 kB at 93 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/mojo-parent/65/mojo-parent-65.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/mojo-parent/65/mojo-parent-65.pom (35 kB at 413 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/build-helper-maven-plugin/3.3.0/build-helper-maven-plugin-3.3.0.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/codehaus/mojo/build-helper-maven-plugin/3.3.0/build-helper-maven-plugin-3.3.0.jar (68 kB at 786 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-maven-plugin/1.0.0.RC2/moditect-maven-plugin-1.0.0.RC2.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-maven-plugin/1.0.0.RC2/moditect-maven-plugin-1.0.0.RC2.pom (4.0 kB at 48 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-parent/1.0.0.RC2/moditect-parent-1.0.0.RC2.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-parent/1.0.0.RC2/moditect-parent-1.0.0.RC2.pom (7.3 kB at 94 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-org-parent/1.0.0.Final/moditect-org-parent-1.0.0.Final.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-org-parent/1.0.0.Final/moditect-org-parent-1.0.0.Final.pom (18 kB at 206 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-maven-plugin/1.0.0.RC2/moditect-maven-plugin-1.0.0.RC2.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/moditect/moditect-maven-plugin/1.0.0.RC2/moditect-maven-plugin-1.0.0.RC2.jar (46 kB at 235 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-project-info-reports-plugin/3.1.2/maven-project-info-reports-plugin-3.1.2.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-project-info-reports-plugin/3.1.2/maven-project-info-reports-plugin-3.1.2.pom (19 kB at 99 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-project-info-reports-plugin/3.1.2/maven-project-info-reports-plugin-3.1.2.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-project-info-reports-plugin/3.1.2/maven-project-info-reports-plugin-3.1.2.jar (293 kB at 2.2 MB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changelog-plugin/2.3/maven-changelog-plugin-2.3.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changelog-plugin/2.3/maven-changelog-plugin-2.3.pom (14 kB at 172 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changelog-plugin/2.3/maven-changelog-plugin-2.3.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changelog-plugin/2.3/maven-changelog-plugin-2.3.jar (59 kB at 736 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changes-plugin/2.10/maven-changes-plugin-2.10.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changes-plugin/2.10/maven-changes-plugin-2.10.pom (20 kB at 90 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changes-plugin/2.10/maven-changes-plugin-2.10.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-changes-plugin/2.10/maven-changes-plugin-2.10.jar (213 kB at 843 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.pom (6.9 kB at 89 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.jar (32 kB at 370 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-javadoc-plugin/3.3.0/maven-javadoc-plugin-3.3.0.pom Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-javadoc-plugin/3.3.0/maven-javadoc-plugin-3.3.0.pom (21 kB at 260 kB/s) Downloading from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-javadoc-plugin/3.3.0/maven-javadoc-plugin-3.3.0.jar Downloaded from alibaba-releases: http://mvnrepo.alibaba-inc.com/mvn/repository/org/apache/maven/plugins/maven-javadoc-plugin/3.3.0/maven-javadoc-plugin-3.3.0.jar (515 kB at 2.7 MB/s) [INFO] [INFO] --------------< com.alibaba.lindorm.sqlminds:lindorm-ml >--------------- [INFO] Building Lindorm ML Project 1.3.4.2 [1/11] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Lindorm ML Project 1.3.4.2: [INFO] [INFO] Lindorm ML Project ................................. FAILURE [ 0.002 s] [INFO] ldml-sql ........................................... SKIPPED [INFO] ldml-inference-client .............................. SKIPPED [INFO] ldml-core .......................................... SKIPPED [INFO] ldml-jdbc .......................................... SKIPPED [INFO] ldml-train ......................................... SKIPPED [INFO] ldml-inference ..................................... SKIPPED [INFO] ldml-exec .......................................... SKIPPED [INFO] ldml-server ........................................ SKIPPED [INFO] ldml-endpoint-lsql ................................. SKIPPED [INFO] dist-ldml-server ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.009 s [INFO] Finished at: 2025-06-23T20:16:51+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Unknown lifecycle phase "#". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException lvzhuoyuan@U-VF56K71F-1930 lindormML % 不对啊
06-24
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.pom (11 kB at 1.0 MB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/release/maven-release/2.5.3/maven-release-2.5.3.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/release/maven-release/2.5.3/maven-release-2.5.3.pom (5.0 kB at 502 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/27/maven-parent-27.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/27/maven-parent-27.pom (41 kB at 3.7 MB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/17/apache-17.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/17/apache-17.pom (16 kB at 1.5 MB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.jar (53 kB at 4.1 MB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 1.3 MB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 764 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.954 s [INFO] Finished at: 2025-07-09T06:18:06Z [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException root@srv771551:~/jeecg-boot# cd ../jeecgboot-vue3 -bash: cd: ../jeecgboot-vue3: No such file or directory root@srv771551:~/jeecg-boot# npm install npm run dev npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /root/jeecg-boot/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/root/jeecg-boot/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2025-07-09T06_18_32_236Z-debug-0.log npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /root/jeecg-boot/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/root/jeecg-boot/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2025-07-09T06_18_34_357Z-debug-0.log root@srv771551:~/jeecg-boot#
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值