How to install Javascript Console to Alfresco Maven All-in-One Archtype
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 10:58 PM
Hi Guys,
I have been trying to add Javascript Console to Alfresco Maven All-in-One Archetype but did not have much success so far.
I have tried using the dependency/overlay method but it did not work. My pom.xml config is as follows;
pom.xml in repo folder
<dependencies>
…
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
…
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<type>amp</type>
</overlay>
pom.xml in share folder
<dependencies>
…
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
…
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<type>amp</type>
</overlay>
</overlays>
Any help much appreciated.
I have been trying to add Javascript Console to Alfresco Maven All-in-One Archetype but did not have much success so far.
I have tried using the dependency/overlay method but it did not work. My pom.xml config is as follows;
pom.xml in repo folder
<dependencies>
…
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
…
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<type>amp</type>
</overlay>
pom.xml in share folder
<dependencies>
…
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
…
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<type>amp</type>
</overlay>
</overlays>
Any help much appreciated.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2015 05:50 PM
In which projects did you include those dependencies.
The right ones are <b>repo</b> and <b>share</b>, not repo-amp, share-amp, repo-runner or share-runner.
Another important step to do is to source code from https://github.com/share-extras/js-console and execute mvn install in order to have the amp files available on your local maven repository.
This is how I did it http://douglascrp.blogspot.com.br/2015/05/how-to-include-custom-amp-as-dependency.html
If you grab the source code now, you can update the dependencies to 1.0.
The right ones are <b>repo</b> and <b>share</b>, not repo-amp, share-amp, repo-runner or share-runner.
Another important step to do is to source code from https://github.com/share-extras/js-console and execute mvn install in order to have the amp files available on your local maven repository.
This is how I did it http://douglascrp.blogspot.com.br/2015/05/how-to-include-custom-amp-as-dependency.html
If you grab the source code now, you can update the dependencies to 1.0.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2015 10:40 AM
Douglas,
I hope that the answer to this isn't as complicated as I'm afraid the questions is, but here goes:
Some time ago, someone, I think it was you, pointed me at an interesting article about creating a "Demo" version of Alfresco, or at least, customizing parts of Alfresco for Demo purposes.
I am trying to create an AMP that will contain all of the customizations that we want to make to our system, such as logo and names and some wording.
I was also pointed at Jeff Potts' article on getting started with Maven and the SDK.
Unfortunately, I have been finding that following that article puts me into Alfresco 5, rather than the 4.2.f that I need.
Going back to the documentation, I did find a similar article for 4.2.f, which I have been much more successful with.
However, when I copied the changes that were in the Demo article into the SDK source tree for Share, I see no changes when I do the "localhost:8080/share" that the SDK presents.
Am I heading in the wrong direction, and the Demo article is also for Alfresco 5, or do I need to build a "real" WAR file using the MMT tool and "-force," or something else?
Thank you,
Brian
P.S. Incidentally, I have been wondering this for a while. At the bottom of your message, you request that we give you a point. How?
B
I hope that the answer to this isn't as complicated as I'm afraid the questions is, but here goes:
Some time ago, someone, I think it was you, pointed me at an interesting article about creating a "Demo" version of Alfresco, or at least, customizing parts of Alfresco for Demo purposes.
I am trying to create an AMP that will contain all of the customizations that we want to make to our system, such as logo and names and some wording.
I was also pointed at Jeff Potts' article on getting started with Maven and the SDK.
Unfortunately, I have been finding that following that article puts me into Alfresco 5, rather than the 4.2.f that I need.
Going back to the documentation, I did find a similar article for 4.2.f, which I have been much more successful with.
However, when I copied the changes that were in the Demo article into the SDK source tree for Share, I see no changes when I do the "localhost:8080/share" that the SDK presents.
Am I heading in the wrong direction, and the Demo article is also for Alfresco 5, or do I need to build a "real" WAR file using the MMT tool and "-force," or something else?
Thank you,
Brian
P.S. Incidentally, I have been wondering this for a while. At the bottom of your message, you request that we give you a point. How?
B
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2015 07:50 AM
