如何知道现有的maven项目建立在哪个原型上? [英] how to know the which archetype an existing maven project is built on?

查看:336
本文介绍了如何知道现有的maven项目建立在哪个原型上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用Maven创建一个新的Java项目,但是我已经创建了一个项目,其原型我也需要用于新项目。那么我怎么能知道现有项目中使用的原型。

I have to create a new Java project using Maven, But I have an already created project whose archetype I need to use for the new project as well. So how can I know about the archetype used in the existing project.

谢谢

推荐答案

你不能。你可以有两个具有完全相同结构的原型,因此从项目的输出结构中你将无法分辨。也没有关于它的任何元数据存储。

You can't. You could have two archetypes with the exact same structure so from the output structure of the project you wouldn't be able to tell. There isn't any metadata stored about it either.

这篇关于如何知道现有的maven项目建立在哪个原型上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