Spring is just a dependency.
We use Spring extensively to build both webapps and batch jobs. No
special plug-in or assembly required for Spring.
Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/
Unless you are building something that no one else has ever heard of,
you are likely to find that hundreds of people have already done it.
Try not to reinvent a square wheel.
Ron
On 01/05/2011 4:11 PM, CassUser CassUser wrote:
One other question.
Anyone know whats the preferred way to reference spring files? the files in
src/main/resources in other sibling modules to be packaged for deployment...
On Sun, May 1, 2011 at 1:07 PM, CassUser CassUser<[email protected]>wrote:
Yeah. the distribution module actually is an RPM module, and we use the
copy dependencies plugin to ref modules within the project. The
dependencies are then mapped to locations in the rpm plugin like:
<mapping>
<directory>${install.location}/libraries</directory>
<sources>
<source>
<location>${project.build.directory}/dependency</location>
</source>
</sources>
</mapping>
From one of those dependent modules I would like to reference a archive
file that it creates (like the jars the dependency plugin grabs). Would the
assembly plugin work in this use case (example?)
dependency plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
On Sun, May 1, 2011 at 12:43 PM, Benson Margulies<[email protected]>wrote:
Generally people use the assembly plugin in a 'distribution' module to
rearrange things into a distribution hierarchy. Is that what you have
in mind here?
On Sun, May 1, 2011 at 3:40 PM, CassUser CassUser<[email protected]>
wrote:
Hey all,
I have a multimodule maven project. One of the modules creates a
archive
file. It's packaging is jar, but uses another plugin to create a
different
type of archive. I have a deployment modules which needs to move that
archive into a conf folder. How can i achieve this?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]