You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Strayer <jo...@strayer.org> on 2010/08/03 23:04:45 UTC

My build fails on build server by not workstation

I have a problem where my maven build works fine on my laptop but
compilation fails on the build server.  I've already blown away both local
repositories but that didn't help.  I ran help:effective-pom on both but
there are no unexpected differences.

Do you have any idea what else I should look at?

The fact that the build fails isn't the problem.  That fact that it succeeds
one place and fails on the other is.

Re: My build fails on build server by not workstation

Posted by Ron Wheeler <rw...@artifact-software.com>.
  In spite of the humour, the forum crowd is willing and probably able 
to help you solve your problem if you give us something to work with.

What error messages did you get?


Ron

On 04/08/2010 12:15 AM, Wayne Fay wrote:
>> So your question reduces to "I have something wrong in the configuration of
>> my build server, can anyone fix this sort of problem through psychic means?"
> My car wouldn't start this morning. Can you tell me which piece needs
> to be replaced?? I don't know what's wrong, my wife's car started
> right up!
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Wayne Fay <wa...@gmail.com>.
> So your question reduces to "I have something wrong in the configuration of
> my build server, can anyone fix this sort of problem through psychic means?"

My car wouldn't start this morning. Can you tell me which piece needs
to be replaced?? I don't know what's wrong, my wife's car started
right up!

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Ron Wheeler <rw...@artifact-software.com>.
  Glad to hear that you found the problem and that it was a result of a 
little "out of the box" thinking.

Th
Ron

