Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » "Invoke Maven 3" build step missing
"Invoke Maven 3" build step missing [message #1007789] Thu, 07 February 2013 13:55 Go to next message
Joost Joost is currently offline Joost JoostFriend
Messages: 5
Registered: February 2013
Junior Member
When creating a free style job, I have no "Invoke Maven 3" build step.

I do have "Invoke Ant", "Execute shell", "Invoke Maven 2 (legacy)", "Execute Windows batch command", "Inject environment variables".

If I go to the manage plugins section, I do have the "Hudson :: Maven 3 :: Plugin" plugin installed and enabled.

Any idea what is wrong? I'm using Hudson 2.2.0.
Re: "Invoke Maven 3" build step missing [message #1007823 is a reply to message #1007789] Thu, 07 February 2013 16:21 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
It appears the Maven3 plugin was loaded correctly. It could be because of some dependency plugin missing. If you go the the Hudson log or the server log, it should display the reason why the plugin was not loaded.

Winston Prakash
Eclipse Hudson team
Re: "Invoke Maven 3" build step missing [message #1007828 is a reply to message #1007823] Thu, 07 February 2013 16:34 Go to previous messageGo to next message
Joost Joost is currently offline Joost JoostFriend
Messages: 5
Registered: February 2013
Junior Member
I'm not seeing anything about the plugin not being able to load in the log output:

<Feb 7, 2013 2:46:02 PM CET> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "Hudson_Server_1" for domain "hudson_domain" running in Production Mode>
Feb 7, 2013 2:46:02 PM hudson.model.Hudson$5 onAttained
INFO: Prepared all plugins
Feb 7, 2013 2:46:02 PM hudson.model.Hudson$5 onAttained
INFO: Started all plugins
Feb 7, 2013 2:46:02 PM hudson.model.Hudson$5 onAttained
INFO: Augmented all extensions
<Feb 7, 2013 2:46:04 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Feb 7, 2013 2:46:04 PM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Feb 7, 2013 2:46:06 PM hudson.model.Hudson$5 onAttained
INFO: Loaded all jobs
Feb 7, 2013 2:46:06 PM hudson.model.Hudson$5 onAttained
INFO: Completed initialization
Feb 7, 2013 2:46:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@1c344bac: display name [Root WebApplicationContext]; startup date [Thu Feb 07 14:46:07 CET 2013]; root of context hierarchy
Feb 7, 2013 2:46:07 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@1c344bac]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1c3fe9f8
Feb 7, 2013 2:46:07 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1c3fe9f8: defining beans [initialDirContextFactory,bindAuthenticator,ldapUserSearch,authenticationManager,authoritiesPopulator]; root of factory hierarchy
Feb 7, 2013 2:46:07 PM org.acegisecurity.ldap.DefaultInitialDirContextFactory setProviderUrl
INFO:  URL 'ldap://oid.corp.com/dc=corp,dc=com', root DN is 'dc=corp,dc=com'
Feb 7, 2013 2:46:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@1cc55aa7: display name [Root WebApplicationContext]; startup date [Thu Feb 07 14:46:08 CET 2013]; root of context hierarchy
Feb 7, 2013 2:46:08 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@1cc55aa7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1cc55b4a
Feb 7, 2013 2:46:08 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1cc55b4a: defining beans [filter,legacy]; root of factory hierarchy
Feb 7, 2013 2:46:08 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 43787
[EnvInject] - Injecting as environment variables the properties file path '/home/users/hudson/env.txt'
[EnvInject] - Variables injected successfully.
Feb 7, 2013 2:46:27 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.WebAppMain$2$1@1dfd375c failed
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350)
    at hudson.maven.MavenModuleSetBuild$1.notInSubsidiary(MavenModuleSetBuild.java:209)
    at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:202)
    at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:190)
    at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)
    at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:172)
    at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:321)
    at hudson.model.User.getBuilds(User.java:368)
    at hudson.WebAppMain$2$1.doRun(WebAppMain.java:258)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

[Updated on: Thu, 07 February 2013 16:36]

Report message to a moderator

