Thursday 28 August 2014

Could not find artifact com.sun:tools:jar:1.5.0 at specified path

When we are working on maven project then several time we  get an error
      Could not find artifact com.sun:tools:jar:1.5.0 at specified path
We have several ways to solve this issue,You can follow any one which solve your issue,
I have added some solution in  sequence as I preferred

1)- Modify location of jre in eclipse

Right click on your project --> Properties --> Select Java Build Path --> Click on Libraries Tab -->
Double click on Jre System Library --> Click on installed Jre (A pop will open) --> Double click on check jre --> change JRE Home from C:\Program Files\Java\jre6 to C:\Program Files\Java\jdk1.6.0_27
That's it surely solve your problem without changing anything in you project configuration.


2)-  Change in project POM

you can also add dependency for tool jar , You can use below clip for this purpose

                 <dependency>
                     <groupId>com.sun</groupId>
                     <artifactId>tools</artifactId> 
                     <version>1.6.0</version>
                     <scope>system</scope>
                     <systemPath>C:\Program Files\Java\jdk1.6.0_27\lib\tools.jar</systemPath> 
              </dependency>


I will add others method also after some time,


Tuesday 26 August 2014

Jenkins "You must use POST method to trigger builds" Issue

If you are using jenkins and if you ever see any error like this

"You must use POST method to trigger builds. (From scripts you may instead pass a per-project authentication token, or authenticate with your API token.) "

Then it will solve by two ways

1)- you can refer below link
 https://issues.jenkins-ci.org/browse/JENKINS-19368

but it didn't worked for me then I will choose the second way

I don't know how javascript got disabled in my browser after enabling everything seems ok for me.

To enable javascript in firefox

a)-type about:config
b)-Click on I'll be carefull, I promise
c)-search for javaScript:enable and set value to true

Hope this helps someone,
<img class="bm-sh-badge" src="https://www.blogmint.com/blogger/badgeForSefHostedBlog/cdbb53fe90754aab906d3fee6530a7dc?image=one-pixel.png" alt="badge"/>