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

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

Related

After installation lombok eclipse stopped working

I have started to learn Spring with book Spring in action. In chapter 2 author uses Lombok. I wrote annotation #Data, #RequiredArgsConstructor but it doesn't work. Then I tried download lombok from official site and install with terminal. When I installed lombok, my eclipse stopped working. I get a error JVM terminated. Exit code=1. I don't understand why.Please help me. My linux system - fedora workstation 32, ide - eclipse. My eclipse.ini:
-startup<br/>
plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar <br/>
--launcher.library <br/>
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1200.v20200508-1552<br/>
-product<br/>
org.eclipse.epp.package.java.product<br/>
-showsplash<br/>
org.eclipse.epp.package.common<br/>
--launcher.defaultAction<br/>
openFile<br/>
--launcher.defaultAction<br/>
openFile<br/>
--launcher.appendVmargs<br/>
-vmargs<br/>
-Dosgi.requiredJavaVersion=1.8<br/>
-Dosgi.instance.area.default=#user.home/eclipse-workspace<br/>
-XX:+UseG1GC<br/>
-XX:+UseStringDeduplication<br/>
--add-modules=ALL-SYSTEM<br/>
-Dosgi.requiredJavaVersion=1.8<br/>
-Dosgi.dataAreaRequiresExplicitInit=true<br/>
-Xms256m<br/>
-Xmx2048m<br/>
--add-modules=ALL-SYSTEM<br/>
-Dosgi.configuration.area=#user.home/.var/app/org.eclipse.Java/eclipse/configuration<br/>
--patch-module=java.base=/app/eclipse/flatpak-dev-shim.jar<br/>
-javaagent:/var/lib/flatpak/app/org.eclipse.Java/x86_64/stable/d4c91ac7edee3f6afb68040498d32d5857e12079794fd0be8ec1fae9279450bd/files/eclipse/lombok.jar <br/>
You need to change the last line of eclipse.ini file for:
-javaagent:/app/eclipse/lombok.jar
Flatpak runs isolated, so it has his own environment. The .jar will be mounted in /app/eclipse folder.
OR
You can install the plugin via "Install New Software..." menu as documented in https://projectlombok.org/setup/eclipse.

How to install AEM components?

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

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 configure PHPUnit with ZF version 1.12.11

I am using zend framework 1.12.11 and now I want to use PHPunit with it.Pear has stopped it's stopped support for phpunit.Now it's working with composer.
I have install composer and phpunit via composer.But Where I have to put composer json setting file and my project and what should include in my project which automatically take phpunit of composer
Per the PHPUnit documentation for Composer installation, add PHPUnit to the dependencies in your project's composer.json file, something like:
{
"require-dev": {
"phpunit/phpunit": "4.6.*"
}
}
Then run:
composer update -vvv phpunit/phpunit
to actually bring PHPUnit and its dependencies down into your project.
I usually add the -vvv (maximally verbose) flag to see what's going on under the hood. Feel free to omit if you prefer.
Once they are all installed, you can run phpunit the usual way by accessing the executable bin script that PHPUnit and Composer expose for you. From the project root, you should be able to run:
./vendor/bin/phpunit --version
to confirm the install is ok.
Once you have a phpunit.xml config file set up that your test suites and directories, you should be able to run your tests using:
./vendor/bin/phpunit -c /path/to/phpunit.xml

phpChart in Laravel

I need a library to generate some charts in my page. I found the phpChart, but I do not know how to install it.
My question is: How to install phpChart in Laravel via composer.
Unfortunately if there are no packages on packagist, you cannot install it via Composer.
But you can still install it on Laravel:
1) Download and unzip it somewhere in app/, you can create an app/libraries/phpChart and unzip it there.
2) Edit your composer.json and add your folder to it:
"autoload": {
"classmap": [
...
"app/libraries"
]
},
3) Run composer dump-autoload so Composer create a new map for your library classes.