10-20-2007 09:54 PM
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco.maven.plugins.test</groupId>
<artifactId>amp-packaging-test</artifactId>
<packaging>amp</packaging>
<name>Maven Alfresco AMP Packaging Type Test</name>
<version>1.0-0</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>maven-amp-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<dependencies>
<!– need to list these as a provided so that Maven doesn't download them
and include them in the AMP, they are provided by the Alfresco application
–>
<dependency>
<groupId>alfresco</groupId>
<artifactId>repository</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.0.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
10-22-2007 05:58 AM
10-23-2007 04:25 AM
10-23-2007 09:38 AM
Hi,
I'm already using maven in a big alfresco project and I created a project on the forge for accomplishing that task (actually with a POM very similar to yours).
Maybe you want to join and contribute to:
http://forge.alfresco.com/projects/m2alfresco/
Shall we merge this two projects? Considering also that:
1. At the moment I'm build with plain mvn war:war with an ad-hoc pom and overlaying my extension with the alfresco war (default behaviour for a war artifact with a war dependency)
2. we have a mvn assembly draft configuration to produce AMP like structure (it seems you address this step with you plugin)
3. I would like to write a maven-alfresco-plugin which basically wraps Module management tool to deploy extensions also to external wars (this can be an extension)
4. Write an archetype to generate extensions skeletons
The fact is:
I would like in the end to have alfresco itself modularized with maven (say different artifact per module, e.g. alfresco-repository and alfresco-webclient separata), and in this sense our effort is really important. But we need some validation from Alfresco if this is the way they also envision, in order to have a proper support for this approach (e.g. release of alfresco artifacts on public maven repos, because now i'm building with privately deployed artifacts).
I did not have time to look at the plugin code, but maybe it already covers a lot of what we need. Let join our efforts, as soon as I get permission from my customer, I'll post my results and we can merge it.
How do you see this?
04-07-2008 12:50 PM
08-05-2008 12:24 PM
08-13-2008 07:46 AM
08-13-2008 10:24 AM
08-14-2008 07:05 AM
12-05-2009 10:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.