11-01-2022 03:24 AM
Hi Team,
I want to use TaskService for one of operation, but not able to import org.nuxeo.ecm.platform.task package and as a result TaskService also not found.
Which maven dependency I need to include to solve this problem ?
Appreciating your help. Thank you.
Note*: we are using Nuxeo LTS 2021.1.19 version.
Regards, Vinit Shah
11-01-2022 04:29 AM
I hope there is some better way of doing it, or better tooling, because I also struggle with this and it makes the development tedious. For now what I am doing is:
Note: You need the complete sources including the addons. Also I am doing this for LTS2019 but the process should be the same.
./nuxeo-features/nuxeo-platform-task/nuxeo-platform-task-api/src/main/java/org/nuxeo/ecm/platform/task/TaskService.java
pom.xml
i.e. ./nuxeo-features/nuxeo-platform-task/nuxeo-platform-task-api/pom.xml
org.nuxeo.ecm.platform
and the artificatId (not the parent one) nuxeo-platform-task-api
pom.xml
<dependency>
<groupId>org.nuxeo.ecm.platform</groupId>
<artifactId>nuxeo-platform-task-api</artifactId>
</dependency>
If you specifiy nuxeo (e.g. nuxeo-addons-parent
) as your parent you should not need a version tag (e.g. <version>10.10</version>
).
But: More often this is not enough and you keep doing these steps again and again for different missing dependencies. Sometimes there is a parent artificat that is more appropirate to use instead of listing all the single dependencies.
11-01-2022 05:56 AM
Thanks [Konrad Krenzlin](https
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.