question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to extend datalist when using the repo-amp archetype

See original GitHub issue

I’m testing the 2.2.0 version of the SDK, and this project has some custom datalist types. The problem is how to import the datalist content model if the content model has been moved to share-services?

What exactly should I use as a dependency?

<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>alfresco-share-services</artifactId>
  <version>5.1.g</version>
  <type>amp</type>
</dependency>

or

<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>alfresco-share-services</artifactId>
  <version>5.1.g</version>
  <classifier>classes</classifier>
</dependency>

What is the right way of doing this? I’ve tried both, but none of them worked.

The alfresco-platform version for this project is the 5.2.a-EA.

Some of the error messages when I execute the project:

Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06060001 Could not import bootstrap model 'alfresco/module/custom-core-repo/model/content-model.xml'

Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06060000 Failed to compile model 'custom:customcontrol'

Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/datalist/1.0 cannot be imported as it is not defined (with prefix dl

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
OpenPjcommented, Apr 11, 2017

I need to extend the repository with one webscript very similar to the existing one that is in the alfresco-share-services AMP.

I have to take a look into the Java code and probably I’ll reuse some of the existing artifacts.

I prefer to use the following approach:

<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>alfresco-share-services</artifactId>
  <version>5.1.g</version>
  <classifier>classes</classifier>
</dependency>
0reactions
douglascrpcommented, Feb 26, 2019

I need to extend the repository with one webscript very similar to the existing one that is in the alfresco-share-services AMP.

I have to take a look into the Java code and probably I’ll reuse some of the existing artifacts.

I prefer to use the following approach:

<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>alfresco-share-services</artifactId>
  <version>5.1.g</version>
  <classifier>classes</classifier>
</dependency>

This is the solution I am using right now… using the classes classifier does the trick, even with the new 4.0 version

Read more comments on GitHub >

github_iconTop Results From Across the Web

<datalist>: The HTML Data List element - MDN Web Docs
To bind the <datalist> element to the control, we give it a unique identifier in the id attribute, and then add the list...
Read more >
datalist option width smaller than input width when px more ...
Hi all I'm using flask WTForm form ...
Read more >
Alfresco One Developer Guide | PDF | Computer File | Metadata
This task shows how you can use the Repo AMP archetype of the Alfresco SDK to generate a repository extension module containing a...
Read more >
(PDF) Alfresco Content Services 5.2 Developer Guide - activiti ...
Therefore, extension points aredeveloped using JVM-based scripting languages ... The Alfresco Repository (Repo) AMP Archetype generates a sample project for ...
Read more >
2m-subdomains.txt - Index of /
... win-client mathjax explorer extension CHANGELOG 6 angular dashboard train ... dubbo-cluster Static gpxe adempiere ux purchase baidu archetypes war-core ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found