First Maven project

18 views
Skip to first unread message

Ginga, Dick

unread,
Sep 5, 2014, 10:19:24 AM9/5/14
to jenkins...@googlegroups.com

I just tried to create my first Maven2/3 project and immediately hit just creating the job:

 

Stack trace

javax.servlet.ServletException: java.lang.NoSuchFieldError: triggers

    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726)

    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)

    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)

 

I am running 1.524 with Maven Project Plugin 1.496 which must have come with 1.524. I see much newer Maven plugins but the latest requires 1.538. I don’t want to upgrade, so I would like to install Maven plugin 2.0.4.

 

How do I get this older version?

 

Thanks

 

Dick Ginga, Informatics R&D

PerkinElmer Inc. | For the Better
HUMAN HEALTH | ENVIRONMENTAL HEALTH
940 Winter Street, Waltham MA 02451

 

dick.ginga@perkinelmer.com  

Mobile – 508-847-1434

Office – 781-663-6947

 

Ginga, Dick

unread,
Sep 5, 2014, 11:39:45 AM9/5/14
to jenkins...@googlegroups.com

Well, I have found the 2.0.4 version and downloaded it’s .hpi file.

 

Now how do I install it?

 

Thanks

Daniel Beck

unread,
Sep 5, 2014, 12:30:23 PM9/5/14
to jenkins...@googlegroups.com
JENKINS-18677 affected 1.522-1.526, so either downgrade to Jenkins 1.521, upgrade to 1.527, or update Maven Plugin to 1.524. Until Maven Plugin 2.0 (in Jenkins 1.535), Maven Plugin was bundled with Jenkins with a corresponding version. Make sure Maven Project plugin isn't 'Pinned' in the Installed tab of Plugin Manager. If it is, unpin it and restart Jenkins.
> dick....@perkinelmer.com
> Mobile – 508-847-1434
> Office – 781-663-6947
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Ginga, Dick

unread,
Sep 5, 2014, 12:53:07 PM9/5/14
to jenkins...@googlegroups.com
Dan thanks much for the info. I figured out how to load an hpi file and I did so on my Test Jenkins. So with 2.0.4 I encountered java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32. this is expected based on what you said below.

Not realty wanting to downgrade or upgrade, I installed Maven Plugin 1.524.

I now have my test Jenkins up with Maven Plugin 1.524 displayed and unpinned in the plugin manager but I still getting

javax.servlet.ServletException: java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32

did I mis-understand what you said?
> Mobile - 508-847-1434
> Office - 781-663-6947

Daniel Beck

unread,
Sep 5, 2014, 1:11:11 PM9/5/14
to jenkins...@googlegroups.com
Try running Jenkins on Java 7.

Ginga, Dick

unread,
Sep 5, 2014, 1:14:43 PM9/5/14
to jenkins...@googlegroups.com
Running on 7:

C:\Users\DGinga>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

Daniel Beck

unread,
Sep 5, 2014, 1:24:06 PM9/5/14
to jenkins...@googlegroups.com
Is that the JRE used for Jenkins? Check java.runtime.version on the /systemInfo URL of Jenkins.

Ginga, Dick

unread,
Sep 5, 2014, 2:18:15 PM9/5/14
to jenkins...@googlegroups.com
Ah, that is 1.6.0_26-b03. I must be the most unaware person about Java around. I have never programmed in it or used it. so...

I have installed java 1.7.0 and my production Jenkins says it's using 1.7.0 but my test machine still says:

java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path C:\Program Files (x86)\Jenkins\jenkins.war
java.class.version 50.0
java.endorsed.dirs C:\Program Files (x86)\Jenkins\jre\lib\endorsed
java.ext.dirs C:\Program Files (x86)\Jenkins\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home C:\Program Files (x86)\Jenkins\jre
java.io.tmpdir C:\Users\vmbuild\AppData\Local\Temp\
java.library.path C:\Program Files (x86)\Jenkins\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mellanox\MLNX_VPI\\IB\Tools;C:\Program Files\Coverity\Coverity Platform\bin;C:\Program Files (x86)\Coverity\Coverity Static Analysis\bin;c:\pstools;C:\Program Files (x86)\Perforce;C:\Program Files (x86)\Collaborator Client;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Perforce;.
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_26-b03
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_26
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 20.1-b02

Daniel Beck

unread,
Sep 5, 2014, 2:30:50 PM9/5/14
to jenkins...@googlegroups.com
The Jenkins Windows installer comes with Java:

> java.home C:\Program Files (x86)\Jenkins\jre

Should be configurable in jenkins.xml, or maybe try installing Java 7 into that directory.

Ginga, Dick

unread,
Sep 5, 2014, 3:01:51 PM9/5/14
to jenkins...@googlegroups.com
Dan, can' thank you enough. Got it fixed!
Reply all
Reply to author
Forward
0 new messages