English 中文(简体)
• 如何排除Maven生命周期的一个阶段
原标题:How to exclude one of Maven s lifecycle phase

我有战争档案,我需要做“爆炸性文字”。 这样做是有可能的吗? Can 我只执行生命周期的部署阶段? 或者更好地利用一些其他工具进行部署,如ant、ant等。

最佳回答

无,你可以跳跃。 <代码>mvn phase-x的指挥始终是指“在X阶段直至含蓄阶段的所有阶段”。 然而,一些假想可以发现,自上次执行以来是否发生了变化,并且(自称)决定不运行,随后的建筑速度更快。

我不敢肯定你想要取得什么成就——也许你可以看。 Maven con plugin?

问题回答

您可以(现在)通过直接通过把目标引向前进的阶段。

mvn <plugin>:<goal>

e.g.

mvn compiler:compile

http://stackoverflow.com/a/72315201/1915920”





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签