Monday, August 25, 2014

Mantis bugtracker mail configuration

I paste successful configuration for Mantis Bugtracker for sending mails (registering users, notifications, etc).

Enter (and replace with your data) this lines in config_inc.php:

$g_administrator_email = '';
$g_from_email = '';
$g_webmaster_email = '';
$g_return_path_email = '';
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = '';
$g_smtp_username = '';
$g_smtp_password = 'sender-email-password';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_email_send_using_cronjob = OFF;
$g_log_level = LOG_EMAIL;

Mantis default administrator password after install

Mantis bugtracker default admin credentials after install:

Username: administrator
Password: root

Friday, August 15, 2014

Embedded Tomcat in Eclipse could not start after mvn clean - solved

Web server could not start in Eclipse (or Spring Tool Suite, STS) after doing mvn clean on your project.

Solution is in 2 steps:
1. Change Server path / Deploy path as described here:
Key moments on this step:
1.1. server has to be stopped
1.2. to ensure full stop, just restart Eclipse
1.3. you have to mark Tomcat Installation

2. Ensure Eclipse uses JDK, not JRE. I dont know why by default Eclipse ignore JAVA_HOME and uses JRE. Solution is described here:
In short:
2.1. Window -> Preferences
2.2. Java -> Installed JREs
2.3. add base path of JDK (with includes files src.xip and foldersbin, db...)
2.4. deactivate old and activate new one

Thursday, August 7, 2014

SVN create repository

How-to for creating SVN repo:

sudo svnadmin create /path/to/repo
chmod -R 775 /path/to/repo
chown -Rv www-data /path/to/repo