On 05/08/2010 12:34 PM, Jon Strayer wrote:
> The values from settings.xml are inluded in the effective pom (as in "mvn
> help:effective-pom").
>
> On Wed, Aug 4, 2010 at 10:42 AM, Ron Wheeler<rwheeler@artifact-software.com
>> wrote:
>>   You will get to a solution much quicker when you start to think about this
>> as "Maven is working correctly. I have an error in my setup. Where can it
>> be? What do I get to specify?"
>>
>> What is the error message? The answer is probably sitting right on the
>> screen.
>> I have never heard of Maven just failing with no message describing what it
>> found or did not find that caused it to be unable to complete the build.
>>
>> POMs aren't the only thing that Maven uses.
>> You have a settings.xml file on your computer. What is the difference
>> between that and your build server?
>>
>>
>> Ron
>>
>>
>> On 04/08/2010 9:47 AM, Jon Strayer wrote:
>>
>>> What configuration would be different and not show up in the effective
>>> pom?
>>>
>>> On Tue, Aug 3, 2010 at 5:17 PM, Ron Wheeler
>>> <rw...@artifact-software.com>wrote:
>>>
>>>    Were you planning to give any details?
>>>> We all know that building correctly on both places wouldn't have caused
>>>> you
>>>> to write.
>>>> The fact that  it fails on your build server is probably the place to
>>>> focus
>>>> on.
>>>> It builds on your laptop because you have done everything there in a
>>>> correct and internally consistent manner.
>>>>
>>>> It is a good guess that that is not true on your build server.
>>>>
>>>> So your question reduces to "I have something wrong in the configuration
>>>> of
>>>> my build server, can anyone fix this sort of problem through psychic
>>>> means?"
>>>>
>>>> I am out! Not that "in tune" with the universe and your server in
>>>> particular.
>>>>
>>>> Ron
>>>>
>>>>
>>>>
>>>> On 03/08/2010 5:04 PM, Jon Strayer wrote:
>>>>
>>>>   I have a problem where my maven build works fine on my laptop but
>>>>> compilation fails on the build server.  I've already blown away both
>>>>> local
>>>>> repositories but that didn't help.  I ran help:effective-pom on both but
>>>>> there are no unexpected differences.
>>>>>
>>>>> Do you have any idea what else I should look at?
>>>>>
>>>>> The fact that the build fails isn't the problem.  That fact that it
>>>>> succeeds
>>>>> one place and fails on the other is.
>>>>>
>>>>>
>>>>>   ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Jon Strayer <jo...@strayer.org>.
The values from settings.xml are inluded in the effective pom (as in "mvn
help:effective-pom").

On Wed, Aug 4, 2010 at 10:42 AM, Ron Wheeler <rwheeler@artifact-software.com
> wrote:

>  You will get to a solution much quicker when you start to think about this
> as "Maven is working correctly. I have an error in my setup. Where can it
> be? What do I get to specify?"
>
> What is the error message? The answer is probably sitting right on the
> screen.
> I have never heard of Maven just failing with no message describing what it
> found or did not find that caused it to be unable to complete the build.
>
> POMs aren't the only thing that Maven uses.
> You have a settings.xml file on your computer. What is the difference
> between that and your build server?
>
>
> Ron
>
>
> On 04/08/2010 9:47 AM, Jon Strayer wrote:
>
>> What configuration would be different and not show up in the effective
>> pom?
>>
>> On Tue, Aug 3, 2010 at 5:17 PM, Ron Wheeler
>> <rw...@artifact-software.com>wrote:
>>
>>   Were you planning to give any details?
>>> We all know that building correctly on both places wouldn't have caused
>>> you
>>> to write.
>>> The fact that  it fails on your build server is probably the place to
>>> focus
>>> on.
>>> It builds on your laptop because you have done everything there in a
>>> correct and internally consistent manner.
>>>
>>> It is a good guess that that is not true on your build server.
>>>
>>> So your question reduces to "I have something wrong in the configuration
>>> of
>>> my build server, can anyone fix this sort of problem through psychic
>>> means?"
>>>
>>> I am out! Not that "in tune" with the universe and your server in
>>> particular.
>>>
>>> Ron
>>>
>>>
>>>
>>> On 03/08/2010 5:04 PM, Jon Strayer wrote:
>>>
>>>  I have a problem where my maven build works fine on my laptop but
>>>> compilation fails on the build server.  I've already blown away both
>>>> local
>>>> repositories but that didn't help.  I ran help:effective-pom on both but
>>>> there are no unexpected differences.
>>>>
>>>> Do you have any idea what else I should look at?
>>>>
>>>> The fact that the build fails isn't the problem.  That fact that it
>>>> succeeds
>>>> one place and fails on the other is.
>>>>
>>>>
>>>>  ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
" People who couldn't find Nebraska on a world map are certain that global
warming is a left-wing hoax.
Gene Lyons"

Re: My build fails on build server by not workstation

Posted by Ron Wheeler <rw...@artifact-software.com>.
  You will get to a solution much quicker when you start to think about 
this as "Maven is working correctly. I have an error in my setup. Where 
can it be? What do I get to specify?"

What is the error message? The answer is probably sitting right on the 
screen.
I have never heard of Maven just failing with no message describing what 
it found or did not find that caused it to be unable to complete the build.

POMs aren't the only thing that Maven uses.
You have a settings.xml file on your computer. What is the difference 
between that and your build server?


Ron

On 04/08/2010 9:47 AM, Jon Strayer wrote:
> What configuration would be different and not show up in the effective pom?
>
> On Tue, Aug 3, 2010 at 5:17 PM, Ron Wheeler
> <rw...@artifact-software.com>wrote:
>
>>   Were you planning to give any details?
>> We all know that building correctly on both places wouldn't have caused you
>> to write.
>> The fact that  it fails on your build server is probably the place to focus
>> on.
>> It builds on your laptop because you have done everything there in a
>> correct and internally consistent manner.
>>
>> It is a good guess that that is not true on your build server.
>>
>> So your question reduces to "I have something wrong in the configuration of
>> my build server, can anyone fix this sort of problem through psychic means?"
>>
>> I am out! Not that "in tune" with the universe and your server in
>> particular.
>>
>> Ron
>>
>>
>>
>> On 03/08/2010 5:04 PM, Jon Strayer wrote:
>>
>>> I have a problem where my maven build works fine on my laptop but
>>> compilation fails on the build server.  I've already blown away both local
>>> repositories but that didn't help.  I ran help:effective-pom on both but
>>> there are no unexpected differences.
>>>
>>> Do you have any idea what else I should look at?
>>>
>>> The fact that the build fails isn't the problem.  That fact that it
>>> succeeds
>>> one place and fails on the other is.
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Jon Strayer <jo...@strayer.org>.
What configuration would be different and not show up in the effective pom?

On Tue, Aug 3, 2010 at 5:17 PM, Ron Wheeler
<rw...@artifact-software.com>wrote:

>  Were you planning to give any details?
> We all know that building correctly on both places wouldn't have caused you
> to write.
> The fact that  it fails on your build server is probably the place to focus
> on.
> It builds on your laptop because you have done everything there in a
> correct and internally consistent manner.
>
> It is a good guess that that is not true on your build server.
>
> So your question reduces to "I have something wrong in the configuration of
> my build server, can anyone fix this sort of problem through psychic means?"
>
> I am out! Not that "in tune" with the universe and your server in
> particular.
>
> Ron
>
>
>
> On 03/08/2010 5:04 PM, Jon Strayer wrote:
>
>> I have a problem where my maven build works fine on my laptop but
>> compilation fails on the build server.  I've already blown away both local
>> repositories but that didn't help.  I ran help:effective-pom on both but
>> there are no unexpected differences.
>>
>> Do you have any idea what else I should look at?
>>
>> The fact that the build fails isn't the problem.  That fact that it
>> succeeds
>> one place and fails on the other is.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
" People who couldn't find Nebraska on a world map are certain that global
warming is a left-wing hoax.
Gene Lyons"

Re: My build fails on build server by not workstation

Posted by Ron Wheeler <rw...@artifact-software.com>.
  Were you planning to give any details?
We all know that building correctly on both places wouldn't have caused 
you to write.
The fact that  it fails on your build server is probably the place to 
focus on.
It builds on your laptop because you have done everything there in a 
correct and internally consistent manner.

It is a good guess that that is not true on your build server.

So your question reduces to "I have something wrong in the configuration 
of my build server, can anyone fix this sort of problem through psychic 
means?"

I am out! Not that "in tune" with the universe and your server in 
particular.

Ron


On 03/08/2010 5:04 PM, Jon Strayer wrote:
> I have a problem where my maven build works fine on my laptop but
> compilation fails on the build server.  I've already blown away both local
> repositories but that didn't help.  I ran help:effective-pom on both but
> there are no unexpected differences.
>
> Do you have any idea what else I should look at?
>
> The fact that the build fails isn't the problem.  That fact that it succeeds
> one place and fails on the other is.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Ben Caradoc-Davies <Be...@csiro.au>.
[Taking this back to the list so they know you have found the problem.]

Good to hear you found the cause. I can confirm that AFAIK javax.xml.ws 
is not present in Java 5.

On 04/08/10 21:57, Jon Strayer wrote:
> Sorry, I thought I mentioned it but it's a compilation failure:  package javax.xml.ws does not exist.
>
> Duh, I was using Java 6 on my laptop and Java 5 on the server.  Eclipse is using JDK 5 so it must be that the javax.xml.ws<http://javax.xml.ws>  package moved into Java SE.
>
> Anyway, thanks.
>
>
> On Wed, Aug 4, 2010 at 1:38 AM, Ben Caradoc-Davies<Be...@csiro.au>  wrote:
> Try "mvn --version" on both and look for differences in Java version and Maven.
>
> For example, if you inadvertently used Java 6 API elements on your laptop and your server builds with Java 5 the build will fail. There are also differences between Maven versions that can have unexpected side-effects.
>
> What is the nature of the failure? Compile or test?
>
>
> On 04/08/10 05:04, Jon Strayer wrote:
> I have a problem where my maven build works fine on my laptop but
> compilation fails on the build server.  I've already blown away both local
> repositories but that didn't help.  I ran help:effective-pom on both but
> there are no unexpected differences.
>
> Do you have any idea what else I should look at?
>
> The fact that the build fails isn't the problem.  That fact that it succeeds
> one place and fails on the other is.
>
>
>
> --
> Ben Caradoc-Davies<Be...@csiro.au>
> Software Engineering Team Leader
> CSIRO Earth Science and Resource Engineering
> Australian Resources Research Centre
>
>
>
> --
> " People who couldn't find Nebraska on a world map are certain that global warming is a left-wing hoax.
> Gene Lyons"
>


-- 
Ben Caradoc-Davies <Be...@csiro.au>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: My build fails on build server by not workstation

Posted by Ben Caradoc-Davies <Be...@csiro.au>.
Try "mvn --version" on both and look for differences in Java version and 
Maven.

For example, if you inadvertently used Java 6 API elements on your 
laptop and your server builds with Java 5 the build will fail. There are 
also differences between Maven versions that can have unexpected 
side-effects.

What is the nature of the failure? Compile or test?

On 04/08/10 05:04, Jon Strayer wrote:
> I have a problem where my maven build works fine on my laptop but
> compilation fails on the build server.  I've already blown away both local
> repositories but that didn't help.  I ran help:effective-pom on both but
> there are no unexpected differences.
>
> Do you have any idea what else I should look at?
>
> The fact that the build fails isn't the problem.  That fact that it succeeds
> one place and fails on the other is.
>


-- 
Ben Caradoc-Davies <Be...@csiro.au>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org