问题标签 [alfresco-maven]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
backup - 我应该在部署 AMP 时进行备份吗?
我想对共享层进行一些自定义。
为此,我准备了相关的 AMP 文件,其中覆盖了一些当前属性。我知道如何以另一种方式做到这一点,但我对这种方式很感兴趣。
我应该在部署 AMP 之前进行任何备份吗?
alfresco - Is there a way to control the sorting order in the user's search interface?
I'm developing AMP file for the Share tier and I want to override the search order. Currently, the sorting performed by fullName
. In my case I need sorting by lastName
.
In people-finder.js
I found this line:
I think, that I should override sortBy
parameter from fullName
to lastName
. I have done some experiments locally and saw that changes in those values make affect to the sorting.
How can I do it?
As Sanjay Patel noted, I created the following path and place relevant JavaScript files there:
I tried this way too - share\src\main\amp\web\components\people-finder\
But now on the embedded local Tomcat all works fine and I can see that JavaScript file was overridden:
But on the production server I get the following:
What I was tried to do:
- delete
alfresco
andshare
directories fromwebapps
; - clear the browser's cache;
- uninstall AMP from Share and install again. Check, that it present in Share;
- perform a full reindex with Solr
Nothing helps.. All of that not helped to override the people-finder.js
What could be the reason?
alfresco - How to override client-side JavaScript in Share tier?
My question was started here: Is there a way to control the sorting order in the user's search interface?
I have found that I can to control the sort order by using people-finder.js
This script included in the FreeMarker template people-finder.get.html.ftl
:
To determine the required functionality I need to override this script and I "developed" my own - let's say, people-finder-ext.js
As I understand it, with this code I can achieve this:
In my AMP- extension I placed people-finder-ext.js
here:
And modified FreeMarker template people-finder.get.html.ftl
I placed here:
Then I run my project on the embedded Tomcat:
So, I see that the sorting is not works the way I need.
I watched the network traffic between Share tier and the Alfresco/Repo tier and noticed, that my script people-finder-ext.js
is not loaded.
After build I noticed, that my script is not present in \target\amp-war\
but only in \target\amp\
.
What could be the reason?
alfresco - 部署 AMP 后客户端更改不适用
我对people-finder.js
脚本进行了更改以更改排序顺序,并且在本地一切正常。为了覆盖该功能,我使用了以下目录结构和基于 Maven 的 SDK 来生成 AMP 文件:
正如我所料,本地一切正常,我可以看到我的变化:
接下来,我在远程服务器上部署 AMP 文件,如下所述:安装 AMP 文件
在这里我看不到我的变化:
目录/opt/alfresco-community/tomcat/webapps/share/components/people-finder
还包含没有更改的脚本。
因此,排序不能按我的需要工作。
附加信息:我解压了 AMP 文件,但没有找到那里的分支/web/components/
……当然,people-finder.js
那里people-finder-min.js
也不存在。
可能是什么原因?
alfresco - 自动应用共享扩展模块 Alfresco(无需明确选择和应用)
每次部署后,我必须在 Alfresco 共享 URL(http://localhost:8081/share/page/modules/deploy)中明确应用共享扩展模块。有什么方法可以按要求应用这些模块(不久之后,如我们部署放大器)。
maven - 缺少 Maven Surefire 插件?
所以我有一个问题,我正在关注教程在 Alfresco 中使用自定义内容类型,但是当我尝试安装程序时遇到了一个 maven 问题。它告诉我有关 maven surefire 插件的问题,如下所示:
问题是我的项目中没有这样的目录,如您在 . 那么我在哪里可以找到它或使用 maven 生成它?
谢谢你的帮助!
java - 空间不够,maven
所以我正在做这个教程,但是当我尝试运行我的 Alfresco maven repo 时,它告诉我:
所以我在 pom.xml 中添加了这些行:
但它没有用。
此外,当我尝试 run.bat 时,它给了我错误。但是当我尝试 mvn -version 或任何 maven 命令时,它给了我同样的错误。如果我想执行 mvn 命令,我必须重新启动控制台。
PS:我的 mvn -version 给了我这个,所以我认为没关系?
如果有人知道我应该做什么..提前谢谢!
java - Alfresco solr 跟踪失败
所以就我的项目的年表而言:我使用mvn archetype:generate -Dfilter=org.alfresco:
(Alfresco Platform JAR 原型)生成了一个 alfresco maven 存储库,然后我在 repo-test/src/main/resources/alfresco/module/repo-test/ 中添加了一个自定义内容模型 XML 文件model/scModel.xml 包含在我注册新模型后您可以在此处找到的内容,方法是在以下代码中添加以下行repo-test/src/main/resources/alfresco/module/repo-test/context/bootstrap-context.xml
:
安装很顺利。但是当我尝试启动 run.sh 时,它会卡住重复这个:
任何人都知道如何解决这个问题?我也尝试在不修改任何内容的情况下启动它(我创建了另一个项目),但经过一晚的编译后出现错误:
PS:我在 Raspbian 32 位...