cancel
Showing results for 
Search instead for 
Did you mean: 

AMP

amitabhandari1
Champ in-the-making
Champ in-the-making
Has anyone  deployed any share project with the use of AMP.
I am trying to do that but everything goes intp tomcat/webapps/share/WEB-INF/classes/alfresco/extension. And Client side js just doesnt deployed.
Below is the mapping I am using  in file-mapping.properties

include.default=true
/config=/WEB-INF/classes/alfresco/extension
/web/components=/components
/web/modules=/modules
/lib=/WEB-INF/lib
#
# Custom mappings.  If 'include.default' is false, then this is the complete set.
#
Any help is appreciated.
Thanks,
5 REPLIES 5

loftux
Star Contributor
Star Contributor
This is what I use
include.default=true

#
# Custom mappings.  If 'include.default' is false, then this is the complete set.
#
/WEB-INF=/WEB-INF
/web=/
The build directory then has
/web/ – with all the stuff that goes to root like components client side web script
/config/ with allt the stuff that extends surf, like config/alfresco/site-data, config/alfresco/site-webscripts and so on.

amitabhandari1
Champ in-the-making
Champ in-the-making
This is also not working for me.
I am working on Alfresco 343 version .

Let me know if u have done anything else also
Thanks,

loftux
Star Contributor
Star Contributor
What is not working for you? Please tell, else it will be hard to help you.
I just have
    <target name="package-amp" depends="mkdirs, build-copy, minimize-javascript" description="Package the Module" >
        <zip destfile="${alfresco.amp.file}" >
            <fileset dir="${project.dir}/build/alfresco" />
        </zip>
        <zip destfile="${share.amp.file}" >
            <fileset dir="${project.dir}/build/share" />
        </zip>
    </target>
and the structure previously mentioned. Do you include the file-mapping.properties file? Do you have the module.properties file included?

amitabhandari1
Champ in-the-making
Champ in-the-making
Thanks a lot.
It is working now. file-mapping.properties and module.properties was included but I was not changing the version in module.properties thus changes were not reflecting.

Thanks once again.

hemantkpn
Champ in-the-making
Champ in-the-making
Hi,

I am kind of facing the same error but at the time of amp installation into Alfresco.war file.
Actually the below section of ant script is not working:
    <target name="update-war" depends="package-amp" description="Update the WAR file.  Set -Dwar.file=…" >
        <echo>Installing SDK Demo AMP into WAR</echo>
        <java dir="." fork="true" classname="org.alfresco.repo.module.tool.ModuleManagementTool">
            <classpath refid="class.path" />
            <arg line="install ${amp.file} ${war.file} -force -verbose"/>
        </java>
    </target>

When I execute update-war target, getting following exception:
     [java] java.lang.NoClassDefFoundError: de/schlichtherle/io/ZipDetector
     [java] Exception in thread "main"

However, if I use java command on command prompt, am able to update a war file.
Any Idea, why this is not working using ant file?