You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Lon Varscsak <lo...@gmail.com> on 2016/09/26 23:30:49 UTC
Compiling from source
Every time I wipe my machine and need to work with the latest SNAPSHOT, I
forget some magic sauce to make the compile work. :)
Outside of running “mvn clean install -Dmaven.test.skip=true” (or even with
tests) what am I missing?
The above command produces:
[ERROR] Failed to execute goal on project cayenne-client: Could not resolve
dependencies for project
org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not find
artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT ->
[Help 1]
Thanks,
Lon
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
Here’s mvn -v:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T09:41:47-07:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12", arch: "x86_64", family: "mac"
On Wed, Sep 28, 2016 at 11:26 PM, Andrus Adamchik <an...@objectstyle.org>
wrote:
> You should be able to successfully run "mvn clean install" or "mvn clean
> verify" with clean Maven repo without any prerequisites against most the
> DBs on OSX and Linux. E.g.:
>
> https://builds.apache.org/view/All/job/cayenne-master/378/
>
> This is why I am confused about your test failures. I checked the output
> file you sent previously - the failures *are* real. Just not reproducible
> on my end.
>
> What's the output of "mvn -v" BTW?
>
> Andrus
>
>
>
> > On Sep 28, 2016, at 8:19 PM, Lon Varscsak <lo...@gmail.com>
> wrote:
> >
> > This gets failsafe failure too:
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify
> > (integration-test) on project cayenne-server: There are test failures.
> >
> > Am I wrong in assuming it should compile with tests without issue (from
> > clean, no .m2 directory)?
> >
> > -Lon
> >
> > On Tue, Sep 27, 2016 at 11:37 PM, Andrus Adamchik <
> andrus@objectstyle.org>
> > wrote:
> >
> >> Also if the failures are HSQL-specific (I can't reproduce it, so hard to
> >> say), perhaps another way to circumvent the failures is to use another
> >> in-memory DB for testing. E.g:
> >>
> >> mvn clean install -DcayenneTestConnection=derby
> >>
> >> Not ideal, but who knows, maybe this will also get it unstuck.
> >>
> >> Andrus
> >>
> >>
> >>> On Sep 28, 2016, at 9:30 AM, Andrus Adamchik <an...@objectstyle.org>
> >> wrote:
> >>>
> >>> Interesting. Didn't know about -skipTests.
> >>>
> >>> And another mystery - why do those tests fail in the first place.
> >>>
> >>> Andrus
> >>>
> >>>
> >>>
> >>>> On Sep 28, 2016, at 9:28 AM, Savva Kolbachev <s....@gmail.com>
> >> wrote:
> >>>>
> >>>>> We are reusing test classes from cayenne-server in testing the
> client.
> >> No
> >>>> easy way around that.
> >>>>
> >>>> Sorry for misunderstanding. I meant that Cayenne should not require
> test
> >>>> classes from cayenne-server for building cayenne-client without
> testing.
> >>>>
> >>>> It happens when you build with -Dmaven.test.skip=true. On the other
> >> hand,
> >>>> if you build with -DskipTests, it will not require test classes from
> >>>> cayenne-server for building cayenne-client and will work great.
> >>>>
> >>>> It is important for those, who just takes the latest version from
> trunk
> >> and
> >>>> wants to build sources without testing. So, if they build
> >> 4.0.M4-SNAPSHOT
> >>>> for the first time and without testing, they might not have
> >>>> cayenne-server:jar:tests:4.0.M4-SNAPSHOT
> >>>> in the local .m2 repo.
> >>>>
> >>>> On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <
> >> andrus@objectstyle.org>
> >>>> wrote:
> >>>>
> >>>>>
> >>>>>> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <
> s.kolbachev@gmail.com>
> >>>>> wrote:
> >>>>>>
> >>>>>> So, your .m2 repository doesn't contain
> >>>>>> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which
> is
> >>>>>> necessary for the cayenne-client. Not sure that it is a correct
> >> behaviour
> >>>>>
> >>>>> We are reusing test classes from cayenne-server in testing the
> client.
> >> No
> >>>>> easy way around that.
> >>>>>
> >>>>> Andrus
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Best Regards,
> >>>> Savva Kolbachev
> >>>
> >>
> >>
>
>
Re: Compiling from source
Posted by Andrus Adamchik <an...@objectstyle.org>.
You should be able to successfully run "mvn clean install" or "mvn clean verify" with clean Maven repo without any prerequisites against most the DBs on OSX and Linux. E.g.:
https://builds.apache.org/view/All/job/cayenne-master/378/
This is why I am confused about your test failures. I checked the output file you sent previously - the failures *are* real. Just not reproducible on my end.
What's the output of "mvn -v" BTW?
Andrus
> On Sep 28, 2016, at 8:19 PM, Lon Varscsak <lo...@gmail.com> wrote:
>
> This gets failsafe failure too:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify
> (integration-test) on project cayenne-server: There are test failures.
>
> Am I wrong in assuming it should compile with tests without issue (from
> clean, no .m2 directory)?
>
> -Lon
>
> On Tue, Sep 27, 2016 at 11:37 PM, Andrus Adamchik <an...@objectstyle.org>
> wrote:
>
>> Also if the failures are HSQL-specific (I can't reproduce it, so hard to
>> say), perhaps another way to circumvent the failures is to use another
>> in-memory DB for testing. E.g:
>>
>> mvn clean install -DcayenneTestConnection=derby
>>
>> Not ideal, but who knows, maybe this will also get it unstuck.
>>
>> Andrus
>>
>>
>>> On Sep 28, 2016, at 9:30 AM, Andrus Adamchik <an...@objectstyle.org>
>> wrote:
>>>
>>> Interesting. Didn't know about -skipTests.
>>>
>>> And another mystery - why do those tests fail in the first place.
>>>
>>> Andrus
>>>
>>>
>>>
>>>> On Sep 28, 2016, at 9:28 AM, Savva Kolbachev <s....@gmail.com>
>> wrote:
>>>>
>>>>> We are reusing test classes from cayenne-server in testing the client.
>> No
>>>> easy way around that.
>>>>
>>>> Sorry for misunderstanding. I meant that Cayenne should not require test
>>>> classes from cayenne-server for building cayenne-client without testing.
>>>>
>>>> It happens when you build with -Dmaven.test.skip=true. On the other
>> hand,
>>>> if you build with -DskipTests, it will not require test classes from
>>>> cayenne-server for building cayenne-client and will work great.
>>>>
>>>> It is important for those, who just takes the latest version from trunk
>> and
>>>> wants to build sources without testing. So, if they build
>> 4.0.M4-SNAPSHOT
>>>> for the first time and without testing, they might not have
>>>> cayenne-server:jar:tests:4.0.M4-SNAPSHOT
>>>> in the local .m2 repo.
>>>>
>>>> On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <
>> andrus@objectstyle.org>
>>>> wrote:
>>>>
>>>>>
>>>>>> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> So, your .m2 repository doesn't contain
>>>>>> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
>>>>>> necessary for the cayenne-client. Not sure that it is a correct
>> behaviour
>>>>>
>>>>> We are reusing test classes from cayenne-server in testing the client.
>> No
>>>>> easy way around that.
>>>>>
>>>>> Andrus
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Savva Kolbachev
>>>
>>
>>
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
This gets failsafe failure too:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify
(integration-test) on project cayenne-server: There are test failures.
Am I wrong in assuming it should compile with tests without issue (from
clean, no .m2 directory)?
-Lon
On Tue, Sep 27, 2016 at 11:37 PM, Andrus Adamchik <an...@objectstyle.org>
wrote:
> Also if the failures are HSQL-specific (I can't reproduce it, so hard to
> say), perhaps another way to circumvent the failures is to use another
> in-memory DB for testing. E.g:
>
> mvn clean install -DcayenneTestConnection=derby
>
> Not ideal, but who knows, maybe this will also get it unstuck.
>
> Andrus
>
>
> > On Sep 28, 2016, at 9:30 AM, Andrus Adamchik <an...@objectstyle.org>
> wrote:
> >
> > Interesting. Didn't know about -skipTests.
> >
> > And another mystery - why do those tests fail in the first place.
> >
> > Andrus
> >
> >
> >
> >> On Sep 28, 2016, at 9:28 AM, Savva Kolbachev <s....@gmail.com>
> wrote:
> >>
> >>> We are reusing test classes from cayenne-server in testing the client.
> No
> >> easy way around that.
> >>
> >> Sorry for misunderstanding. I meant that Cayenne should not require test
> >> classes from cayenne-server for building cayenne-client without testing.
> >>
> >> It happens when you build with -Dmaven.test.skip=true. On the other
> hand,
> >> if you build with -DskipTests, it will not require test classes from
> >> cayenne-server for building cayenne-client and will work great.
> >>
> >> It is important for those, who just takes the latest version from trunk
> and
> >> wants to build sources without testing. So, if they build
> 4.0.M4-SNAPSHOT
> >> for the first time and without testing, they might not have
> >> cayenne-server:jar:tests:4.0.M4-SNAPSHOT
> >> in the local .m2 repo.
> >>
> >> On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <
> andrus@objectstyle.org>
> >> wrote:
> >>
> >>>
> >>>> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com>
> >>> wrote:
> >>>>
> >>>> So, your .m2 repository doesn't contain
> >>>> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
> >>>> necessary for the cayenne-client. Not sure that it is a correct
> behaviour
> >>>
> >>> We are reusing test classes from cayenne-server in testing the client.
> No
> >>> easy way around that.
> >>>
> >>> Andrus
> >>>
> >>>
> >>
> >>
> >> --
> >> Best Regards,
> >> Savva Kolbachev
> >
>
>
Re: Compiling from source
Posted by Andrus Adamchik <an...@objectstyle.org>.
Also if the failures are HSQL-specific (I can't reproduce it, so hard to say), perhaps another way to circumvent the failures is to use another in-memory DB for testing. E.g:
mvn clean install -DcayenneTestConnection=derby
Not ideal, but who knows, maybe this will also get it unstuck.
Andrus
> On Sep 28, 2016, at 9:30 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
>
> Interesting. Didn't know about -skipTests.
>
> And another mystery - why do those tests fail in the first place.
>
> Andrus
>
>
>
>> On Sep 28, 2016, at 9:28 AM, Savva Kolbachev <s....@gmail.com> wrote:
>>
>>> We are reusing test classes from cayenne-server in testing the client. No
>> easy way around that.
>>
>> Sorry for misunderstanding. I meant that Cayenne should not require test
>> classes from cayenne-server for building cayenne-client without testing.
>>
>> It happens when you build with -Dmaven.test.skip=true. On the other hand,
>> if you build with -DskipTests, it will not require test classes from
>> cayenne-server for building cayenne-client and will work great.
>>
>> It is important for those, who just takes the latest version from trunk and
>> wants to build sources without testing. So, if they build 4.0.M4-SNAPSHOT
>> for the first time and without testing, they might not have
>> cayenne-server:jar:tests:4.0.M4-SNAPSHOT
>> in the local .m2 repo.
>>
>> On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <an...@objectstyle.org>
>> wrote:
>>
>>>
>>>> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com>
>>> wrote:
>>>>
>>>> So, your .m2 repository doesn't contain
>>>> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
>>>> necessary for the cayenne-client. Not sure that it is a correct behaviour
>>>
>>> We are reusing test classes from cayenne-server in testing the client. No
>>> easy way around that.
>>>
>>> Andrus
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Savva Kolbachev
>
Re: Compiling from source
Posted by Andrus Adamchik <an...@objectstyle.org>.
Interesting. Didn't know about -skipTests.
And another mystery - why do those tests fail in the first place.
Andrus
> On Sep 28, 2016, at 9:28 AM, Savva Kolbachev <s....@gmail.com> wrote:
>
>> We are reusing test classes from cayenne-server in testing the client. No
> easy way around that.
>
> Sorry for misunderstanding. I meant that Cayenne should not require test
> classes from cayenne-server for building cayenne-client without testing.
>
> It happens when you build with -Dmaven.test.skip=true. On the other hand,
> if you build with -DskipTests, it will not require test classes from
> cayenne-server for building cayenne-client and will work great.
>
> It is important for those, who just takes the latest version from trunk and
> wants to build sources without testing. So, if they build 4.0.M4-SNAPSHOT
> for the first time and without testing, they might not have
> cayenne-server:jar:tests:4.0.M4-SNAPSHOT
> in the local .m2 repo.
>
> On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <an...@objectstyle.org>
> wrote:
>
>>
>>> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com>
>> wrote:
>>>
>>> So, your .m2 repository doesn't contain
>>> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
>>> necessary for the cayenne-client. Not sure that it is a correct behaviour
>>
>> We are reusing test classes from cayenne-server in testing the client. No
>> easy way around that.
>>
>> Andrus
>>
>>
>
>
> --
> Best Regards,
> Savva Kolbachev
Re: Compiling from source
Posted by Savva Kolbachev <s....@gmail.com>.
> We are reusing test classes from cayenne-server in testing the client. No
easy way around that.
Sorry for misunderstanding. I meant that Cayenne should not require test
classes from cayenne-server for building cayenne-client without testing.
It happens when you build with -Dmaven.test.skip=true. On the other hand,
if you build with -DskipTests, it will not require test classes from
cayenne-server for building cayenne-client and will work great.
It is important for those, who just takes the latest version from trunk and
wants to build sources without testing. So, if they build 4.0.M4-SNAPSHOT
for the first time and without testing, they might not have
cayenne-server:jar:tests:4.0.M4-SNAPSHOT
in the local .m2 repo.
On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik <an...@objectstyle.org>
wrote:
>
> > On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com>
> wrote:
> >
> > So, your .m2 repository doesn't contain
> > org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
> > necessary for the cayenne-client. Not sure that it is a correct behaviour
>
> We are reusing test classes from cayenne-server in testing the client. No
> easy way around that.
>
> Andrus
>
>
--
Best Regards,
Savva Kolbachev
Re: Compiling from source
Posted by Andrus Adamchik <an...@objectstyle.org>.
> On Sep 27, 2016, at 11:34 PM, Savva Kolbachev <s....@gmail.com> wrote:
>
> So, your .m2 repository doesn't contain
> org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
> necessary for the cayenne-client. Not sure that it is a correct behaviour
We are reusing test classes from cayenne-server in testing the client. No easy way around that.
Andrus
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
Ah, perfect! Thanks for helping me through it!
Yeah, there’s a lot of documentation that needs updating for 4.0+ :D
-Lon
On Tue, Sep 27, 2016 at 1:48 PM, Savva Kolbachev <s....@gmail.com>
wrote:
> Oh, I've tried again, but this time with -DskipTests instead of
> -Dmaven.test.skip=true.
> And it works fine.
>
> So, just try to build with "mvn clean install -DskipTests". I think we
> should update the documentation.
>
> On Tue, Sep 27, 2016 at 11:34 PM, Savva Kolbachev <s....@gmail.com>
> wrote:
>
> > I've reproduced this by deleting Cayenne folder from a local .m2
> > repository on my mac.
> >
> > The problem is that you are trying to build with -DskipTests before
> > regular build, which just fails on some tests for cayenne-server on your
> > environment. So, your .m2 repository doesn't contain org.apache.cayenne:
> > cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is necessary for the
> > cayenne-client. Not sure that it is a correct behaviour, I think we
> should
> > avoid it somehow. What do you think about it?
> >
> > While we are figuring it out, you could try to build with "mvn clean
> > install -fn" first. But I'm not sure that it will help you. It's strange
> > that you have test failures. Do you have the latest Cayenne version from
> > trunk [1]? And which Java do you use?
> >
> > [1] https://github.com/apache/cayenne
> >
> > On Tue, Sep 27, 2016 at 10:57 PM, Lon Varscsak <lo...@gmail.com>
> > wrote:
> >
> >> That doesn’t succeed either (but fails for a different reason).
> Attached.
> >>
> >> On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev <
> s.kolbachev@gmail.com>
> >> wrote:
> >>
> >>> Hi Lon,
> >>>
> >>> From your output it looks like you just have test failures. Do you
> build
> >>> from trunk?
> >>> Could you also provide build output with -Dmaven.test.skip=true
> >>> or -DskipTests?
> >>>
> >>> Also, you could try to build via "mvn clean install -fn". Build will
> >>> continue even if there are test failures.
> >>>
> >>> On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
> >>> wrote:
> >>>
> >>> > The entire output? 😳 Okay, here it is :)
> >>> >
> >>> > On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com>
> >>> wrote:
> >>> >
> >>> >> Without the entire build output I don't think anyone is going to be
> >>> able
> >>> >> to
> >>> >> help you.
> >>> >>
> >>> >> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <
> lon.varscsak@gmail.com>
> >>> >> wrote:
> >>> >>
> >>> >> > No, I’m on a Mac (Sierra). If I compile with tests, the error
> above
> >>> >> > doesn’t appear, but another error does (similar can’t resolve
> >>> >> > dependencies).
> >>> >> >
> >>> >> > -Lon
> >>> >> >
> >>> >> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
> >>> >> andrus@objectstyle.org>
> >>> >> > wrote:
> >>> >> >
> >>> >> > > Hi Lon,
> >>> >> > >
> >>> >> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
> >>> >> Windows
> >>> >> > by
> >>> >> > > any chance?
> >>> >> > >
> >>> >> > > Andrus
> >>> >> > >
> >>> >> > >
> >>> >> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <
> >>> lon.varscsak@gmail.com>
> >>> >> > > wrote:
> >>> >> > > >
> >>> >> > > > Every time I wipe my machine and need to work with the latest
> >>> >> > SNAPSHOT, I
> >>> >> > > > forget some magic sauce to make the compile work. :)
> >>> >> > > >
> >>> >> > > > Outside of running “mvn clean install -Dmaven.test.skip=true”
> >>> (or
> >>> >> even
> >>> >> > > with
> >>> >> > > > tests) what am I missing?
> >>> >> > > >
> >>> >> > > > The above command produces:
> >>> >> > > >
> >>> >> > > > [ERROR] Failed to execute goal on project cayenne-client:
> Could
> >>> not
> >>> >> > > resolve
> >>> >> > > > dependencies for project
> >>> >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could
> >>> not
> >>> >> find
> >>> >> > > > artifact org.apache.cayenne:cayenne-ser
> >>> ver:jar:tests:4.0.M4-SNAPSHOT
> >>> >> ->
> >>> >> > > > [Help 1]
> >>> >> > > >
> >>> >> > > > Thanks,
> >>> >> > > >
> >>> >> > > > Lon
> >>> >> > >
> >>> >> > >
> >>> >> >
> >>> >>
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> Best Regards,
> >>> Savva Kolbachev
> >>>
> >>
> >>
> >
> >
> > --
> > Best Regards,
> > Savva Kolbachev
> >
>
>
>
> --
> Best Regards,
> Savva Kolbachev
>
Re: Compiling from source
Posted by Michael Gentry <mg...@masslight.net>.
I thought the two options were functionally identical, but apparently not:
http://stackoverflow.com/questions/25639336/whats-the-difference-between-dskiptests-and-dmaven-test-skip-true
On Tue, Sep 27, 2016 at 4:48 PM, Savva Kolbachev <s....@gmail.com>
wrote:
> Oh, I've tried again, but this time with -DskipTests instead of
> -Dmaven.test.skip=true.
> And it works fine.
>
> So, just try to build with "mvn clean install -DskipTests". I think we
> should update the documentation.
>
> On Tue, Sep 27, 2016 at 11:34 PM, Savva Kolbachev <s....@gmail.com>
> wrote:
>
> > I've reproduced this by deleting Cayenne folder from a local .m2
> > repository on my mac.
> >
> > The problem is that you are trying to build with -DskipTests before
> > regular build, which just fails on some tests for cayenne-server on your
> > environment. So, your .m2 repository doesn't contain org.apache.cayenne:
> > cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is necessary for the
> > cayenne-client. Not sure that it is a correct behaviour, I think we
> should
> > avoid it somehow. What do you think about it?
> >
> > While we are figuring it out, you could try to build with "mvn clean
> > install -fn" first. But I'm not sure that it will help you. It's strange
> > that you have test failures. Do you have the latest Cayenne version from
> > trunk [1]? And which Java do you use?
> >
> > [1] https://github.com/apache/cayenne
> >
> > On Tue, Sep 27, 2016 at 10:57 PM, Lon Varscsak <lo...@gmail.com>
> > wrote:
> >
> >> That doesn’t succeed either (but fails for a different reason).
> Attached.
> >>
> >> On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev <
> s.kolbachev@gmail.com>
> >> wrote:
> >>
> >>> Hi Lon,
> >>>
> >>> From your output it looks like you just have test failures. Do you
> build
> >>> from trunk?
> >>> Could you also provide build output with -Dmaven.test.skip=true
> >>> or -DskipTests?
> >>>
> >>> Also, you could try to build via "mvn clean install -fn". Build will
> >>> continue even if there are test failures.
> >>>
> >>> On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
> >>> wrote:
> >>>
> >>> > The entire output? 😳 Okay, here it is :)
> >>> >
> >>> > On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com>
> >>> wrote:
> >>> >
> >>> >> Without the entire build output I don't think anyone is going to be
> >>> able
> >>> >> to
> >>> >> help you.
> >>> >>
> >>> >> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <
> lon.varscsak@gmail.com>
> >>> >> wrote:
> >>> >>
> >>> >> > No, I’m on a Mac (Sierra). If I compile with tests, the error
> above
> >>> >> > doesn’t appear, but another error does (similar can’t resolve
> >>> >> > dependencies).
> >>> >> >
> >>> >> > -Lon
> >>> >> >
> >>> >> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
> >>> >> andrus@objectstyle.org>
> >>> >> > wrote:
> >>> >> >
> >>> >> > > Hi Lon,
> >>> >> > >
> >>> >> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
> >>> >> Windows
> >>> >> > by
> >>> >> > > any chance?
> >>> >> > >
> >>> >> > > Andrus
> >>> >> > >
> >>> >> > >
> >>> >> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <
> >>> lon.varscsak@gmail.com>
> >>> >> > > wrote:
> >>> >> > > >
> >>> >> > > > Every time I wipe my machine and need to work with the latest
> >>> >> > SNAPSHOT, I
> >>> >> > > > forget some magic sauce to make the compile work. :)
> >>> >> > > >
> >>> >> > > > Outside of running “mvn clean install -Dmaven.test.skip=true”
> >>> (or
> >>> >> even
> >>> >> > > with
> >>> >> > > > tests) what am I missing?
> >>> >> > > >
> >>> >> > > > The above command produces:
> >>> >> > > >
> >>> >> > > > [ERROR] Failed to execute goal on project cayenne-client:
> Could
> >>> not
> >>> >> > > resolve
> >>> >> > > > dependencies for project
> >>> >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could
> >>> not
> >>> >> find
> >>> >> > > > artifact org.apache.cayenne:cayenne-ser
> >>> ver:jar:tests:4.0.M4-SNAPSHOT
> >>> >> ->
> >>> >> > > > [Help 1]
> >>> >> > > >
> >>> >> > > > Thanks,
> >>> >> > > >
> >>> >> > > > Lon
> >>> >> > >
> >>> >> > >
> >>> >> >
> >>> >>
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> Best Regards,
> >>> Savva Kolbachev
> >>>
> >>
> >>
> >
> >
> > --
> > Best Regards,
> > Savva Kolbachev
> >
>
>
>
> --
> Best Regards,
> Savva Kolbachev
>
Re: Compiling from source
Posted by Savva Kolbachev <s....@gmail.com>.
Oh, I've tried again, but this time with -DskipTests instead of
-Dmaven.test.skip=true.
And it works fine.
So, just try to build with "mvn clean install -DskipTests". I think we
should update the documentation.
On Tue, Sep 27, 2016 at 11:34 PM, Savva Kolbachev <s....@gmail.com>
wrote:
> I've reproduced this by deleting Cayenne folder from a local .m2
> repository on my mac.
>
> The problem is that you are trying to build with -DskipTests before
> regular build, which just fails on some tests for cayenne-server on your
> environment. So, your .m2 repository doesn't contain org.apache.cayenne:
> cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is necessary for the
> cayenne-client. Not sure that it is a correct behaviour, I think we should
> avoid it somehow. What do you think about it?
>
> While we are figuring it out, you could try to build with "mvn clean
> install -fn" first. But I'm not sure that it will help you. It's strange
> that you have test failures. Do you have the latest Cayenne version from
> trunk [1]? And which Java do you use?
>
> [1] https://github.com/apache/cayenne
>
> On Tue, Sep 27, 2016 at 10:57 PM, Lon Varscsak <lo...@gmail.com>
> wrote:
>
>> That doesn’t succeed either (but fails for a different reason). Attached.
>>
>> On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev <s....@gmail.com>
>> wrote:
>>
>>> Hi Lon,
>>>
>>> From your output it looks like you just have test failures. Do you build
>>> from trunk?
>>> Could you also provide build output with -Dmaven.test.skip=true
>>> or -DskipTests?
>>>
>>> Also, you could try to build via "mvn clean install -fn". Build will
>>> continue even if there are test failures.
>>>
>>> On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
>>> wrote:
>>>
>>> > The entire output? 😳 Okay, here it is :)
>>> >
>>> > On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com>
>>> wrote:
>>> >
>>> >> Without the entire build output I don't think anyone is going to be
>>> able
>>> >> to
>>> >> help you.
>>> >>
>>> >> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com>
>>> >> wrote:
>>> >>
>>> >> > No, I’m on a Mac (Sierra). If I compile with tests, the error above
>>> >> > doesn’t appear, but another error does (similar can’t resolve
>>> >> > dependencies).
>>> >> >
>>> >> > -Lon
>>> >> >
>>> >> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
>>> >> andrus@objectstyle.org>
>>> >> > wrote:
>>> >> >
>>> >> > > Hi Lon,
>>> >> > >
>>> >> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
>>> >> Windows
>>> >> > by
>>> >> > > any chance?
>>> >> > >
>>> >> > > Andrus
>>> >> > >
>>> >> > >
>>> >> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <
>>> lon.varscsak@gmail.com>
>>> >> > > wrote:
>>> >> > > >
>>> >> > > > Every time I wipe my machine and need to work with the latest
>>> >> > SNAPSHOT, I
>>> >> > > > forget some magic sauce to make the compile work. :)
>>> >> > > >
>>> >> > > > Outside of running “mvn clean install -Dmaven.test.skip=true”
>>> (or
>>> >> even
>>> >> > > with
>>> >> > > > tests) what am I missing?
>>> >> > > >
>>> >> > > > The above command produces:
>>> >> > > >
>>> >> > > > [ERROR] Failed to execute goal on project cayenne-client: Could
>>> not
>>> >> > > resolve
>>> >> > > > dependencies for project
>>> >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could
>>> not
>>> >> find
>>> >> > > > artifact org.apache.cayenne:cayenne-ser
>>> ver:jar:tests:4.0.M4-SNAPSHOT
>>> >> ->
>>> >> > > > [Help 1]
>>> >> > > >
>>> >> > > > Thanks,
>>> >> > > >
>>> >> > > > Lon
>>> >> > >
>>> >> > >
>>> >> >
>>> >>
>>> >
>>> >
>>>
>>>
>>> --
>>> Best Regards,
>>> Savva Kolbachev
>>>
>>
>>
>
>
> --
> Best Regards,
> Savva Kolbachev
>
--
Best Regards,
Savva Kolbachev
Re: Compiling from source
Posted by Savva Kolbachev <s....@gmail.com>.
I've reproduced this by deleting Cayenne folder from a local .m2 repository
on my mac.
The problem is that you are trying to build with -DskipTests before regular
build, which just fails on some tests for cayenne-server on your
environment. So, your .m2 repository doesn't contain
org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT, which is
necessary for the cayenne-client. Not sure that it is a correct behaviour,
I think we should avoid it somehow. What do you think about it?
While we are figuring it out, you could try to build with "mvn clean
install -fn" first. But I'm not sure that it will help you. It's strange
that you have test failures. Do you have the latest Cayenne version from
trunk [1]? And which Java do you use?
[1] https://github.com/apache/cayenne
On Tue, Sep 27, 2016 at 10:57 PM, Lon Varscsak <lo...@gmail.com>
wrote:
> That doesn’t succeed either (but fails for a different reason). Attached.
>
> On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev <s....@gmail.com>
> wrote:
>
>> Hi Lon,
>>
>> From your output it looks like you just have test failures. Do you build
>> from trunk?
>> Could you also provide build output with -Dmaven.test.skip=true
>> or -DskipTests?
>>
>> Also, you could try to build via "mvn clean install -fn". Build will
>> continue even if there are test failures.
>>
>> On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
>> wrote:
>>
>> > The entire output? 😳 Okay, here it is :)
>> >
>> > On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com> wrote:
>> >
>> >> Without the entire build output I don't think anyone is going to be
>> able
>> >> to
>> >> help you.
>> >>
>> >> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com>
>> >> wrote:
>> >>
>> >> > No, I’m on a Mac (Sierra). If I compile with tests, the error above
>> >> > doesn’t appear, but another error does (similar can’t resolve
>> >> > dependencies).
>> >> >
>> >> > -Lon
>> >> >
>> >> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
>> >> andrus@objectstyle.org>
>> >> > wrote:
>> >> >
>> >> > > Hi Lon,
>> >> > >
>> >> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
>> >> Windows
>> >> > by
>> >> > > any chance?
>> >> > >
>> >> > > Andrus
>> >> > >
>> >> > >
>> >> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <
>> lon.varscsak@gmail.com>
>> >> > > wrote:
>> >> > > >
>> >> > > > Every time I wipe my machine and need to work with the latest
>> >> > SNAPSHOT, I
>> >> > > > forget some magic sauce to make the compile work. :)
>> >> > > >
>> >> > > > Outside of running “mvn clean install -Dmaven.test.skip=true” (or
>> >> even
>> >> > > with
>> >> > > > tests) what am I missing?
>> >> > > >
>> >> > > > The above command produces:
>> >> > > >
>> >> > > > [ERROR] Failed to execute goal on project cayenne-client: Could
>> not
>> >> > > resolve
>> >> > > > dependencies for project
>> >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not
>> >> find
>> >> > > > artifact org.apache.cayenne:cayenne-ser
>> ver:jar:tests:4.0.M4-SNAPSHOT
>> >> ->
>> >> > > > [Help 1]
>> >> > > >
>> >> > > > Thanks,
>> >> > > >
>> >> > > > Lon
>> >> > >
>> >> > >
>> >> >
>> >>
>> >
>> >
>>
>>
>> --
>> Best Regards,
>> Savva Kolbachev
>>
>
>
--
Best Regards,
Savva Kolbachev
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
That doesn’t succeed either (but fails for a different reason). Attached.
On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev <s....@gmail.com>
wrote:
> Hi Lon,
>
> From your output it looks like you just have test failures. Do you build
> from trunk?
> Could you also provide build output with -Dmaven.test.skip=true
> or -DskipTests?
>
> Also, you could try to build via "mvn clean install -fn". Build will
> continue even if there are test failures.
>
> On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
> wrote:
>
> > The entire output? 😳 Okay, here it is :)
> >
> > On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com> wrote:
> >
> >> Without the entire build output I don't think anyone is going to be able
> >> to
> >> help you.
> >>
> >> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com>
> >> wrote:
> >>
> >> > No, I’m on a Mac (Sierra). If I compile with tests, the error above
> >> > doesn’t appear, but another error does (similar can’t resolve
> >> > dependencies).
> >> >
> >> > -Lon
> >> >
> >> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
> >> andrus@objectstyle.org>
> >> > wrote:
> >> >
> >> > > Hi Lon,
> >> > >
> >> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
> >> Windows
> >> > by
> >> > > any chance?
> >> > >
> >> > > Andrus
> >> > >
> >> > >
> >> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lon.varscsak@gmail.com
> >
> >> > > wrote:
> >> > > >
> >> > > > Every time I wipe my machine and need to work with the latest
> >> > SNAPSHOT, I
> >> > > > forget some magic sauce to make the compile work. :)
> >> > > >
> >> > > > Outside of running “mvn clean install -Dmaven.test.skip=true” (or
> >> even
> >> > > with
> >> > > > tests) what am I missing?
> >> > > >
> >> > > > The above command produces:
> >> > > >
> >> > > > [ERROR] Failed to execute goal on project cayenne-client: Could
> not
> >> > > resolve
> >> > > > dependencies for project
> >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not
> >> find
> >> > > > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-
> SNAPSHOT
> >> ->
> >> > > > [Help 1]
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > > Lon
> >> > >
> >> > >
> >> >
> >>
> >
> >
>
>
> --
> Best Regards,
> Savva Kolbachev
>
Re: Compiling from source
Posted by Savva Kolbachev <s....@gmail.com>.
Hi Lon,
From your output it looks like you just have test failures. Do you build
from trunk?
Could you also provide build output with -Dmaven.test.skip=true
or -DskipTests?
Also, you could try to build via "mvn clean install -fn". Build will
continue even if there are test failures.
On Tue, Sep 27, 2016 at 8:46 PM, Lon Varscsak <lo...@gmail.com>
wrote:
> The entire output? 😳 Okay, here it is :)
>
> On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com> wrote:
>
>> Without the entire build output I don't think anyone is going to be able
>> to
>> help you.
>>
>> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com>
>> wrote:
>>
>> > No, I’m on a Mac (Sierra). If I compile with tests, the error above
>> > doesn’t appear, but another error does (similar can’t resolve
>> > dependencies).
>> >
>> > -Lon
>> >
>> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <
>> andrus@objectstyle.org>
>> > wrote:
>> >
>> > > Hi Lon,
>> > >
>> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on
>> Windows
>> > by
>> > > any chance?
>> > >
>> > > Andrus
>> > >
>> > >
>> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lo...@gmail.com>
>> > > wrote:
>> > > >
>> > > > Every time I wipe my machine and need to work with the latest
>> > SNAPSHOT, I
>> > > > forget some magic sauce to make the compile work. :)
>> > > >
>> > > > Outside of running “mvn clean install -Dmaven.test.skip=true” (or
>> even
>> > > with
>> > > > tests) what am I missing?
>> > > >
>> > > > The above command produces:
>> > > >
>> > > > [ERROR] Failed to execute goal on project cayenne-client: Could not
>> > > resolve
>> > > > dependencies for project
>> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not
>> find
>> > > > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT
>> ->
>> > > > [Help 1]
>> > > >
>> > > > Thanks,
>> > > >
>> > > > Lon
>> > >
>> > >
>> >
>>
>
>
--
Best Regards,
Savva Kolbachev
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
The entire output? 😳 Okay, here it is :)
On Tue, Sep 27, 2016 at 8:00 AM, John Huss <jo...@gmail.com> wrote:
> Without the entire build output I don't think anyone is going to be able to
> help you.
>
> On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com>
> wrote:
>
> > No, I’m on a Mac (Sierra). If I compile with tests, the error above
> > doesn’t appear, but another error does (similar can’t resolve
> > dependencies).
> >
> > -Lon
> >
> > On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <andrus@objectstyle.org
> >
> > wrote:
> >
> > > Hi Lon,
> > >
> > > On OS X and Linux Cayenne compiles fine, with tests. Are you on Windows
> > by
> > > any chance?
> > >
> > > Andrus
> > >
> > >
> > > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lo...@gmail.com>
> > > wrote:
> > > >
> > > > Every time I wipe my machine and need to work with the latest
> > SNAPSHOT, I
> > > > forget some magic sauce to make the compile work. :)
> > > >
> > > > Outside of running “mvn clean install -Dmaven.test.skip=true” (or
> even
> > > with
> > > > tests) what am I missing?
> > > >
> > > > The above command produces:
> > > >
> > > > [ERROR] Failed to execute goal on project cayenne-client: Could not
> > > resolve
> > > > dependencies for project
> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not
> find
> > > > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT
> ->
> > > > [Help 1]
> > > >
> > > > Thanks,
> > > >
> > > > Lon
> > >
> > >
> >
>
Re: Compiling from source
Posted by John Huss <jo...@gmail.com>.
Without the entire build output I don't think anyone is going to be able to
help you.
On Tue, Sep 27, 2016 at 9:56 AM Lon Varscsak <lo...@gmail.com> wrote:
> No, I’m on a Mac (Sierra). If I compile with tests, the error above
> doesn’t appear, but another error does (similar can’t resolve
> dependencies).
>
> -Lon
>
> On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <an...@objectstyle.org>
> wrote:
>
> > Hi Lon,
> >
> > On OS X and Linux Cayenne compiles fine, with tests. Are you on Windows
> by
> > any chance?
> >
> > Andrus
> >
> >
> > > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lo...@gmail.com>
> > wrote:
> > >
> > > Every time I wipe my machine and need to work with the latest
> SNAPSHOT, I
> > > forget some magic sauce to make the compile work. :)
> > >
> > > Outside of running “mvn clean install -Dmaven.test.skip=true” (or even
> > with
> > > tests) what am I missing?
> > >
> > > The above command produces:
> > >
> > > [ERROR] Failed to execute goal on project cayenne-client: Could not
> > resolve
> > > dependencies for project
> > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not find
> > > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT ->
> > > [Help 1]
> > >
> > > Thanks,
> > >
> > > Lon
> >
> >
>
Re: Compiling from source
Posted by Lon Varscsak <lo...@gmail.com>.
No, I’m on a Mac (Sierra). If I compile with tests, the error above
doesn’t appear, but another error does (similar can’t resolve dependencies).
-Lon
On Tue, Sep 27, 2016 at 1:13 AM, Andrus Adamchik <an...@objectstyle.org>
wrote:
> Hi Lon,
>
> On OS X and Linux Cayenne compiles fine, with tests. Are you on Windows by
> any chance?
>
> Andrus
>
>
> > On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lo...@gmail.com>
> wrote:
> >
> > Every time I wipe my machine and need to work with the latest SNAPSHOT, I
> > forget some magic sauce to make the compile work. :)
> >
> > Outside of running “mvn clean install -Dmaven.test.skip=true” (or even
> with
> > tests) what am I missing?
> >
> > The above command produces:
> >
> > [ERROR] Failed to execute goal on project cayenne-client: Could not
> resolve
> > dependencies for project
> > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not find
> > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT ->
> > [Help 1]
> >
> > Thanks,
> >
> > Lon
>
>
Re: Compiling from source
Posted by Andrus Adamchik <an...@objectstyle.org>.
Hi Lon,
On OS X and Linux Cayenne compiles fine, with tests. Are you on Windows by any chance?
Andrus
> On Sep 27, 2016, at 2:30 AM, Lon Varscsak <lo...@gmail.com> wrote:
>
> Every time I wipe my machine and need to work with the latest SNAPSHOT, I
> forget some magic sauce to make the compile work. :)
>
> Outside of running “mvn clean install -Dmaven.test.skip=true” (or even with
> tests) what am I missing?
>
> The above command produces:
>
> [ERROR] Failed to execute goal on project cayenne-client: Could not resolve
> dependencies for project
> org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not find
> artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT ->
> [Help 1]
>
> Thanks,
>
> Lon