Projekt-build-Fehler: 'groupId' mit dem Wert 'IOCProj1(Basic)" nicht mit einer gültigen id-Muster
Ich habe ein Problem mit meinem POM:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>IOCProj1(Basic)</groupId>
<artifactId>IOCProj1(Basic)</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.2.5.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Stapel: Dies ist der Fehler der Anzeige in der Konsole
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'groupId' with value 'IOCProj1(Basic)' does not match a valid id pattern. @ line 3, column 12
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project IOCProj1(Basic):com.nt.cfgs:0.0.1-SNAPSHOT (C:\Users\shrut\workspace\IOCProj1(Basic)\pom.xml) has 1 error
[ERROR] 'groupId' with value 'IOCProj1(Basic)' does not match a valid id pattern. @ line 3, column 12
[ERROR]
`enter code here`[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Du musst angemeldet sein, um einen Kommentar abzugeben.
Können Sie Klammern verwenden, innerhalb eines
groupId
oderartifactId
.Diese Felder werden validiert, indem Sie den folgenden regulären Ausdruck:
[A-Za-z0-9_\\-.]+
in Maven. Daher können Sie nicht haben, Klammern; nur gültige Zeichen sind Buchstaben-und Ziffern, Unterstrich, Bindestrich und Punkt. Könnten Sie benennen Sie Ihr Projekt an:Laut DefaultModelValidator Klasse "artifactId" und "groupId' entsprechen folgenden regulären Ausdruck
ID_REGEX = "[A-Za-z0-9_\-.]+"
Wenn Sie intrested in anderen Validierungen der maven-pom-Datei, suchen in dieser Klasse-source-code hilfreich sein wird.
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
--- während der Erstellung der Anwendung sollte nicht Raum geben, und darüber hinaus Projekt-name und Artefakt-id sollte gleich