Fwd: Unknown lifecycle phase " ".

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Unknown lifecycle phase " ".

sireinderanga@gmail.com
Team,

I am facing the below issue. I am attaching the pom file here for your reference…. 

I am facing the same issue even when I change the version. To 1.7 and change target to tasks


======
[ERROR] Unknown lifecycle phase " ". 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 1]
org.apache.maven.lifecycle.LifecyclePhaseNotFoundException: Unknown lifecycle phase " ". 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.
======

Thanks in advance for your help.



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

pom.xml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Unknown lifecycle phase " ".

sireinderanga@gmail.com
Thank you very much, Robert.  Got it.. Replacing only required elements
from the working command worked...

On Tue, Jan 7, 2020 at 1:27 PM Robert Scholte <[hidden email]> wrote:

> My guess is that the problem is not in the pom, but in the commandline.
> Looks like your mvn command contains/ends with a character that looks like
> a space, but is not.
>
> thanks, Robert
> On 7-1-2020 18:30:34, [hidden email] <[hidden email]>
> wrote:
> Adding users group too..
>
> mvn -version
>
> *Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)*
>
> Maven home: /Users/xxxx/apache-maven-3.6.3
>
> Java version: 1.8.0_231, vendor: Oracle Corporation, runtime:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/jre
>
> Default locale: en_US, platform encoding: UTF-8
>
> OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
>
> On Tue, Jan 7, 2020 at 12:23 PM Tomo Suzuki
> wrote:
>
> > (I feel [hidden email] is suitable place)
> > What's command to get the error?
> > What does "mvn -version" say?
> >
> > On Tue, Jan 7, 2020 at 12:15 PM [hidden email]
> > wrote:
> > >
> > > Team,
> > >
> > > I am facing the below issue. I am attaching the pom file here for your
> > reference….
> > >
> > > I am facing the same issue even when I change the version. To 1.7 and
> > change target to tasks
> > >
> > >
> > > ======
> > > [ERROR] Unknown lifecycle phase " ". You must specify a valid lifecycle
> > phase or a goal in the format : or
> > :[:]:. 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 1]
> > > org.apache.maven.lifecycle.LifecyclePhaseNotFoundException: Unknown
> > lifecycle phase " ". You must specify a valid lifecycle phase or a goal
> in
> > the format : or
> > :[:]:. 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.
> > > ======
> > >
> > > Thanks in advance for your help.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> >
> >
> >
> > --
> > Regards,
> > Tomo
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>