Project build error: 'groupId' with value 'IOCProj1(Basic)' does not match a valid id pattern

You cannot use parentheses inside a groupId or artifactId.

These fields are validated by the following regular expression: [A-Za-z0-9_\\-.]+ in Maven. Hence, you cannot have parentheses; the only valid characters are alphanumeric, underscore, dash and dot. You could rename your project to:

<groupId>IOCProj1_Basic</groupId>
<artifactId>IOCProj1_Basic</artifactId>

According DefaultModelValidator class 'artifactId' and 'groupId' have to match following regular expression

ID_REGEX = "[A-Za-z0-9_\-.]+" If you are intrested in other validations of maven pom file, looking into this class source code will be helpful. http://svn.apache.org/repos/asf/maven/maven-2/branches/maven-2.2.x/maven-project/src/main/java/org/apache/maven/project/validation/DefaultModelValidator.java

Tags:

Maven