新建liferay plugin project遇到问题:
(1)Could not resolve archetype com.liferay.maven.archetypes
!ENTRY com.liferay.ide.project.core 4 0 2016-11-07 10:59:29.182
!MESSAGE Error creating Liferay plugin project.!STACK 1
org.eclipse.core.runtime.CoreException: Could not resolve archetype com.liferay.maven.archetypes:liferay-portlet-archetype:6.2.1 from any of the configured repositories.
明显是: com.liferay.maven.archetypes:
中liferay-portlet-archetype:6.2.1 遇到了问题:
解决方案:
在http://mavensearch.io/repo/com.liferay.maven.archetypes/liferay-portlet-archetype/6.2.1上找到对应的jar包,和pom直接放到。之后直接在eclipse新建项目即可。
或者直接无通过代理联网后,直接在eclipse新建portlet项目即可,eclipse会自动下载所需的jar包
(2)Plugin execution not covered by lifecycle configuration
pom中<build> <plugins>标签之间加上一个<pluginManagement>标签
<build>
<pluginManagement>
<plugins>
<plugin>
</plugin>
</plugins>
</pluginManagement>
</build>
(3)Failed to read artifact descriptor for xxx:jar
在eclipse的pom.xml点击后,右击查看提示,按提示新建一个服务器即可。