Showing posts with label problem. Show all posts
Showing posts with label problem. Show all posts

Thursday, May 8, 2014

Maven release plugin skipped version bump



How to fix the problem - just do that version bump yourself manually, second time it will work automatically

Here is history of commands of my failed 6.6.15 and 6.6.16, and how I made it work:

git tag -d 6.6.15
git tag -d 6.6.16
git push origin :/ref/tags/6.6.15
git push origin :refs/tags/6.6.16
mvn release:clean release:prepare -Darguments='-DskipTests=true'
gitk --all
git reset HEAD~1 --hard
git clean -fx
git pull
gitk --all
mvn versions:set -DnewVersion=6.6.16-SNAPSHOT
git status
git clean -fx
git diff
git add .
git commit -m "manual version bump"
git push
mvn release:clean release:prepare -Darguments='-DskipTests=true'
git pull
git clean -fx
Another way to fix similar problem is to update maven-release-plugin to new version:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>


 </plugin>

result in tag commited to remote but version bump was not happen to snapshot, see logs for details



outputs from picture provided below.


problematic launch output:
===================================================
[INFO] [INFO] Building jar: /home/rivanov/java/git/feed/extract/target/extractor-tests.jar
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO] 
[INFO] [INFO] feed ............................................. SUCCESS [  X.XXX s]
[INFO] [INFO] feed-access ...................................... SUCCESS [  X.XXX s]
[INFO] [INFO] feed-extract ..................................... SUCCESS [  X.XXX s]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 4.597 s
[INFO] [INFO] Finished at: 2014-03-27T15:17:56-08:00
[INFO] [INFO] Final Memory: 34M/222M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git add -- pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git status
[INFO] Working directory: /home/rivanov/java/git/feed











[INFO] Tagging release with the label 6.6.15...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git 
tag -F /tmp/maven-scm-1595271495.commit 6.6.15
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git push git@git.mycompany.com:feed 6.6.15
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git ls-files
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Transforming 'feed'...
[INFO] Transforming 'feed-access'...
[INFO] Transforming 'feed-extract'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git add -- pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git status
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Release preparation complete.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] feed ............................................. SUCCESS [ 11.454 s]
[INFO] feed-access ...................................... SKIPPED
[INFO] feed-extract ..................................... SKIPPED






correct launch output:
====================================================
[INFO] [INFO] Building jar: /home/rivanov/java/git/feed/extract/target/extractor-tests.jar
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO] 
[INFO] [INFO] feed ............................................. SUCCESS [  X.XXX s]
[INFO] [INFO] feed-access ...................................... SUCCESS [  X.XXX s]
[INFO] [INFO] feed-extract ..................................... SUCCESS [  X.XXX s]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 4.597 s
[INFO] [INFO] Finished at: 2014-03-27T15:17:56-08:00
[INFO] [INFO] Final Memory: 34M/222M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git add -- pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git status
[INFO] Working directory: /home/rivanov/java/git/feed

============================
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git commit --verbose -F /tmp/maven-scm-218607872.commit pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git symbolic-ref HEAD
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git push git@git.mycompany.com:feed test-mvn-release:test-mvn-release
[INFO] Working directory: /home/rivanov/java/git/feed
============================

[INFO] Tagging release with the label 6.6.17...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git tag -F /tmp/maven-scm-1830116578.commit 6.6.17
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git push git@git.mycompany.com:feed 6.6.17
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git ls-files
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Transforming 'feed'...
[INFO] Transforming 'feed-access'...
[INFO] Transforming 'feed-extract'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git add -- pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git status
============================
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git commit --verbose -F /tmp/maven-scm-1562430778.commit pom.xml access/pom.xml extract/pom.xml
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed && git symbolic-ref HEAD
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Executing: /bin/sh -c cd /home/rivanov/java/git/feed 
&& git push git@git.mycompany.com:feed test-mvn-release:test-mvn-release
============================
[INFO] Working directory: /home/rivanov/java/git/feed
[INFO] Release preparation complete.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] feed ............................................. SUCCESS [ 11.454 s]
[INFO] feed-access ...................................... SKIPPED
[INFO] feed-extract ..................................... SKIPPED


====================================================


Monday, October 28, 2013

Trailing Comment Check false positives

Original investigation of Daniil Yroslavtsev:

