ITeye博客

Maven eclipse 链接外部资源

jiming · 2012-02-20 05:41 · java · 企业架构 · Markdown

有的时候开发项目的过程中需要编辑一些资源,但是这些资源又不是跟项目紧耦合,所以它们不在项目目录下。可以使用如下方式让 maven 管理。

 

 

 

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-eclipse-plugin</artifactId>

                <configuration>

                    <linkedResources>

                        <linkedResource>

                            <!--name>src/main/scripts</name-->

                            <name>template_scripts</name>

                            <type>2</type>

                            <location>d:/jiming/raw</location>

                        </linkedResource>

                    </linkedResources>

                </configuration>

            </plugin>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。