Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 在ext插件中包含ftl文件_Maven_Liferay_Liferay 6 - Fatal编程技术网

Maven 在ext插件中包含ftl文件

Maven 在ext插件中包含ftl文件,maven,liferay,liferay-6,Maven,Liferay,Liferay 6,我有一个ext插件,我想覆盖这个文件:portal impl\src\com\liferay\portlet\dynamicatamapping\dependencies\ddm\documentlibrary.ftl。在maven构建之后,这个文件不包括在我的porta-impl-ext.jar中 在我的门户impl ext的pom.xml中,我有以下代码: <build> <plugins> <plugin>

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

在我的门户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>

com.liferay.maven.plugins
liferay maven插件
${liferay.maven.plugin.version}
${basedir}/./我的外部服务
${basedir}
${basedir}/./my-ext/src/main/webapp/WEB-INF/sql
${basedir}/./my ext web
在我的门户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>

com.liferay.maven.plugins
liferay maven插件
${liferay.maven.plugin.version}
${liferay.auto.deploy.dir}
${liferay.app.server.deploy.dir}
${liferay.app.server.lib.global.dir}
${liferay.app.server.portal.dir}
${liferay.version}
我的分机
提取
maven编译器插件
2.5
UTF-8
1.6
1.6
**/*.*
maven资源插件
2.5
UTF-8
我试图更改包含部分,但没有成功。是否可以包含此文件


提前感谢您的帮助

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