‘artifactId’ with value ‘hello world’ does not match a valid

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.cognizant.app:hello world:1.1 (D:\My hello world maven
\hello world\pom.xml) has 1 error
[ERROR]     'artifactId' with value 'hello world' does not match a valid id patt
ern. @ line 5, column 15
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException

 Solution:

Dont give the artifact id with spaces.

Eg:

hello world – invalid artifact id.

helloworld – valid artifact id.

 

Thanks for reading this post……….!!!

 

1,012 total views, 2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *