尝试在liferay中部署我的war文件时出现一个奇怪的错误

РЅРѕСЏ 26, 2015 2:57:08 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\dev\liferay\liferay-portal-6.2-ce-ga4\tomcat-7.0.42\webapps\site-hook
РЅРѕСЏ 26, 2015 2:57:10 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath


这就是我的日志。我在使用liferay 6.2的tomcat 7.042
当我用Maven构建我的钩子时,除了这一行外,还可以

[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')


这是我的web.xml

<?xml version="1.0"?>

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">




并在pom.xml中构建部分

<build>
    <plugins>
        <plugin>
            <groupId>com.liferay.maven.plugins</groupId>
            <artifactId>liferay-maven-plugin</artifactId>
            <configuration>
                <pluginType>hook</pluginType>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
        </plugin>
        <plugin>
            <artifactId>maven-resources-plugin</artifactId>
        </plugin>
    </plugins>
</build>


这个问题是在一个小时前出现的,但是最近一切都很好。你能帮助我吗?

最佳答案

尝试在pom.xml中添加“ maven-war-plugin” 2.6版

08-25 22:25
查看更多