在ext插件

时间:2015-06-13 09:24:41

标签: maven liferay liferay-6

我有ext-plugin,我想覆盖这个文件:portal-impl \ src \ com \ liferay \ portlet \ dynamicdatamapping \ dependencies \ ddm \ documentlibrary.ftl。在maven构建之后,此文件不包含在我的porta-impl-ext.jar中。

在我的portal-impl-ext的pom.xml中,我有这段代码:

<build>
    <plugins>
        <plugin>
            <groupId>com.liferay.maven.plugins</groupId>
            <artifactId>liferay-maven-plugin</artifactId>
            <version>${liferay.maven.plugin.version}</version>
            <configuration>
                <apiBaseDir>${basedir}/../my-ext-service</apiBaseDir>
                <implBaseDir>${basedir}</implBaseDir>
                <sqlDir>${basedir}/../my-ext/src/main/webapp/WEB-INF/sql</sqlDir>
                <webappBaseDir>${basedir}/../my-ext-web</webappBaseDir>
            </configuration>
        </plugin>
    </plugins>
</build>

在我的portal-ext的pom.xml中,我有这个:

<build>
    <plugins>
        <plugin>
            <groupId>com.liferay.maven.plugins</groupId>
            <artifactId>liferay-maven-plugin</artifactId>
            <version>${liferay.maven.plugin.version}</version>
            <configuration>
                <autoDeployDir>${liferay.auto.deploy.dir}</autoDeployDir>
                <appServerDeployDir>${liferay.app.server.deploy.dir}</appServerDeployDir>
                <appServerLibGlobalDir>${liferay.app.server.lib.global.dir}</appServerLibGlobalDir>
                <appServerPortalDir>${liferay.app.server.portal.dir}</appServerPortalDir>
                <liferayVersion>${liferay.version}</liferayVersion>
                <pluginName>my-ext</pluginName>
                <pluginType>ext</pluginType>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <encoding>UTF-8</encoding>
                <source>1.6</source>
                <target>1.6</target>
                <includes>
                    <include>**/*.*</include>
                </includes>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <encoding>UTF-8</encoding>
            </configuration>
        </plugin>
    </plugins>
</build>

我尝试更改包含部分,但它没有用。可以包含这个文件吗?

提前感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

解决方案是将文件从源文件夹移动到资源文件夹。