You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Robert Zeigler <ro...@roxanemy.com> on 2009/05/05 06:27:56 UTC

build failure

Apparently hudson isn't the only system having issues building  
cayenne. I am, too. :)

After nuking the cayenne portion of my local repo, I did:

mvn clean package

which resulted in the following failure:

[INFO] Building jar: /Users/robertz/Programming/java/svn/cayenne/3.0/ 
build-tools/maven-cayenne-doc-plugin/target/maven-cayenne-doc- 
plugin-3.0-SNAPSHOT.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO]  
------------------------------------------------------------------------
[INFO] Building Cayenne Build Tools Parent
[INFO]    task-segment: [clean, package]
[INFO]  
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [site:attach-descriptor]
[INFO]  
------------------------------------------------------------------------
[INFO] Building Cayenne License and Notice Bundle
[INFO]    task-segment: [clean, package]
[INFO]  
------------------------------------------------------------------------
[INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
plugin: checking for updates from Maven Central Repo
[INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
plugin: checking for updates from central
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.cayenne.build-tools:maven-cayenne-build- 
plugin' does not exist or no valid version could be found
[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Mon May 04 23:14:15 CDT 2009
[INFO] Final Memory: 17M/33M
[INFO]  
------------------------------------------------------------------------

However, if I do:

mvn clean install

the build progresses, but fails on some generator-related tests:

    
testSingleClassesCustTemplate 
(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
   testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
   testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
   testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
   testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
   testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
    
testPairsEmbeddable3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
    
testCrossDataMapRelationships 
(org.apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)

I don't have time to look at this more tonight, but wanted to mention  
it; looks like it might be related to the new cayenne-tools changes?

Robert

Re: build failure

Posted by Robert Zeigler <ro...@puregumption.com>.
That's what I did first. :)

Robert

On May 5, 2009, at 5/51:10 AM , Kevin Menard wrote:

> Can you try blowing away any artifacts you have in your local  
> repository?
> I'm just trying to narrow down the potential sources of failure.
> -- 
> Thanks,
> Kevin
>
>
> On Tue, May 5, 2009 at 12:27 AM, Robert Zeigler <robert.zeigler@roxanemy.com
>> wrote:
>
>> Apparently hudson isn't the only system having issues building  
>> cayenne. I
>> am, too. :)
>>
>> After nuking the cayenne portion of my local repo, I did:
>>
>> mvn clean package
>>
>> which resulted in the following failure:
>>
>> [INFO] Building jar:
>> /Users/robertz/Programming/java/svn/cayenne/3.0/build-tools/maven- 
>> cayenne-doc-plugin/target/maven-cayenne-doc-plugin-3.0-SNAPSHOT.jar
>> [INFO] [plugin:addPluginArtifactMetadata]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Cayenne Build Tools Parent
>> [INFO]    task-segment: [clean, package]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean]
>> [INFO] [site:attach-descriptor]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Cayenne License and Notice Bundle
>> [INFO]    task-segment: [clean, package]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
>> plugin:
>> checking for updates from Maven Central Repo
>> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
>> plugin:
>> checking for updates from central
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin
>> 'org.apache.cayenne.build-tools:maven-cayenne-build-plugin' does  
>> not exist
>> or no valid version could be found
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 16 seconds
>> [INFO] Finished at: Mon May 04 23:14:15 CDT 2009
>> [INFO] Final Memory: 17M/33M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> However, if I do:
>>
>> mvn clean install
>>
>> the build progresses, but fails on some generator-related tests:
>>
>>
>> testSingleClassesCustTemplate 
>> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairsEmbeddable3 
>> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>>
>> testCrossDataMapRelationships 
>> (org 
>> .apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)
>>
>> I don't have time to look at this more tonight, but wanted to  
>> mention it;
>> looks like it might be related to the new cayenne-tools changes?
>>
>> Robert
>>


Re: build failure

Posted by Kevin Menard <ni...@gmail.com>.
Can you try blowing away any artifacts you have in your local repository?
 I'm just trying to narrow down the potential sources of failure.
-- 
Thanks,
Kevin


On Tue, May 5, 2009 at 12:27 AM, Robert Zeigler <robert.zeigler@roxanemy.com
> wrote:

> Apparently hudson isn't the only system having issues building cayenne. I
> am, too. :)
>
> After nuking the cayenne portion of my local repo, I did:
>
> mvn clean package
>
> which resulted in the following failure:
>
> [INFO] Building jar:
> /Users/robertz/Programming/java/svn/cayenne/3.0/build-tools/maven-cayenne-doc-plugin/target/maven-cayenne-doc-plugin-3.0-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Cayenne Build Tools Parent
> [INFO]    task-segment: [clean, package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Cayenne License and Notice Bundle
> [INFO]    task-segment: [clean, package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build-plugin:
> checking for updates from Maven Central Repo
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build-plugin:
> checking for updates from central
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin
> 'org.apache.cayenne.build-tools:maven-cayenne-build-plugin' does not exist
> or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 16 seconds
> [INFO] Finished at: Mon May 04 23:14:15 CDT 2009
> [INFO] Final Memory: 17M/33M
> [INFO]
> ------------------------------------------------------------------------
>
> However, if I do:
>
> mvn clean install
>
> the build progresses, but fails on some generator-related tests:
>
>
>  testSingleClassesCustTemplate(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairsEmbeddable3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>
>  testCrossDataMapRelationships(org.apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)
>
> I don't have time to look at this more tonight, but wanted to mention it;
> looks like it might be related to the new cayenne-tools changes?
>
> Robert
>

Re: build failure

Posted by Andrus Adamchik <an...@objectstyle.org>.
You probably need "mvn clean install" on the first build after  
cleaning the repo.

I just did cleanup on my machine and "install" works.

Andrus


On May 5, 2009, at 12:27 AM, Robert Zeigler wrote:
> Apparently hudson isn't the only system having issues building  
> cayenne. I am, too. :)
>
> After nuking the cayenne portion of my local repo, I did:
>
> mvn clean package
>
> which resulted in the following failure:
>
> [INFO] Building jar: /Users/robertz/Programming/java/svn/cayenne/3.0/ 
> build-tools/maven-cayenne-doc-plugin/target/maven-cayenne-doc- 
> plugin-3.0-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Cayenne Build Tools Parent
> [INFO]    task-segment: [clean, package]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Cayenne License and Notice Bundle
> [INFO]    task-segment: [clean, package]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
> plugin: checking for updates from Maven Central Repo
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
> plugin: checking for updates from central
> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.cayenne.build-tools:maven-cayenne- 
> build-plugin' does not exist or no valid version could be found
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 16 seconds
> [INFO] Finished at: Mon May 04 23:14:15 CDT 2009
> [INFO] Final Memory: 17M/33M
> [INFO]  
> ------------------------------------------------------------------------
>
> However, if I do:
>
> mvn clean install
>
> the build progresses, but fails on some generator-related tests:
>
>   
> testSingleClassesCustTemplate 
> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>   
> testPairsEmbeddable3 
> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>   
> testCrossDataMapRelationships 
> (org 
> .apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)
>
> I don't have time to look at this more tonight, but wanted to  
> mention it; looks like it might be related to the new cayenne-tools  
> changes?
>
> Robert
>


Re: build failure

Posted by Michael Gentry <mg...@masslight.net>.
That's why I usually skip the tests ...   :-)


On Tue, May 5, 2009 at 12:27 AM, Robert Zeigler
<ro...@roxanemy.com> wrote:
> Apparently hudson isn't the only system having issues building cayenne. I
> am, too. :)

Re: build failure

Posted by Robert Zeigler <ro...@roxanemy.com>.
mvm -DskipTests clean install

works.

Robert

On May 5, 2009, at 5/59:17 AM , Andrus Adamchik wrote:

> You probably need "mvn clean install" on the first build after  
> cleaning the repo.
>
> I just did cleanup on my machine and "install" works.
>
> Andrus
>
> On May 5, 2009, at 12:27 AM, Robert Zeigler wrote:
>
>> Apparently hudson isn't the only system having issues building  
>> cayenne. I am, too. :)
>>
>> After nuking the cayenne portion of my local repo, I did:
>>
>> mvn clean package
>>
>> which resulted in the following failure:
>>
>> [INFO] Building jar: /Users/robertz/Programming/java/svn/cayenne/ 
>> 3.0/build-tools/maven-cayenne-doc-plugin/target/maven-cayenne-doc- 
>> plugin-3.0-SNAPSHOT.jar
>> [INFO] [plugin:addPluginArtifactMetadata]
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Building Cayenne Build Tools Parent
>> [INFO]    task-segment: [clean, package]
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean]
>> [INFO] [site:attach-descriptor]
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Building Cayenne License and Notice Bundle
>> [INFO]    task-segment: [clean, package]
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
>> plugin: checking for updates from Maven Central Repo
>> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
>> plugin: checking for updates from central
>> [INFO]  
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.cayenne.build-tools:maven-cayenne- 
>> build-plugin' does not exist or no valid version could be found
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Total time: 16 seconds
>> [INFO] Finished at: Mon May 04 23:14:15 CDT 2009
>> [INFO] Final Memory: 17M/33M
>> [INFO]  
>> ------------------------------------------------------------------------
>>
>> However, if I do:
>>
>> mvn clean install
>>
>> the build progresses, but fails on some generator-related tests:
>>
>> testSingleClassesCustTemplate 
>> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testPairsEmbeddable3 
>> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>> testCrossDataMapRelationships 
>> (org 
>> .apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)
>>
>> I don't have time to look at this more tonight, but wanted to  
>> mention it; looks like it might be related to the new cayenne-tools  
>> changes?
>>
>> Robert
>>
>


