How to install AEM components? - aem

I am just starting with Adobe Experience manager version 6.0 and wanted to install this:
https://github.com/Adobe-Consulting-Services/acs-aem-samples
I tried :
mvn clean install -PautoInstallPackage
But getting this error, any ideas anyone?
Another screenshot:
m2.conf:
main is org.apache.maven.cli.MavenCli from plexus.core
set maven.home default ${user.home}/m2
[plexus.core]
optionally ${maven.home}/lib/ext/*.jar
load ${maven.home}/lib/*.jar
load ${maven.home}/conf/logging

Related

Runtimeexception when installing an extension via composer in typo3

I got an error when i try to install extension(Bw Focuspoint Images) via composer in typo3.
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Please help.
Composer was already installed in my project. I want to install one extension to this project via composer. The steps i taken are,
login to my project by ssh
Then i give composer req blueways/bw-focuspoint-images
After that i got the error which was in image
I am getting this error
Package operations: 1 install, 0 updates, 0 removals
Installs: blueways/bw-focuspoint-images:v3.0.2
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
/public/typo3conf/ext/bw_focuspoint_images does not exist and could not be created.
Exception trace:
() at phar:///usr/bin/composer/src/Composer/Util/Filesystem.php:186
Composer\Util\Filesystem->ensureDirectoryExists() at phar:///usr/bin/composer/src/Composer/Downloader/DownloadManager.php:206
Composer\Downloader\DownloadManager->download() at phar:///usr/bin/composer/src/Composer/Installer/LibraryInstaller.php:197
Composer\Installer\LibraryInstaller->installCode() at phar:///usr/bin/composer/src/Composer/Installer/LibraryInstaller.php:101
Composer\Installer\LibraryInstaller->install() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:173
Composer\Installer\InstallationManager->install() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:160
Composer\Installer\InstallationManager->execute() at phar:///usr/bin/composer/src/Composer/Installer.php:611
Composer\Installer->doInstall() at phar:///usr/bin/composer/src/Composer/Installer.php:232
Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:248
Composer\Command\RequireCommand->doUpdate() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:205
Composer\Command\RequireCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:283
Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:113
Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:64
require() at /usr/bin/composer:24
require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
Thank you. The extension got installed but it displaying another error.
enter image description here
Thank you for the help. The solution for this issue is,
I created the directory for the extension through composer using
mkdir bw_focuspoint_images
Then I give the command to install that plugin
composer req blueways/bw-focuspoint-images
And it's successfully installed.

using Unity.Plastic.Newtonsoft.Json not found in Rider

I'm trying to use:
using Unity.Plastic.Newtonsoft.Json
public static List<Level> GetLevels()
{
var asset = Resources.Load<TextAsset>("levels.json".Replace(".json", ""));
return JsonConvert.DeserializeObject<List<Level>>(asset.text);
}
and JsonConvert is in red.
and Plastic is showing in red. It says cannot resolve symbol Plastic.
Any ideas?
EDIT: I did install Newtonsoft.Json version 13 as assembly. No luck.
EDIT: using Newtonsoft.Json; also red.
Ok after some digging:
Apparently updated unity project which wiped out the dependency that was added via package manager > add package from git URL
Unity forgot a documented change for this. So, the answer:
Package Manager Window > Add Package from GIT URL > com.unity.nuget.newtonsoft-json
And instead of using using Unity.Plastic.Newtonsoft.Json
use using Newtonsoft.Json;
NOTE: On an older project where this was added manually, Newtonsoft Json wasn't showing up in the package manager > Packages: In Project until I went to the Cog Wheel > Checked Show Dependencies.

Error in running a plugin in imageJ

I am using imageJ (Fiji) version: 2.0.0-rc-43/1.50e
I installed a IHC_Profiler (https://sourceforge.net/projects/ihcprofiler/)
And when I run it, it shows a console with this:
Compiling 1 file in
/var/folders/k2/kdrnsbws5gz8vrt83yjmlbdm0000gn/T/java744586229414007803
/var/folders/k2/kdrnsbws5gz8vrt83yjmlbdm0000gn/T/java744586229414007803/src/main/java/IHC_Profiler.java:10: cannot access java.lang.Object
bad class file:
ZipFileIndexFileObject[/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]
class file has wrong version 52.0, should be 50.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class IHC_Profiler implements PlugIn {
When I use imageJ 1.48 version, it is okay. I wonder if this problem can be solved?
You are running Fiji with Java 8, but without the Java-8 update site enabled.
The easiest solution is to download a fresh Fiji, which comes with the Java-8 update site enabled out of the box.
See this guide for details:
http://imagej.net/2016-05-10_-_ImageJ_HOWTO_-_Java_8,_Java_6,_Java_3D

PHP Fatal error: Class 'RemoteWebElement' not found in

I have a symfony project that run normal in command line:
php app/console server:run
But, I want to run inside PhpStorm. When I try to do this, it gives the fatal error:
PHP Fatal error: Class 'RemoteWebElement' not found in
I already tried to look the oficial documentation of the classe:
http://facebook.github.io/php-webdriver/classes/RemoteWebElement.html. But I didn't found information that culd help me.
I also added the compose dependency:
composer require facebook/webdriver
But had no effect!
=======================================
I'll explain step-step how to get this the bug (It will be very long!):
I have:
PHP 5.5.9
PhpStorm 10.0.3
composer 1.0-dev (7117a5775ffdcdfd31bbd52a138a6f9c65e7e3c2) 2016-02-03
So, create a new symfony project (current version 3.0) and add composer dependencies:
symfony new project
cd project
composer update
Then, open this project inside of phpstorm and I configure settings for to run the project:
Settings -> Languages & Frameworks -> PHP
"PHP language level": 5.5
"Interpreter": 5.5.9
Add through plus(+) the PHP folder:
/usr/share/php
Click 'OK'
Now, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10.
Will appear the bug:
PHP Fatal error: Class
'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in
Solve this by this way inside of PhpStorm:
Settings -> Languages & Frameworks -> PHP -> PHPUnit
Choose: "Use custom autoloader"
And, in the field "Path to script", informe the autoloader's address. For example:
/home/murilo/git/slu/app/autoload.php. Click 'OK'.
Again, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10
Will appear the bug:
PHP Fatal error: Class 'Doctrine\Tests\Common\Cache\CacheTest' not
found in
Solve this through this command inside the project folder:
composer require maslosoft/cachetest:dev-master -n --no-progress
For the last time, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10
Will appear the bug:
PHP Fatal error: Class 'RemoteWebElement' not found in
I'm at this bug.
Please, someone knows how I can overcome this bug? o.O
I struggled with the same exact issue as you have described. After breaking my head for most of the day with this problem, I found the issue.
When you execute the command php app/console server:run in command line, it sets up a server and runs the website. However, when you run the project in PHPStorm, it doesn't actually run it as a server but runs it as a PHPUnit. What you need to do is configure a PHP Web Application in PHPStorm and run that.
Check the image below where I have configured the website. When I run the Web Application, it will run by the url and it will show up in your browser.

How to add a plugin to eclipse via cookbook using chef-solo

I have chef-solo installed on ubuntu(12.04). I have been able to successfully install eclipse using the cookbook provided in the following site: https://github.com/geocent-cookbooks/eclipse.
Now i wish to add the pydev plugin to this using chef-solo. Can someone help me on how i can do this. Do i need a new cookbook (if yes then where can i find the cookbook) or is some editing required in the existing eclipse cookbook(if yes then what is it)?
I am new to chef. Please help
Thank you
cookbook delivers a method to install the eclipse plugins.
default ['Eclipse'] ['plugins'] - list of repositories and install plugins to Automatically With This eclipse deployment
for pydev:
"default_attributes": {
"eclipse": {
"plugins": [{"http://pydev.org/updates" => "org.python.pydev.feature.feature.group"}]
}
}
}
check this issues (certificate error)
http://sourceforge.net/p/pydev/bugs/1244/
I guess installing the certificate should work correctly.
http://pydev.org/manual_101_install.html#pydev-certificate
you would have to adapt this code to automatically add the certificate.
https://gist.github.com/lusis/2203083
Another option is to adapt the cookbook for install liclipse (eclipse + PyDev)
http://brainwy.github.io/liclipse/
Sorry for my English.
Best regards
I ran the eclipse cookbook in a vm with ubuntu 12.04 and install pydev without problems, attached to the chef-solo json file.
{
"java": {
"jdk_version": "7"
},
"eclipse": {
"plugins": [ {"http://pydev.org/updates": "org.python.pydev.feature.feature.group"} ]
},
"run_list": [
"recipe[eclipse::default]"
]
}
If it does not work, attached the json file and debug log of chef run
Best Regards