Maven Error List, maven list
1. Compilation Error
Qcadoo-maven-plugin>Mvn clean install
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Cause: the JAVA_HOME configuration is incorrect and the jre main directory is not matched. Instead, it should be configured as the jdk main directory.
Solution: Enter "jdk main directory" for "My Computer"-"property"-"Advanced System settings"-"environment variable"-"system variable"-"JAVA_HOME"
2. The jar package is missing.
How to locate the problem: the first or second line of ERROR
[ERROR] can't determine annotations of missing type javax. persistence. Entity
Unable to determine the missing annotation type javax. persistence. Entity search javax. persistence
ERROR] The type javax. transaction. TransactionManager cannot be resolved. It is indirectly referenced from required. class files UnscaledValueValidator. java (no source information available)
Javax. transaction. TransactionManager cannot be processed. It is indirectly referenced by the UnscaledValueValidator. java class file (the source information cannot be obtained)
The type org. codehaus. jackson. JsonParser cannot be resolved. It is indirectly referenced from required. class files.../JsonMapperHttpMessageConverter. java: 67
Org. codehaus. jackson. JsonParser cannot be processed. It is indirectly referenced from the required. class file.../JsonMapperHttpMessageConverter. java's 67th line
Method: search for the groupId in the http://mvnrepository.com/(usually the package name), and then select a version
<Dependency> <groupId> javax. persistence </groupId> <artifactId> persistence-api </artifactId> <version> 1.0.2 </version> </dependency>2.2. javax. transaction
<dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.1</version></dependency>
2.3. org. codehaus. jackson
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.13</version></dependency>
2.4, org. powermock
<dependency> <groupId>org.powermock</groupId> <artifactId>powermock-module-junit4</artifactId> <version>1.6.4</version></dependency>
3. The directory is incorrect when executing the maven command.
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D: \ Server \ GitRepository \ qcadoomes ). please verify you invoked Maven from the correct directory. -> [Help 1]
The target should be a project path you must specify for executing maven, but there is no POM file in the directory you specified. D: \ Server \ GitRepository \ qcadoomes check that you have executed the maven command in the correct directory.
The correct path is D: \ Server \ GitRepository \ qcadoomes \
3. mvn install system resources are insufficient
java.lang.OutOfMemoryError: PermGen space
What's going on? Old man's 8 GB memory really cannot even compile various projects ??? Of course not.
PermGen space stands for Permanent Generation space, which refers to the Permanent storage area of the memory OutOfMemoryError: PermGen space is actually out of memory, and the solution must be to increase the memory. This part is used to store Class and Meta information. When the Class is loaded, it is placed in the PermGen space area, which is different from the Heap area where the Instance is stored, GC (Garbage Collection) does not clean up the PermGen space during the main program running period. Therefore, if your APP loads many classes, the PermGen space error may occur. During mvn install, too many classes are loaded into the PermGen space area, and this area is never cleaned up. If you load more classes, the PermGen space area will overflow ·
Solution:: Set MAVEN_OPTS to-Xmx512m in the environment variable.-XX: MaxPermSize = 256 m. When mvn is installed again, the memory will not overflow.
My computer-properties-advanced-Environment Variable-system variable Related cause: org. springframework. beans. factory. cannotLoadBeanClassException: Error loading class [org. codehaus. jackson. map. objectMapper] for bean with name 'jacksonobjectmapper 'defined in URL [jar: file:/E:/qcadoo-mes-community-bin-1.2.0/webapps/ROOT/WEB-INF/lib/qcadoo-view-1.2.0.jar! /Qcadoo-web-context.xml]: problem with class file or dependent class; nested exception is java. lang. NoClassDefFoundError: org/codehaus/jackson/ObjectCodec
Cause: the json jar package is missing
Solution: Configure Dependencies
1. D: \ Server \ qcadooSource \ DownLoadZIP \ mes-1.2.0 \ pom. xml 120 line plus
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version></dependency>
2. Re-mvn clean install
3. Copy all contents under D: \ Server \ qcadooSource \ DownLoadZIP \ mes-1.2.0 \ mes-application \ target \ mes-application-1.2.0 to tomcat/ROOT/
4. start tomcat again