Re: build failure

Posted by Demetrios Kyriakis <de...@gmail.com>.
>> Try this to ensure everything is built fresh and nothing is downloaded 
>> from the repo:
>>
>>   rm -rf ~/.m2/repository/org/apache/cayenne/
> I deleted manually everything from M2 repo directory (I'm using windows)
Typo from my side:
I deleted manually everything from *that* M2 repo directory (i.e. the
equivalent directory on windows
c:\Users\$username\.m2\repository\org\apache\cayenne
)

>>   mvn -o clean install
> Off line mode gives a similar error :(.
> (I also used -Dmaven.test.skip=true since without this the
> build breaks always in the tests - ever since Cayenne was mavenized)
> 
> =================================================================================== 
> 
> ....
> [INFO]------------------------------------------------------------------------ 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.cayenne 
> -DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
> g=jar -Dfile=/path/to/file
> 
>   Alternatively, if you host your own repository you can deploy the file 
> there:
>       mvn deploy:deploy-file -DgroupId=org.apache.cayenne 
> -DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
> jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> 
>   Path to dependency:
>         1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
>         2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact:
>   org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)
> 
> 
> 
> NOTE: Maven is executing in offline mode. Any artifacts not already in 
> your local
> repository will be inaccessible.
> 
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 33 seconds
> [INFO] Finished at: Tue May 05 17:07:38 CEST 2009
> [INFO] Final Memory: 36M/63M
> [INFO] 
> ------------------------------------------------------------------------
> 
> 


Re: build failure

Posted by Michael Gentry <mg...@masslight.net>.
FWIW, I just did:

svn update
mvn clean
mvn -P mac install

Everything built for me.  OS X 10.4, Java 1.5.

Re: build failure

Posted by Andrey Razumovsky <ra...@gmail.com>.
Hi,

Try to build after new update. At least for me this helped to build under
java 1.6

Regards,
Andrey

2009/5/6 Adrian A. <a....@gmail.com>

> Please stop with the maven bashing in every message.
>>
> It's not bashing - it's simply the sad reality. Evey time I try to do
> something for Cayenne(or another mavenized project), I end up spending
> uselessly hours with maven problems instead of contributing with something
> useful :(.
> Others already gave up: whey they see that a project has only maven, they
> don't even try to contribute anymore :(.
>
>  Like all things, there are pros and cons.
>>
> You are right, except that some "cons" are simply K.O., and the result is
> that they exclude most users from contributing :(.
>
>  At the end of the day, we're not moving from maven to ant.  So, the best
>> we
>> can do is try to make things work as smoothly with maven as we can.  Up
>> until now, you haven't provided any output that would help in debugging
>> the
>> issue.
>>
> IntelliJ has a nice ANT language level debugger. Unfortunately there's none
> for maven :(.
>
>  Are you running into the exact same problems at Demetrios?
>>
> Yes of course. I received his stack trace. Just my working directory is
> different.
>
> Maybe the before mentioned help document:
> http://cayenne.apache.org/building-cayenne.html
> could be extended by some maven guru (since normal users can't) with some
> troubleshooting steps when things go wrong (or at least what else to try
> before asking on the lists)
>
> A.
>
>
>
>

Re: build failure

Posted by Lachlan Deck <la...@gmail.com>.
Not wanting to prolong this thread... but:

On 06/05/2009, at 7:25 PM, Adrian A. wrote:

>> Please stop with the maven bashing in every message.
> It's not bashing - it's simply the sad reality.

The reality seems more like - "You're unfamiliar with maven". So it's  
understandable that whilst you remain unfamiliar with maven you'll  
feel like you can't do anything useful with it. But there's nothing  
stopping you from reading up on it.

Sure there's a bit of a learning curve to begin with - but a little  
reading goes a long way. I started with it (from scratch) at the  
beginning of last year and sure there's stuff that I don't know but  
google usually turns up an answer quite quickly whenever I need more.

> Evey time I try to do something for Cayenne(or another mavenized  
> project), I end up spending uselessly hours with maven problems  
> instead of contributing with something useful :(.

Join the maven mailing list and ask questions instead of stabbing in  
the dark or complaining it's all too hard. Or ask others who know.

> Others already gave up: whey they see that a project has only maven,  
> they don't even try to contribute anymore :(.

Giving up just because you don't understand something yet is sad.

>> Like all things, there are pros and cons.
> You are right, except that some "cons" are simply K.O., and the  
> result is that they exclude most users from contributing :(.

Contributing what?
If you're a developer .. you can learn new stuff rather than insisting  
that every project uses the only build technology you're familiar with.

>> At the end of the day, we're not moving from maven to ant.  So, the  
>> best we
>> can do is try to make things work as smoothly with maven as we  
>> can.  Up
>> until now, you haven't provided any output that would help in  
>> debugging the
>> issue.
> IntelliJ has a nice ANT language level debugger. Unfortunately  
> there's none for maven :(.

You do know that you can very easily integrate ant tasks with maven  
right? If there's no maven equivalent - which would surprise me - then  
define an ant task within maven.

Where there's a will there's a way...

with regards,
--

Lachlan Deck


Re: build failure

Posted by "Adrian A." <a....@gmail.com>.
> Please stop with the maven bashing in every message.  
It's not bashing - it's simply the sad reality. Evey time I try to do 
something for Cayenne(or another mavenized project), I end up spending 
uselessly hours with maven problems instead of contributing with 
something useful :(.
Others already gave up: whey they see that a project has only maven, 
they don't even try to contribute anymore :(.

> Like all things, there are pros and cons.
You are right, except that some "cons" are simply K.O., and the result 
is that they exclude most users from contributing :(.

> At the end of the day, we're not moving from maven to ant.  So, the best we
> can do is try to make things work as smoothly with maven as we can.  Up
> until now, you haven't provided any output that would help in debugging the
> issue.  
IntelliJ has a nice ANT language level debugger. Unfortunately there's 
none for maven :(.

> Are you running into the exact same problems at Demetrios?
Yes of course. I received his stack trace. Just my working directory is 
different.

Maybe the before mentioned help document:
http://cayenne.apache.org/building-cayenne.html
could be extended by some maven guru (since normal users can't) with 
some troubleshooting steps when things go wrong (or at least what else 
to try before asking on the lists)

A.




Re: build failure

Posted by Kevin Menard <ni...@gmail.com>.
There's a difference between the compiler level and the libraries included
with the JDK you are using.  maven is set to use the jdk 1.5 compiler level.
 JDBC between Java 5 and Java 6 is not compatible.  Interfaces were changed.
Please stop with the maven bashing in every message.  It really adds nothing
to the conversation and the problem here is probably something I did, not
maven.  The reality is that if we were using ant, none of this would be a
problem because I'd still be messing around with the assembly script to
build the cayenne-tools module.  Like all things, there are pros and cons.

At the end of the day, we're not moving from maven to ant.  So, the best we
can do is try to make things work as smoothly with maven as we can.  Up
until now, you haven't provided any output that would help in debugging the
issue.  Are you running into the exact same problems at Demetrios?

-- 
Kevin


On Tue, May 5, 2009 at 6:48 PM, Adrian A. <a....@gmail.com> wrote:

> For one thing you must use Java 1.5.
>>
> AFAIK Java *is* backwards compatible and allows to set
> an language level for the compiler - there's no need to
> have several old JDK versions installed.
> With ANT the user can set the required level (and it's considered
> a good practice to do so) ,e.g.:
> <javac srcdir="${src}" destdir="${build}" source="1.4"/>
>
> I suppose something similar should be available for maven too.
>
> Again, the problem still remains: the average user can't build (at least
> not always), but worst, can't fix the problem itself like with ANT :(.
>
> A.
>
>

Re: build failure

Posted by "Adrian A." <a....@gmail.com>.
> For one thing you must use Java 1.5.
AFAIK Java *is* backwards compatible and allows to set
an language level for the compiler - there's no need to
have several old JDK versions installed.
With ANT the user can set the required level (and it's considered
a good practice to do so) ,e.g.:
<javac srcdir="${src}" destdir="${build}" source="1.4"/>

I suppose something similar should be available for maven too.

Again, the problem still remains: the average user can't build (at least 
not always), but worst, can't fix the problem itself like with ANT :(.

A.


Re: build failure

Posted by Andrus Adamchik <an...@objectstyle.org>.
For one thing you must use Java 1.5.

On May 5, 2009, at 5:45 PM, Adrian A. wrote:

>> I'm not sure what could be wrong.  It seems most people have been  
>> able to
>> build.
> I can't build either :(.
> (wanted to try the new ANT task for reverse engineering to give some  
> feedback).
>
> Other users I've quickly asked were also not able to build it.
> (common seems to be: Windows and jdk 1.6.x)
>
>> I can deploy the snapshots, which would at least you use them
>> without having to build yourself.
> I would be more happy to simply be able to build it, i.e. when  
> following the documentation instructions from
> http://cayenne.apache.org/building-cayenne.html
> to be able to have a result.
>
> With ANT such a thing would never happen :(.
>
> A.
>
>


Re: build failure

Posted by "Adrian A." <a....@gmail.com>.
> I'm not sure what could be wrong.  It seems most people have been able to
> build.  
I can't build either :(.
(wanted to try the new ANT task for reverse engineering to give some 
feedback).

Other users I've quickly asked were also not able to build it.
(common seems to be: Windows and jdk 1.6.x)

> I can deploy the snapshots, which would at least you use them
> without having to build yourself.  
I would be more happy to simply be able to build it, i.e. when following 
the documentation instructions from
http://cayenne.apache.org/building-cayenne.html
to be able to have a result.

With ANT such a thing would never happen :(.

A.


Re: build failure

Posted by Kevin Menard <ni...@gmail.com>.
I'm not sure what could be wrong.  It seems most people have been able to
build.  I can deploy the snapshots, which would at least you use them
without having to build yourself.  I was holding off until at least one
other dev confirmed that I didn't just totally bork the project structure.
-- 
Kevin


On Tue, May 5, 2009 at 11:45 AM, Demetrios Kyriakis <
demetrios.kyriakis@gmail.com> wrote:

> One more thing to check - Maven version, which may cause the different
>> behavior:
>>
>> $ mvn -v
>> Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
>> Java version: 1.5.0_16
>>
> Mine is:
> =============================
> c:\work\cayenne>mvn -v
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_07
> ...
> =============================
>
>

Re: build failure

Posted by Demetrios Kyriakis <de...@gmail.com>.
> One more thing to check - Maven version, which may cause the different 
> behavior:
> 
> $ mvn -v
> Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
> Java version: 1.5.0_16
Mine is:
=============================
c:\work\cayenne>mvn -v
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.6.0_07
...
=============================


Re: build failure

Posted by Andrus Adamchik <an...@objectstyle.org>.
One more thing to check - Maven version, which may cause the different  
behavior:

$ mvn -v
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
Java version: 1.5.0_16

Andrus

On May 5, 2009, at 11:12 AM, Demetrios Kyriakis wrote:

>> Try this to ensure everything is built fresh and nothing is  
>> downloaded from the repo:
>>  rm -rf ~/.m2/repository/org/apache/cayenne/
> I deleted manually everything from M2 repo directory (I'm using  
> windows)
>
>>  mvn -o clean install
> Off line mode gives a similar error :(.
> (I also used -Dmaven.test.skip=true since without this the
> build breaks always in the tests - ever since Cayenne was mavenized)
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> ....
> [INFO 
> ]------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.cayenne - 
> DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
> g=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the  
> file there:
>      mvn deploy:deploy-file -DgroupId=org.apache.cayenne - 
> DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
> jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
>        2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/ 
> )
>
>
>
> NOTE: Maven is executing in offline mode. Any artifacts not already  
> in your local
> repository will be inaccessible.
>
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 33 seconds
> [INFO] Finished at: Tue May 05 17:07:38 CEST 2009
> [INFO] Final Memory: 36M/63M
> [INFO]  
> ------------------------------------------------------------------------
>
>


Re: build failure

Posted by Demetrios Kyriakis <de...@gmail.com>.
> Try this to ensure everything is built fresh and nothing is downloaded 
> from the repo:
> 
>   rm -rf ~/.m2/repository/org/apache/cayenne/
I deleted manually everything from M2 repo directory (I'm using windows)

>   mvn -o clean install
Off line mode gives a similar error :(.
(I also used -Dmaven.test.skip=true since without this the
build breaks always in the tests - ever since Cayenne was mavenized)

===================================================================================
....
[INFO]------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
       mvn install:install-file -DgroupId=org.apache.cayenne 
-DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
g=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the 
file there:
       mvn deploy:deploy-file -DgroupId=org.apache.cayenne 
-DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

   Path to dependency:
         1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
         2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
   org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)



NOTE: Maven is executing in offline mode. Any artifacts not already in 
your local
repository will be inaccessible.


[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 minute 33 seconds
[INFO] Finished at: Tue May 05 17:07:38 CEST 2009
[INFO] Final Memory: 36M/63M
[INFO] 
------------------------------------------------------------------------


Re: build failure

Posted by Andrus Adamchik <an...@objectstyle.org>.
Try this to ensure everything is built fresh and nothing is downloaded  
from the repo:

   rm -rf ~/.m2/repository/org/apache/cayenne/
   mvn -o clean install

Andrus

On May 5, 2009, at 10:46 AM, Demetrios Kyriakis wrote:

>> You probably need "mvn clean install" on the first build after  
>> cleaning the repo.
> That is useless for me :(.
> I still can't make it (even skipping tests). I'm getting the output
> from the end of this post (not sure why it's trying to download it
> from Apache)
>
>> I just did cleanup on my machine and "install" works.
> http://www.codinghorror.com/blog/archives/000818.html
> (I guess this is one of the great maven "features").
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> ....
> [INFO] snapshot org.apache.cayenne:cayenne-tools:3.0-SNAPSHOT:  
> checking for updates from apache-snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
> -tools-3.0-SNAPSHOT.pom
> [INFO] Unable to find resource 'org.apache.cayenne:cayenne-tools:pom: 
> 3.0-SNAPSHOT' in repository apache-snapshots (http:
> //people.apache.org/repo/m2-snapshot-repository/)
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
> -tools-3.0-SNAPSHOT.jar
> [INFO] Unable to find resource 'org.apache.cayenne:cayenne-tools:jar: 
> 3.0-SNAPSHOT' in repository apache-snapshots (http:
> //people.apache.org/repo/m2-snapshot-repository/)
> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.cayenne - 
> DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
> g=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the  
> file there:
>      mvn deploy:deploy-file -DgroupId=org.apache.cayenne - 
> DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
> jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
>        2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/ 
> )
>
>


Re: build failure

Posted by Demetrios Kyriakis <de...@gmail.com>.
> You probably need "mvn clean install" on the first build after cleaning 
> the repo.
That is useless for me :(.
I still can't make it (even skipping tests). I'm getting the output
from the end of this post (not sure why it's trying to download it
from Apache)

> I just did cleanup on my machine and "install" works.
http://www.codinghorror.com/blog/archives/000818.html
(I guess this is one of the great maven "features").

================================================================================
....
[INFO] snapshot org.apache.cayenne:cayenne-tools:3.0-SNAPSHOT: checking 
for updates from apache-snapshots
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
-tools-3.0-SNAPSHOT.pom
[INFO] Unable to find resource 
'org.apache.cayenne:cayenne-tools:pom:3.0-SNAPSHOT' in repository 
apache-snapshots (http:
//people.apache.org/repo/m2-snapshot-repository/)
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository//org/apache/cayenne/cayenne-tools/3.0-SNAPSHOT/cayenne
-tools-3.0-SNAPSHOT.jar
[INFO] Unable to find resource 
'org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT' in repository 
apache-snapshots (http:
//people.apache.org/repo/m2-snapshot-repository/)
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
       mvn install:install-file -DgroupId=org.apache.cayenne 
-DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackagin
g=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the 
file there:
       mvn deploy:deploy-file -DgroupId=org.apache.cayenne 
-DartifactId=cayenne-tools -Dversion=3.0-SNAPSHOT -Dpackaging=
jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

   Path to dependency:
         1) org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT
         2) org.apache.cayenne:cayenne-tools:jar:3.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
   org.apache.cayenne:cayenne-modeler:jar:3.0-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)


Re: build failure

Posted by Andrus Adamchik <an...@objectstyle.org>.
You probably need "mvn clean install" on the first build after  
cleaning the repo.

I just did cleanup on my machine and "install" works.

Andrus

On May 5, 2009, at 12:27 AM, Robert Zeigler wrote:

> Apparently hudson isn't the only system having issues building  
> cayenne. I am, too. :)
>
> After nuking the cayenne portion of my local repo, I did:
>
> mvn clean package
>
> which resulted in the following failure:
>
> [INFO] Building jar: /Users/robertz/Programming/java/svn/cayenne/3.0/ 
> build-tools/maven-cayenne-doc-plugin/target/maven-cayenne-doc- 
> plugin-3.0-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Cayenne Build Tools Parent
> [INFO]    task-segment: [clean, package]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Cayenne License and Notice Bundle
> [INFO]    task-segment: [clean, package]
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
> plugin: checking for updates from Maven Central Repo
> [INFO] artifact org.apache.cayenne.build-tools:maven-cayenne-build- 
> plugin: checking for updates from central
> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.cayenne.build-tools:maven-cayenne- 
> build-plugin' does not exist or no valid version could be found
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 16 seconds
> [INFO] Finished at: Mon May 04 23:14:15 CDT 2009
> [INFO] Final Memory: 17M/33M
> [INFO]  
> ------------------------------------------------------------------------
>
> However, if I do:
>
> mvn clean install
>
> the build progresses, but fails on some generator-related tests:
>
>   
> testSingleClassesCustTemplate 
> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testSingleClasses2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs1(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs2(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>  testPairs3(org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>   
> testPairsEmbeddable3 
> (org.apache.cayenne.tools.CayenneGeneratorTaskTest)
>   
> testCrossDataMapRelationships 
> (org 
> .apache.cayenne.tools.CayenneGeneratorTaskCrossMapRelationshipsTest)
>
> I don't have time to look at this more tonight, but wanted to  
> mention it; looks like it might be related to the new cayenne-tools  
> changes?
>
> Robert
>