Re: "Invoke Maven 3" build step missing [message #1007833 is a reply to message #1007828] Thu, 07 February 2013 16:56 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
The part of the log you pasted does not have info about plugins loaded. So I can't say if the plugin was loaded.

You could send the full sever log to me directly at winstonDOTprakashATgmailDOTcom. I will reply to this forum thread if I find some thing wrong.


Winston Prakash
Eclipse Hudson team
Re: "Invoke Maven 3" build step missing [message #1007836 is a reply to message #1007833] Thu, 07 February 2013 17:06 Go to previous messageGo to next message
Joost Joost is currently offline Joost JoostFriend
Messages: 5
Registered: February 2013
Junior Member
The pasted log is everything generated after a server restart.
Re: "Invoke Maven 3" build step missing [message #1007855 is a reply to message #1007836] Thu, 07 February 2013 18:15 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
That is really odd. because it does not list any of the plugins being loaded. The information about the plugins being loaded should be listed like the following


Started Jetty Server
Console reloading is ENABLED. Hit ENTER on the console to restart the context.
Feb 7, 2013 8:04:47 AM hudson.PluginManager createPluginStrategy
INFO: Plugin strategy: org.hudsonci.inject.internal.plugin.DelegatingPluginStrategy
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading bundled plugins
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Started initialization
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Listing up plugins
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Preparing plugins
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/copyartifact.hpl
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/promoted-builds.hpl
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/birt-charts.hpi
Feb 7, 2013 8:04:47 AM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/copyartifact.hpl because /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/copyartifact.hpl is already loaded
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/copyartifact.hpl
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/git.hpi
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/jna-native-support-plugin.hpi
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/maven-plugin.hpi
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/maven3-plugin.hpi
Feb 7, 2013 8:04:47 AM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/promoted-builds.hpl because /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/promoted-builds.hpl is already loaded
Feb 7, 2013 8:04:47 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/promoted-builds.hpl
Feb 7, 2013 8:04:48 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/rest-plugin.hpi
Feb 7, 2013 8:04:48 AM hudson.model.Hudson$5 onAttained
INFO: Listed all plugins
Feb 7, 2013 8:04:48 AM hudson.model.Hudson$5 onAttained
INFO: Attained Inspecting plugin /Users/wjprakash/Hudson/Hudson3-plugins/copyartifact-plugin/work/plugins/xpath-provider.hpi
Feb 7, 2013 8:04:48 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 8:04:48 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - copyartifact
Feb 7, 2013 8:04:48 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugins
Feb 7, 2013 8:04:51 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin copyartifact
Feb 7, 2013 8:04:51 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - promoted-builds
Feb 7, 2013 8:04:51 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin promoted-builds
Feb 7, 2013 8:04:51 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - birt-charts
Feb 7, 2013 8:04:51 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin birt-charts
Feb 7, 2013 8:04:51 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - git
Feb 7, 2013 8:04:52 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin git
Feb 7, 2013 8:04:52 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - jna-native-support-plugin
Feb 7, 2013 8:04:52 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin jna-native-support-plugin
Feb 7, 2013 8:04:52 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - maven-plugin
Feb 7, 2013 8:04:52 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin maven-plugin
Feb 7, 2013 8:04:52 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - maven3-plugin
Feb 7, 2013 8:04:53 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin maven3-plugin
Feb 7, 2013 8:04:53 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - rest-plugin
Feb 7, 2013 8:04:54 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin rest-plugin
Feb 7, 2013 8:04:54 AM hudson.PluginManager$2$1$1 run
INFO: Loading plugin - xpath-provider
Feb 7, 2013 8:04:54 AM hudson.model.Hudson$5 onAttained
INFO: Prepared all plugins
Feb 7, 2013 8:04:54 AM hudson.model.Hudson$5 onAttained
INFO: Attained Loading plugin xpath-provider
Feb 7, 2013 8:04:54 AM hudson.model.Hudson$5 onAttained
INFO: Attained null
Feb 7, 2013 8:04:54 AM hudson.model.Hudson$5 onAttained
INFO: Attained Checking cyclic dependencies
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin copyartifact
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin promoted-builds
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin birt-charts
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin git
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin jna-native-support-plugin
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin maven-plugin
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin maven3-plugin
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin rest-plugin
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Attained Initializing plugin xpath-provider
Feb 7, 2013 8:04:55 AM hudson.model.Hudson$5 onAttained
INFO: Started all plugins


Winston Prakash
Eclipse Hudson team
Re: "Invoke Maven 3" build step missing [message #1008162 is a reply to message #1007855] Mon, 11 February 2013 08:38 Go to previous messageGo to next message
Joost Joost is currently offline Joost JoostFriend
Messages: 5
Registered: February 2013
Junior Member
That looks like Hudson v3.0.0 output. I tried that also, and this is the problem:

INFO: Failed to load plugin - rest-plugin because of error Unable to create instance of org.hudsonci.rest.plugin.RestPlugin from rest-plugin
Feb 9, 2013 2:50:59 PM hudson.model.Hudson$5 onTaskFailed
SEVERE: Failed Loading plugin rest-plugin
hudson.util.IOException2: Unable to create instance of org.hudsonci.rest.plugin.RestPlugin from rest-plugin
        at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:322)
        at hudson.PluginManager$2$1$1.run(PluginManager.java:297)
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:147)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:260)
        at hudson.model.Hudson$4.runTask(Hudson.java:648)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.InstantiationException: org.hudsonci.rest.plugin.RestPlugin
        at java.lang.Class.newInstance0(Class.java:340)
        at java.lang.Class.newInstance(Class.java:308)
        at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:310)
        ... 9 more


I tried WebLogic container approaches as mentioned on Hudson wiki and also on Jenkins wiki (wiki.jenkins-ci.org/display/JENKINS/Weblogic), but the problem persists. Using built-in Winstone Hudson starts up fine. Looks like the problem is related to using WebLogic as a container.
Re: "Invoke Maven 3" build step missing [message #1008319 is a reply to message #1008162] Mon, 11 February 2013 21:45 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
I suspect the problem is with the Jersey (JAX-RS) library bundled with the weblogic server and used by Hudson. Hudson uses JAX-RS api (JSR311 API) 1.1.1 and Jersey Server 1.5. What do you have in the weblogic server?

Winston Prakash
Eclipse Hudson team
Re: "Invoke Maven 3" build step missing [message #1008661 is a reply to message #1008319] Wed, 13 February 2013 13:42 Go to previous messageGo to next message
Joost Joost is currently offline Joost JoostFriend
Messages: 5
Registered: February 2013
Junior Member
Any specific class name or jar file that I can look for?
Re: "Invoke Maven 3" build step missing [message #1009623 is a reply to message #1008661] Fri, 15 February 2013 11:56 Go to previous message
Duncan Mills is currently offline Duncan MillsFriend
Messages: 49
Registered: August 2011
Member

FYI WebLogic 10.3.6 provides Jersey JAX-RS RI Version 1.9

Duncan Mills
Eclipse Hudson team
Previous Topic:user token support in hudson?
Next Topic:SVN externals no longer trigger SCM Polling builds
Goto Forum:
  


Current Time: Fri Apr 19 02:00:05 GMT 2024

Powered by FUDForum. Page generated in 0.02380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top