Check: http://checkstyle.sourceforge.net/config_misc.html#TrailingComment
It has so much problem to report valid code so I do believe that it is switched off  in all companies configurations.

Other support for that Check: Trailing Comments .

But currently Trailing Comment check warns on the following valid cases:

1.

  A. 
  } catch (Exception e) { // SUPPRESS CHECKSTYLE IllegalCatchExtendedCheck now it part of logic

  B.
  } catch (Exception e) { // NOPMD

  C.
  } catch (Exception e) { // NOSONAR

2.
double emerging = 100 - regions.sumEstimate(
  "54138", // Not Applicable/Disclosed
  "19668", // United States
  "200005", // Canada
...
);
ATTENTION: it is not false-positive, as all this magic numbers
 should be moved to constants with proper names



3.


ReportValidationResult r = validationResult.get(i);
  sb.append(
    MessageFormat.format("  report_id={0} (co_id={1}), report_start$=''{2}'', report_end$=''{3}''"
     + ", period_start_date={4}, period_end_date={5}: "
     + "total percent on ''{6}'' is {7}% .... ",
     safeToPlainString(r.reportId), // 0
     safeToPlainString(r.companyId), // 1
     formatTimestamp(r.reportStartDate), // 2
     ...
     formatTimestamp(r.periodEndDate), // 7
     ...
     )

4.

  private static final Color[] COLORS = {             
            new Color(255, 128, 128), // pink
            new Color(255, 255, 128), // yellow             
            new Color(128, 255, 128), // green             
            new Color(128, 255, 255), // cian             
            new Color(255, 128, 192), // margent                      
            new Color(255, 128, 64), // brown
            new Color(0, 128, 128), // blue/gray
            new Color(128, 128, 255), // purple
            new Color(0, 128, 0), // dark green             
            new Color(128, 128, 0), // greenish/grayish     };

5
    record[++columnIndex] = geoAreaEntry.getKey(); // _NAME
    record[++columnIndex] = "unknown"; // _REGION
    record[++columnIndex] = "0"; // _WEIGHT
    record[++columnIndex] = "1"; // _CONF



To fix false-positives we can update Trailing Commentary Sonar check to ignore: //NOSONAR, //SUPPRESS CHECKSTYLE, //NOPMD, // formatter:off, // formatter:on commentaries (with all their possible variants) and other 'valid' comments by regexp in it`s configuration.

But I think, that Checkstyle Trailing Comment check should be disabled for all projects as too many comment formats can be considered as 'valid' and result 'ignore' regexp will be too complex and unreadable.

Tuesday, August 13, 2013

Krusader have problem with unpacking tag.gz

It is not a first time I noticed that after unzip/unarchive/unpacksome archive some files are missed. But when you do it from terminal or ubuntu befault archive manager - all works fine.

issue was reported: https://bugs.kde.org/show_bug.cgi?id=323472

Sunday, March 31, 2013

RDP connection from Windows to Ubuntu 12.04

manual: http://www.ubuntututorials.com/remote-desktop-ubuntu-12-04-windows-7/

That connection create only new connections to PC, no way to connect to existing session.

unfortunately did not worked for me as screen after login is empty.
Here is advise how to fix that problem, see two last comments of "".

It works, but ! if you try to launch FireFox or Chrom from that session, Firefox will fail to launch if it existing in different session, Chrome launched in new session and disappeared (it appear in my real session at laptop).

So that behavior is not appropriate, failed to fix, fed up ... .

Saturday, March 16, 2013

XChat integration with Unity


there is a way to add xchat icon in the Unity top panel, so when you hit X it minimizes there. By default it will disappear and you will not be able to activate it.

Solution:
Launch "dconf-editor" , navigate to desktop.unity.panel in tree edit "systray-whitelist" to put 'xchat' to list.

you also need integration with Unity : sudo apt-get install xchat-indicator

To have notifications: do right click on channel, menu "Extra Allerts", and select all sub menus ("Beep on message", "Blink Tray Icon", "Blink Task Bar"). You will see blinking messages at icon that you allowed in dconf-editor.

Hint: to rejoin to few channel on startup, you need to join that channel and then in left tree of channels by means of right click add them to Favorite.

Wednesday, February 13, 2013

Connect Nexus4 to Ubuntu 12.04 by USB

UPDATE: just follow http://bernaerts.dyndns.org/linux/74-ubuntu/268-ubuntu-automount-any-mtp-device , at the end of article there is a script that do all that steps automatically.

Follow: http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html
something similar is here too.

after installation it worked for me for few time (Ubuntu 12.04 64bit), but after that failed with error:
"nexus rdev.open failed: open: open returned nil"

to fix this follow all steps in  http://askubuntu.com/questions/87667/getting-mtp-to-work-with-a-galaxy-nexus/88630#88630 and do restart.

And now it works and could be used without terminal mount!!!!!

PS:
I also tried gMTP but it does not work to copy folders - works only for files :( .
AirDroid, looks interesting, but it only for wifi connection.


Monday, January 21, 2013

Fedora 18 for Dell Vostro 1510

1. New Installation in fedora 18 is crap.... I broke my mind when I tried to install it on required partition - far from intuitive.


2. change power button to ask what to do (source):

In order to get the Power Shutdown selection menu in Fedora 16, you must download dconf-editor with sudo yum install dconf-editor
Once this is done, open dconf editor from gnome, and navigate to ORG/Gnome/Setting Daemon/Plugins/Power and then modify the action on power button to be "Interactive".


3. Skype and google talk plugin it is necessary to install from terminal (source):
"yum localinstall skype-4.1.0.20-fedora.i586.rpm"


4. Problem with microphone...
lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

I did restart, install of
su
yum install gnome-media
changed level of microphone in "Sound" application, tab "Input" and it become alive.



5. install Cromium (source):
su
yum install wget
cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-chromium-stable.repo
yum install chromium

6. Install Flash player to browsers
Follow instructions from: http://www.if-not-true-then-false.com/2010/install-adobe-flash-player-10-on-fedora-centos-red-hat-rhel/

7. Open terminal from Nautilus current folder:
yum install nautilus-open-terminal
No logout is required, just close all active Nautilus windows and launch it again.

8.Add rpmfusion repository, to add more packages (lha, unrar, unace archive support and more other stuff):

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

sudo nano /etc/yum.repos.d/rpmfusion-nonfree.repo
set in all rows: "gpgcheck=0"

9. Install Archive support packages (requires rpmfusion):
sudo yum install unrar p7zip p7zip-plugins lha arj unace dpkg

10. how to set up Caps Lock as language switch.
standard way to setup this in "Keyboard" or "Language and Regions" - does not work! :(
bug, workaround work perfectly well!


11. Install mp3 and other codecs for Fedora18
Follow http://jaisejames.wordpress.com/2012/11/30/fedora-18-missing-video-decoder-audio-decoder-codec-installing/
it will require to download gpg keys from http://rpmfusion.org/keys?action=AttachFile&do=view&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-18 but beware that nonfree kay is empty and will not work s so you might consider to use "gpgcheck=0" (see above).
Additional step require to put key in proper place with renaming to your architecture(i386 or x86_64):
cp RPM-GPG-KEY-rpmfusion-nonfree-fedora-18 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-18-i386
cp RPM-GPG-KEY-rpmfusion-free-fedora-18 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-18-i386

...



Wednesday, November 14, 2012

Problem with switching LibeOffice windows by Alt+Tab and in vertical panel

Issue is open for this problem: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/844119
Please vote to raise importance of this bug.

Workaround suggested Matthias Niess in bug comments:

switching works fine if open SpreadSheet from Dash and then open files from Cntl+O.

as an option you can install LibreOffice4 from official site - but in this case you loose Unity integration of menu, (instructions for installation).

update:
looks like fixed in latest ubuntu updates (March 2013), I aslo updated Libreoffice to 4.0 by http://www.webupd8.org/2013/03/install-libreoffice-40-in-ubuntu-1204.html


sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update

.... and do install from ubuntu Center, and now Libreoffice works fine.

Sunday, November 11, 2012

Change order of sections in Jenkins Sections View Plugin


We use "Section View Plugin"  to manage numerous configuration and group them to ease search and making a family of configurations.

List of all issues of this plugin.

My proposition:
JENKINS-15798 - Allow changing order for Sections in configuration.
Please vote if you have the same problem

Monday, November 5, 2012

Empathy problems in Ubuntu 12.04

1. Problem to be notified about new/missed message for Empathy.
Workaround:

2. When you quit from Empathy in launch panel, Empathy disappear from panel but still launching (see problem above to show it in tray top panel):