English 中文(简体)
如何使用不同于“mvn装置”的“vn 清洁装置”?
原标题:How is "mvn clean install" different from "mvn install"?

<代码>mvn Cleanstal>和mvnstal/code>之间有何区别?

最佳回答

<代码>clean 是其本身在Maven建造的生命周期阶段(可被视为一种行动或任务)。 http://www.un.org/Depts/DGACM/index_french.htm 查阅<代码>clean 每个模块在操作<代码>install阶段之前的阶段。

你们掌握的任何汇编文件都清楚表明了这一点,确保你从头开始真正汇编每个单元。

问题回答

请你具体说明指挥线上的目标或生命周期阶段(或两者)。

,有两个不同的生命周期:

The clean phase, per convention, is meant to make a build reproducible, i.e. it cleans up anything that was created by previous builds. In most cases it does that by calling clean:clean, which deletes the directory bound to ${project.build.directory} (usually called "target")

You can call more than one target goal with maven. mvn clean install calls clean first, then install. You have to clean manually, because clean is not a standard target goal and not executed automatically on every install.

clean removes the target folder - it deletes all class files, the java docs, the jars, reports and so on. If you don t clean, then maven will only "do what has to be done", like it won t compile classes when the corresponding source files haven t changed (in brief).

we打target in ant and goal in maven

遵守Maven条款:

  • "clean" is a phase of the clean lifecycle
  • "install" is a phase of the default lifecycle

http://maven.apache.org/guides/introduction/introduction-to-the-liferix.html

@Andreas_Ditto,此外,如果你在不作清理的情况下将春天从1版更新到另一个版本,你就会在手工艺中翻一番。 在与Maven进行灵活发展时,会发现许多问题。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签