Failt to build maven project in Jenkins, though it is successful by direct building with maven

752 views
Skip to first unread message

Wei Chen

unread,
Oct 22, 2015, 3:39:12 AM10/22/15
to Jenkins Users
Hi,

I have a maven successful built java project. Now I try using the Jenkins to build it but it failt. The error message tells it can't fins the MAVEN_HOME:


Baue in workspace C:\Program Files (x86)\Jenkins\workspace\WebdriverTest
ERROR: Maven Home Z:\Eigene_Dateien\apache-maven-3.3.3 doesn’t exist
Finished: FAILURE


What could be the problem?


Wei Chen

unread,
Oct 22, 2015, 4:54:37 AM10/22/15
to Jenkins Users
I figure out the problem. It lies on the workspace directory: C:\Program Files (x86)\Jenkins\workspace\WebdriverTest

It seems the Jenkins doesn't accept the space character. I move the Jenkins to C:\Jenkins and it can go further.

But the build fails since I have another error as follow:
...
ERROR: Z:\Eigene_Dateien\Temp\MyProjects\WebdriverTest\pom.xml not found
...

I have now really no idea.

Wei Chen

unread,
Oct 22, 2015, 7:49:39 AM10/22/15
to Jenkins Users
Now I fix the problem. I have to move my maven project to the same disc such as:
C:\Temp\WebdriverTest

Then it works.

Is this a bug of Jenkins?

Eric Pyle

unread,
Oct 22, 2015, 10:47:27 AM10/22/15
to jenkins...@googlegroups.com
The Jenkins process likely does not have drive Z: mapped. You may need to specifically issue the "net use" command in your slave startup or in your job. If so, I recommend using the /Y parameter to "net use", which will allow the command to succeed even if the drive is already mapped.

Eric
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0a68f185-42c0-4dae-92cd-8dc139c55e2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wei Chen

unread,
Oct 23, 2015, 3:27:14 AM10/23/15
to Jenkins Users
Hi,

I am new to Jenkins. Truely to say I haven't understood what you say here. Some what in detail please? :-)

Wei
Message has been deleted

Wei Chen

unread,
Oct 23, 2015, 4:24:47 AM10/23/15
to Jenkins Users
Exactly to say, my Jenkins is installed under 'C:\Jenkins' and my maven project pom.xml is under 'Z:\Eigene_Dateien\Temp\MyProjects\WebdriverTest\pom.xml'

How to do?
Reply all
Reply to author
Forward
0 new messages