You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Karen Goh <ka...@yahoo.com.INVALID> on 2018/06/15 15:44:59 UTC

mvn dependency:purge-local-repository

Hi,

I run into a problem in my Spring Boot Web project and then there's an advice following this URL :

https://github.com/spring-projects/spring-boot/issues/12398

But, when I run mvn dependency:purge-local-repository, I get another error :

Unknown lifecycle phase "mvn". 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]

I hope someone can tell you how to run mvn dependency:purge-local-repository in Eclipse Oxygen.

Tks

Karen 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn dependency:purge-local-repository

Posted by Thomas Broyer <t....@gmail.com>.
On Fri, Jun 15, 2018 at 5:45 PM Karen Goh <ka...@yahoo.com.invalid>
wrote:

> Hi,
>
> I run into a problem in my Spring Boot Web project and then there's an
> advice following this URL :
>
> https://github.com/spring-projects/spring-boot/issues/12398
>
> But, when I run mvn dependency:purge-local-repository, I get another error
> :
>
> Unknown lifecycle phase "mvn". 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]
>
> I hope someone can tell you how to run mvn
> dependency:purge-local-repository in Eclipse Oxygen.
>

"mvn" is the command-line tool for running Maven. When running Maven from
within Eclipse, you only specify the arguments through the dialog box. In
"target" (iiuc, haven't used Eclipse for years), you'd then put only
"dependency:purge-local-repository".

HTH

Re: mvn dependency:purge-local-repository

Posted by Jeff MAURY <je...@gmail.com>.
Looks like you gave mvn as a goal
In eclipse there should be a run as maven menu

Jeff

Le ven. 15 juin 2018 17:45, Karen Goh <ka...@yahoo.com.invalid> a
écrit :

> Hi,
>
> I run into a problem in my Spring Boot Web project and then there's an
> advice following this URL :
>
> https://github.com/spring-projects/spring-boot/issues/12398
>
> But, when I run mvn dependency:purge-local-repository, I get another error
> :
>
> Unknown lifecycle phase "mvn". 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]
>
> I hope someone can tell you how to run mvn
> dependency:purge-local-repository in Eclipse Oxygen.
>
> Tks
>
> Karen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>