mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-19 17:15:24 +00:00
-- added site support
-- made dependent on parent project git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@20 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
parent
17256b0e6b
commit
0fd6c401d3
@ -36,12 +36,5 @@
|
|||||||
<version>2.0-alpha-3</version>
|
<version>2.0-alpha-3</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
|
||||||
<version>2.0-alpha-3</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
31
maven-alfresco-amp-archetype/src/site/apt/index.apt.vm
Normal file
31
maven-alfresco-amp-archetype/src/site/apt/index.apt.vm
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
-----
|
||||||
|
Maven Alfresco Extension Archetype
|
||||||
|
-----
|
||||||
|
Sourcesense
|
||||||
|
-----
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Welcome to the Maven Alfresco Extension Archetype home
|
||||||
|
|
||||||
|
You've reached the Sourcesense ({{ ${site_pom_url} }}) Maven Alfresco AMP archetype home page (version: ${site_pom_version})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
|
||||||
|
${site_pom_description}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Quick Start (maven2)
|
||||||
|
|
||||||
|
For a quick start you can a maven alfresco AMP project created by just running <<(maven 2.0.6+ required)>>:
|
||||||
|
|
||||||
|
--------------------------------------------
|
||||||
|
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=${site_pom_groupId} -DarchetypeVersion=${site_pom_version} \
|
||||||
|
-DarchetypeArtifactId=${site_pom_artifactId} \
|
||||||
|
-DgroupId=mycompany.com -DartifactId=my-test-amp -Dversion=0.1-SNAPSHOT \
|
||||||
|
-DremoteRepositories=http://repository.sourcesense.com/maven2 \
|
||||||
|
-DpomRemoteRepositories=http://repository.sourcesense.com/maven2
|
||||||
|
--------------------------------------------
|
46
maven-alfresco-amp-archetype/src/site/fml/faq.fml
Normal file
46
maven-alfresco-amp-archetype/src/site/fml/faq.fml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<faqs id="Maven Alfresco Extension FAQ">
|
||||||
|
<part id="General">
|
||||||
|
<title>General</title>
|
||||||
|
<faq id="build">
|
||||||
|
<question>How do I build an AMP?</question>
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
Just Run <verbatim> mvn clean package </verbatim>
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</faq>
|
||||||
|
<faq id="test">
|
||||||
|
<question>How do I test the AMP?</question>
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
You can run Jetty embedded in maven by typing
|
||||||
|
<verbatim>mvn clean integration-test -P webapp</verbatim>
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</faq>
|
||||||
|
<faq id="transitive">
|
||||||
|
<question>Are AMP transitive dependencies supported?</question>
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
Yes, they are, both from AMP and WAR packaging projects.
|
||||||
|
For AMP projects this will turn out into having a final built AMP
|
||||||
|
which contains all the chain of AMPs the current AMP is depending upon.
|
||||||
|
For WAR projects all AMPs will be unpacked in the proper position
|
||||||
|
same as the MMT would do.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</faq>
|
||||||
|
<faq id="mmt">
|
||||||
|
<question>Is MMT needed with maven?</question>
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
No, it is not. The whole point of it is getting rid of the annoying
|
||||||
|
non integrated in the lifecycle MMT run.
|
||||||
|
We created the <a href="https://forge.alfresco.com/projects/maven4alfresco" target="_blank" >maven-amp-plugin</a> for
|
||||||
|
managing and processing AMP lifecycle, making MMT obsolete.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</faq>
|
||||||
|
</part>
|
||||||
|
</faqs>
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
33
maven-alfresco-amp-archetype/src/site/site.xml
Normal file
33
maven-alfresco-amp-archetype/src/site/site.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<project>
|
||||||
|
<skin>
|
||||||
|
<groupId>org.apache.maven.skins</groupId>
|
||||||
|
<artifactId>maven-stylus-skin</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</skin>
|
||||||
|
<poweredBy>
|
||||||
|
<logo name="Maven" href="http://maven.apache.org" img="http://maven.apache.org/images/logos/maven-feather.png"/>
|
||||||
|
<logo name="Alfresco - Open source ECM" img="http://alfresco.com/assets/images/icons/powered_by_alfresco.gif" href="http://www.sourcesense.com" />
|
||||||
|
</poweredBy>
|
||||||
|
<publishDate position="navigation-bottom" format="MM-dd-yy"/>
|
||||||
|
<bannerLeft>
|
||||||
|
<name>Maven alfresco AMP archetype - v. ${project.version}</name>
|
||||||
|
<href>${site_site_url}</href>
|
||||||
|
<src>images/logo_noclaim.png</src>
|
||||||
|
</bannerLeft>
|
||||||
|
<body>
|
||||||
|
<links>
|
||||||
|
<item name="Maven" href="http://maven.apache.org/"/>
|
||||||
|
<item name="Apache" href="http://www.apache.org/"/>
|
||||||
|
</links>
|
||||||
|
|
||||||
|
<menu name="M2 Alfresco AMP Archetype">
|
||||||
|
<item name="Introduction" href="/index.html"/>
|
||||||
|
<item name="README" href="/readme.html"/>
|
||||||
|
<item name="How to" href="http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven"/>
|
||||||
|
<item name="Roadmap" href="http://forge.alfresco.com/docman/view.php/90/1645/ROADMAP.txt"/>
|
||||||
|
<item name="FAQ" href="faq.html"/>
|
||||||
|
</menu>
|
||||||
|
<menu ref="reports"/>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user