使用python构建Maven模块

2024-10-01 00:22:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为maven子模块的构建编写一个脚本。下面是我的密码-

dirl = "C:\\Users\\arupaul\\git\\application\\helios-parent\\"+ modToBeBuilt[0]
os.chdir(dirl)
args = ['mvn', 'clean install']
process = subprocess.Popen(args, stdout=subprocess.PIPE) 

modToBeBuilt有要生成的模块名列表。我在下面error:- 你知道吗

FileNotFoundError: [WinError 2] The system cannot find the file specified:

我是python新手,所以我选择了这种方式。如果你知道更好的方法,一定要告诉我。脚本不允许在项目回购,所以我需要把它放在一个单独的地方


Tags: 模块git脚本密码applicationosargsusers