Re: Build failure with OpenJDK 11 (amazon corretto)
Apologies, you are correct. I just needed to clean before building. Thanks
for your help.
On Thu, Sep 23, 2021 at 10:30 AM Nikita Timofeev
wrote:
> Hi John,
>
> Just checked the build with Corretto on master, 4.1-STABLE, and
> 4.0-STABLE branches. It seems fine to me.
> Are you sure it's the latest master? QualifierTranslator is removed in
> 4.2 for some time now.
>
> Just in case, here is my environment:
>
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Java version: 11.0.12, vendor: Amazon.com Inc., runtime:
> D:\soft\corretto\jdk11.0.12_7
> OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
>
> On Mon, Sep 20, 2021 at 7:04 PM John Huss wrote:
> >
> > The latest master is failing to build with the distribution of OpenJDK 11
> > from Amazon due to a javadoc problem:
> >
> > *QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside *
> >
> > Here is the entire error:
> >
> > [*ERROR*] Failed to execute goal
> > org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc *(javadoc)*
> on
> > project cayenne-doc: *An error has occurred in Javadoc report
> generation: *
> >
> > [*ERROR*] *Exit code: 1 -
> >
> /Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sybase/SybaseQualifierTranslator.java:22:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *import
> > org.apache.cayenne.access.translator.select.QualifierTranslator;*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sybase/SybaseQualifierTranslator.java:31:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *public class SybaseQualifierTranslator extends
> > QualifierTranslator {*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/frontbase/FrontBaseQualifierTranslator.java:23:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *import
> > org.apache.cayenne.access.translator.select.QualifierTranslator;*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/frontbase/FrontBaseQualifierTranslator.java:32:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *public class FrontBaseQualifierTranslator extends
> > QualifierTranslator {*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/openbase/OpenBaseQualifierTranslator.java:25:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *import
> > org.apache.cayenne.access.translator.select.QualifierTranslator;*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/openbase/OpenBaseQualifierTranslator.java:38:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *public class OpenBaseQualifierTranslator extends
> > QualifierTranslator {*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sqlite/SQLiteQualifierTranslator.java:22:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *import
> > org.apache.cayenne.access.translator.select.QualifierTranslator;*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sqlite/SQLiteQualifierTranslator.java:32:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside package*
> >
> > [*ERROR*] *public class SQLiteQualifierTranslator extends
> > QualifierTranslator {*
> >
> > [*ERROR*] * ^*
> >
> > [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/mysql/MySQLQualifierTranslator.java:24:
> > error: QualifierTranslator is not public in
> > org.apache.cayenne.access.translator.select; cannot be accessed from
> > outside pa
Re: Build failure with OpenJDK 11 (amazon corretto)
Hi John,
Just checked the build with Corretto on master, 4.1-STABLE, and
4.0-STABLE branches. It seems fine to me.
Are you sure it's the latest master? QualifierTranslator is removed in
4.2 for some time now.
Just in case, here is my environment:
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Java version: 11.0.12, vendor: Amazon.com Inc., runtime:
D:\soft\corretto\jdk11.0.12_7
OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
On Mon, Sep 20, 2021 at 7:04 PM John Huss wrote:
>
> The latest master is failing to build with the distribution of OpenJDK 11
> from Amazon due to a javadoc problem:
>
> *QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside *
>
> Here is the entire error:
>
> [*ERROR*] Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc *(javadoc)* on
> project cayenne-doc: *An error has occurred in Javadoc report generation: *
>
> [*ERROR*] *Exit code: 1 -
> /Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sybase/SybaseQualifierTranslator.java:22:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *import
> org.apache.cayenne.access.translator.select.QualifierTranslator;*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sybase/SybaseQualifierTranslator.java:31:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *public class SybaseQualifierTranslator extends
> QualifierTranslator {*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/frontbase/FrontBaseQualifierTranslator.java:23:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *import
> org.apache.cayenne.access.translator.select.QualifierTranslator;*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/frontbase/FrontBaseQualifierTranslator.java:32:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *public class FrontBaseQualifierTranslator extends
> QualifierTranslator {*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/openbase/OpenBaseQualifierTranslator.java:25:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *import
> org.apache.cayenne.access.translator.select.QualifierTranslator;*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/openbase/OpenBaseQualifierTranslator.java:38:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *public class OpenBaseQualifierTranslator extends
> QualifierTranslator {*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sqlite/SQLiteQualifierTranslator.java:22:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *import
> org.apache.cayenne.access.translator.select.QualifierTranslator;*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/sqlite/SQLiteQualifierTranslator.java:32:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *public class SQLiteQualifierTranslator extends
> QualifierTranslator {*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/mysql/MySQLQualifierTranslator.java:24:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.translator.select; cannot be accessed from
> outside package*
>
> [*ERROR*] *import
> org.apache.cayenne.access.translator.select.QualifierTranslator;*
>
> [*ERROR*] * ^*
>
> [*ERROR*]
> */Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/dba/mysql/MySQLQualifierTranslator.java:30:
> error: QualifierTranslator is not public in
> org.apache.cayenne.access.transla
Re: Build failure with Java 11
It must have just had a bad cache somewhere. I touched the file and rebuilt and now it is working. ¯\_(ツ)_/¯ On Thu, May 2, 2019 at 1:26 PM Lon Varscsak wrote: > I've compiled it against OpenJDK 11 (not Corretto) without an issue. > > On Thu, May 2, 2019 at 7:38 AM John Huss wrote: > > > This is the corretto version from Amazon, based on OpenJDK. > > > > On Thu, May 2, 2019 at 9:23 AM Andrus Adamchik > > wrote: > > > > > Odd, considering that CI runs a bunch of builds on Java 11 on every > > commit: > > > > > > https://travis-ci.org/apache/cayenne/builds/527314653 > > > > > > Andrus > > > > > > > On May 2, 2019, at 5:10 PM, John Huss wrote: > > > > > > > > I'm seeing a build failure with Java 11 on the master branch (below). > > It > > > > would be nice to get this fixed up since Java 11 has been released > for > > a > > > > while now. Thanks! > > > > > > > > [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time > elapsed: > > > > 0.166 s <<< FAILURE! - in > > > > > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT > > > > > > > > [ERROR] > > > > > > > > > > invalidateE1(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > > > Time elapsed: 0.081 s <<< ERROR! > > > > > > > > java.lang.NoSuchMethodError: > > > > > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$0(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > > > > > at > > > > > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE1(CacheInvalidationCacheGroupsHandlerIT.java:98) > > > > > > > > > > > > [ERROR] > > > > > > > > > > invalidateE2(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > > > Time elapsed: 0.079 s <<< ERROR! > > > > > > > > java.lang.NoSuchMethodError: > > > > > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$1(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > > > > > at > > > > > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE2(CacheInvalidationCacheGroupsHandlerIT.java:135) > > > > > > > > >
Re: Build failure with Java 11
I've compiled it against OpenJDK 11 (not Corretto) without an issue. On Thu, May 2, 2019 at 7:38 AM John Huss wrote: > This is the corretto version from Amazon, based on OpenJDK. > > On Thu, May 2, 2019 at 9:23 AM Andrus Adamchik > wrote: > > > Odd, considering that CI runs a bunch of builds on Java 11 on every > commit: > > > > https://travis-ci.org/apache/cayenne/builds/527314653 > > > > Andrus > > > > > On May 2, 2019, at 5:10 PM, John Huss wrote: > > > > > > I'm seeing a build failure with Java 11 on the master branch (below). > It > > > would be nice to get this fixed up since Java 11 has been released for > a > > > while now. Thanks! > > > > > > [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: > > > 0.166 s <<< FAILURE! - in > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT > > > > > > [ERROR] > > > > > > invalidateE1(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > > Time elapsed: 0.081 s <<< ERROR! > > > > > > java.lang.NoSuchMethodError: > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$0(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > > > at > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE1(CacheInvalidationCacheGroupsHandlerIT.java:98) > > > > > > > > > [ERROR] > > > > > > invalidateE2(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > > Time elapsed: 0.079 s <<< ERROR! > > > > > > java.lang.NoSuchMethodError: > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$1(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > > > at > > > > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE2(CacheInvalidationCacheGroupsHandlerIT.java:135) > > > > >
Re: Build failure with Java 11
This is the corretto version from Amazon, based on OpenJDK. On Thu, May 2, 2019 at 9:23 AM Andrus Adamchik wrote: > Odd, considering that CI runs a bunch of builds on Java 11 on every commit: > > https://travis-ci.org/apache/cayenne/builds/527314653 > > Andrus > > > On May 2, 2019, at 5:10 PM, John Huss wrote: > > > > I'm seeing a build failure with Java 11 on the master branch (below). It > > would be nice to get this fixed up since Java 11 has been released for a > > while now. Thanks! > > > > [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: > > 0.166 s <<< FAILURE! - in > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT > > > > [ERROR] > > > invalidateE1(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > Time elapsed: 0.081 s <<< ERROR! > > > > java.lang.NoSuchMethodError: > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$0(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > at > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE1(CacheInvalidationCacheGroupsHandlerIT.java:98) > > > > > > [ERROR] > > > invalidateE2(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > > Time elapsed: 0.079 s <<< ERROR! > > > > java.lang.NoSuchMethodError: > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$1(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > > > at > > > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE2(CacheInvalidationCacheGroupsHandlerIT.java:135) > >
Re: Build failure with Java 11
Odd, considering that CI runs a bunch of builds on Java 11 on every commit: https://travis-ci.org/apache/cayenne/builds/527314653 Andrus > On May 2, 2019, at 5:10 PM, John Huss wrote: > > I'm seeing a build failure with Java 11 on the master branch (below). It > would be nice to get this fixed up since Java 11 has been released for a > while now. Thanks! > > [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: > 0.166 s <<< FAILURE! - in > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT > > [ERROR] > invalidateE1(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > Time elapsed: 0.081 s <<< ERROR! > > java.lang.NoSuchMethodError: > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$0(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > at > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE1(CacheInvalidationCacheGroupsHandlerIT.java:98) > > > [ERROR] > invalidateE2(org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT) > Time elapsed: 0.079 s <<< ERROR! > > java.lang.NoSuchMethodError: > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.access$1(Lorg/apache/cayenne/cache/invalidation/CacheInvalidationCacheGroupsHandlerIT;)Ljava/util/concurrent/atomic/AtomicInteger; > > at > org.apache.cayenne.cache.invalidation.CacheInvalidationCacheGroupsHandlerIT.invalidateE2(CacheInvalidationCacheGroupsHandlerIT.java:135)
Re: Build failure
Hi all, Turned out that Postgres never been tested on JDK7 with current JDBC driver as it is for Java 8 only. Here is pull request with correct driver version: https://github.com/apache/cayenne/pull/171 On Fri, Dec 23, 2016 at 9:27 AM, Andrus Adamchik wrote: > Yeah, and it looks like this is the problem in Cayenne master code (recent > enabling of Postgres Docker profile didn't take Java 7 into account). E.g.: > https://travis-ci.org/apache/cayenne/builds/186072226 > > Nothing wrong with the PR. In fact I just merged it. > > Andrus > > > On Dec 22, 2016, at 9:44 PM, Mike Kienenberger > wrote: > > > > One of the classes (probably from the postgres driver) was compiled with > a > > java version higher than what is running the build. > > > > > > On Thu, Dec 22, 2016 at 1:26 PM, buddha wrote: > > > >> Hi, > >> > >> > >> > >> I’m just trying to make a small commit which is a fix in two small xml > >> files that generate html files for documentation. Created a pull > >> request(#170), however continuous integration is failing. The change I > did > >> has nothing to do with the failure of the build. Build is failing with > >> (Caused by: java.lang.UnsupportedClassVersionError: > org/postgresql/Driver > >> : Unsupported major.minor version 52.0) > >> > >> > >> > >> https://travis-ci.org/apache/cayenne/builds/186140745 > >> > >> > >> > >> Can someone help me out as to what the issue is? > >> > >> > >> > >> Thanks > >> > >> Buddha > >> > >> > > -- Best regards, Nikita Timofeev
Re: Build failure
Yeah, and it looks like this is the problem in Cayenne master code (recent enabling of Postgres Docker profile didn't take Java 7 into account). E.g.: https://travis-ci.org/apache/cayenne/builds/186072226 Nothing wrong with the PR. In fact I just merged it. Andrus > On Dec 22, 2016, at 9:44 PM, Mike Kienenberger wrote: > > One of the classes (probably from the postgres driver) was compiled with a > java version higher than what is running the build. > > > On Thu, Dec 22, 2016 at 1:26 PM, buddha wrote: > >> Hi, >> >> >> >> I’m just trying to make a small commit which is a fix in two small xml >> files that generate html files for documentation. Created a pull >> request(#170), however continuous integration is failing. The change I did >> has nothing to do with the failure of the build. Build is failing with >> (Caused by: java.lang.UnsupportedClassVersionError: org/postgresql/Driver >> : Unsupported major.minor version 52.0) >> >> >> >> https://travis-ci.org/apache/cayenne/builds/186140745 >> >> >> >> Can someone help me out as to what the issue is? >> >> >> >> Thanks >> >> Buddha >> >>
Re: Build failure
One of the classes (probably from the postgres driver) was compiled with a java version higher than what is running the build. On Thu, Dec 22, 2016 at 1:26 PM, buddha wrote: > Hi, > > > > I’m just trying to make a small commit which is a fix in two small xml > files that generate html files for documentation. Created a pull > request(#170), however continuous integration is failing. The change I did > has nothing to do with the failure of the build. Build is failing with > (Caused by: java.lang.UnsupportedClassVersionError: org/postgresql/Driver > : Unsupported major.minor version 52.0) > > > > https://travis-ci.org/apache/cayenne/builds/186140745 > > > > Can someone help me out as to what the issue is? > > > > Thanks > > Buddha > >
Re: build failure with fresh clone
Strange. I tried thats first. But now it can be build. Thanks. Johannes Am 17.12.2014 um 19:14 schrieb Andrus Adamchik: > Don't use '-Dmaven.test.skip=true', as this prevents shared test modules from > being built. > > HTH, > Andrus > > >> On Dec 17, 2014, at 6:28 PM, Johannes wrote: >> >> new try. >> >> >> Weitergeleitete Nachricht >> Betreff: build failure with fresh clone >> Datum: Wed, 17 Dec 2014 10:54:22 +0100 >> Von: Johannes >> An: [email protected] >> >> Hello, I cloned the current sources via github and tried to run a maven >> build with `mvn clean package -Dmaven.test.skip=true`. This leads to >> following error. So what can I do? >> >> [INFO] Building Cayenne ROP Client 4.0.M2-SNAPSHOT >> [INFO] >> >> [INFO] >> >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Cayenne ... SUCCESS [0.849s] >> [INFO] Cayenne Build Tools Parent SUCCESS [0.011s] >> [INFO] Cayenne License and Notice Bundle . SUCCESS [14.258s] >> [INFO] Common Unit Test Utilities SUCCESS [0.998s] >> [INFO] Cayenne Code Checkers . SUCCESS [0.084s] >> [INFO] Cayenne Dependency Injection Container SUCCESS [26.299s] >> [INFO] Cayenne Server SUCCESS [32.835s] >> [INFO] Cayenne ROP Client FAILURE [0.026s] >> [INFO] Cayenne Project ... SKIPPED >> [INFO] Cayenne Tools . SKIPPED >> [INFO] Cayenne Lifecycle Utilities ... SKIPPED >> [INFO] Cayenne Maven Plugins . SKIPPED >> [INFO] Cayenne Maven Plugin .. SKIPPED >> [INFO] Cayenne Cryptography Extensions ... SKIPPED >> [INFO] Cayenne Integration Tests Parent .. SKIPPED >> [INFO] Integration Tests - Cayenne Tools . SKIPPED >> [INFO] Cayenne Modeler Parent SKIPPED >> [INFO] Cayenne WebObjects Compatibility Library .. SKIPPED >> [INFO] Cayenne Modeler ... SKIPPED >> [INFO] Cayenne Modeler Generic and Windows Extensions SKIPPED >> [INFO] Cayenne Modeler Generic ... SKIPPED >> [INFO] Cayenne Modeler Mac OS X Extensions ... SKIPPED >> [INFO] Cayenne Modeler Mac OS X .. SKIPPED >> [INFO] Cayenne Modeler Mac OS X - Old Apple Java . SKIPPED >> [INFO] Cayenne Modeler Windows ... SKIPPED >> [INFO] Cayenne Modeler Maven Plugin .. SKIPPED >> [INFO] Cayenne Tutorials . SKIPPED >> [INFO] Cayenne Tutorial .. SKIPPED >> [INFO] Cayenne ROP Server Tutorial ... SKIPPED >> [INFO] Cayenne ROP Client Tutorial ... SKIPPED >> [INFO] Cayenne Documenation Parent ... SKIPPED >> [INFO] Cayenne Documentation . SKIPPED >> [INFO] Cayenne Docbook Documentation . SKIPPED >> [INFO] Docbook: Cayenne Stylesheets .. SKIPPED >> [INFO] Docbook: Cayenne Guide SKIPPED >> [INFO] Docbook: Getting Started with Cayenne . SKIPPED >> [INFO] Docbook: Getting Started with Cayenne ROP . SKIPPED >> [INFO] Docbook: Cayenne New Features and Upgrade Guide ... SKIPPED >> [INFO] Cayenne Release Assembly .. SKIPPED >> [INFO] >> >> [INFO] BUILD FAILURE >> [INFO] >> >> [INFO] Total time: 1:17.010s >> [INFO] Finished at: Tue Dec 16 23:05:07 CET 2014 >> [INFO] Final Memory: 61M/489M >> [INFO] >> >> [ERROR] Failed to execute goal on project cayenne-client: Could not >> resolve dependencies for project >> org.apache.cayenne:cayenne-client:jar:4.0.M2-SNAPSHOT: Could not find >> artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M2-SNAPSHOT -> >> [Help 1] >> >> >> >> >> > signature.asc Description: OpenPGP digital signature
Re: build failure with fresh clone
Don't use '-Dmaven.test.skip=true', as this prevents shared test modules from being built. HTH, Andrus > On Dec 17, 2014, at 6:28 PM, Johannes wrote: > > new try. > > > Weitergeleitete Nachricht > Betreff: build failure with fresh clone > Datum: Wed, 17 Dec 2014 10:54:22 +0100 > Von: Johannes > An: [email protected] > > Hello, I cloned the current sources via github and tried to run a maven > build with `mvn clean package -Dmaven.test.skip=true`. This leads to > following error. So what can I do? > > [INFO] Building Cayenne ROP Client 4.0.M2-SNAPSHOT > [INFO] > > [INFO] > > [INFO] Reactor Summary: > [INFO] > [INFO] Cayenne ... SUCCESS [0.849s] > [INFO] Cayenne Build Tools Parent SUCCESS [0.011s] > [INFO] Cayenne License and Notice Bundle . SUCCESS [14.258s] > [INFO] Common Unit Test Utilities SUCCESS [0.998s] > [INFO] Cayenne Code Checkers . SUCCESS [0.084s] > [INFO] Cayenne Dependency Injection Container SUCCESS [26.299s] > [INFO] Cayenne Server SUCCESS [32.835s] > [INFO] Cayenne ROP Client FAILURE [0.026s] > [INFO] Cayenne Project ... SKIPPED > [INFO] Cayenne Tools . SKIPPED > [INFO] Cayenne Lifecycle Utilities ... SKIPPED > [INFO] Cayenne Maven Plugins . SKIPPED > [INFO] Cayenne Maven Plugin .. SKIPPED > [INFO] Cayenne Cryptography Extensions ... SKIPPED > [INFO] Cayenne Integration Tests Parent .. SKIPPED > [INFO] Integration Tests - Cayenne Tools . SKIPPED > [INFO] Cayenne Modeler Parent SKIPPED > [INFO] Cayenne WebObjects Compatibility Library .. SKIPPED > [INFO] Cayenne Modeler ... SKIPPED > [INFO] Cayenne Modeler Generic and Windows Extensions SKIPPED > [INFO] Cayenne Modeler Generic ... SKIPPED > [INFO] Cayenne Modeler Mac OS X Extensions ... SKIPPED > [INFO] Cayenne Modeler Mac OS X .. SKIPPED > [INFO] Cayenne Modeler Mac OS X - Old Apple Java . SKIPPED > [INFO] Cayenne Modeler Windows ... SKIPPED > [INFO] Cayenne Modeler Maven Plugin .. SKIPPED > [INFO] Cayenne Tutorials . SKIPPED > [INFO] Cayenne Tutorial .. SKIPPED > [INFO] Cayenne ROP Server Tutorial ... SKIPPED > [INFO] Cayenne ROP Client Tutorial ... SKIPPED > [INFO] Cayenne Documenation Parent ... SKIPPED > [INFO] Cayenne Documentation . SKIPPED > [INFO] Cayenne Docbook Documentation . SKIPPED > [INFO] Docbook: Cayenne Stylesheets .. SKIPPED > [INFO] Docbook: Cayenne Guide SKIPPED > [INFO] Docbook: Getting Started with Cayenne . SKIPPED > [INFO] Docbook: Getting Started with Cayenne ROP . SKIPPED > [INFO] Docbook: Cayenne New Features and Upgrade Guide ... SKIPPED > [INFO] Cayenne Release Assembly .. SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 1:17.010s > [INFO] Finished at: Tue Dec 16 23:05:07 CET 2014 > [INFO] Final Memory: 61M/489M > [INFO] > > [ERROR] Failed to execute goal on project cayenne-client: Could not > resolve dependencies for project > org.apache.cayenne:cayenne-client:jar:4.0.M2-SNAPSHOT: Could not find > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M2-SNAPSHOT -> > [Help 1] > > > > >
Re: build failure
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
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
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. > 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
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
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. 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.: > > > 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
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.: 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
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
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
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 < [email protected]> 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
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
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
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
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
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
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
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
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
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
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 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
That's why I usually skip the tests ... :-) On Tue, May 5, 2009 at 12:27 AM, Robert Zeigler wrote: > Apparently hudson isn't the only system having issues building cayenne. I > am, too. :)
Re: build failure
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 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
BTW, I think I had a similar exception on Cayenne Solaris zone... which I can't retest as the zone is down... Andrus On Jan 21, 2008, at 12:52 PM, Aristedes Maniatis wrote: On 21/01/2008, at 9:14 PM, Øyvind Harboe (JIRA) wrote: The build failed INFO: SELECT t0.ARTIST_NAME, t0.ARTIST_ID, t0.DATE_OF_BIRTH FROM ARTIST t0 WHERE t0.ARTIST_ID = ? [bind: 1->ARTIST_ID:33002] Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logSelectCount INFO: === returned 1 row. - took 1 ms. Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logCommitTransact ion INFO: +++ transaction committed. Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.458 sec Results : Tests in error: testConstructorWithProperties (org.apache.cayenne.access.DataRowStoreTest) Caused by: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface Could this be something unusual in the network setup on your machine? Firewalling? Something else? Ari Maniatis --> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
Re: build failure
On 21/01/2008, at 9:14 PM, Øyvind Harboe (JIRA) wrote: The build failed INFO: SELECT t0.ARTIST_NAME, t0.ARTIST_ID, t0.DATE_OF_BIRTH FROM ARTIST t0 WHERE t0.ARTIST_ID = ? [bind: 1->ARTIST_ID:33002] Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logSelectCount INFO: === returned 1 row. - took 1 ms. Jan 21, 2008 10:13:36 AM org.apache.cayenne.access.QueryLogger logCommitTransact ion INFO: +++ transaction committed. Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.458 sec Results : Tests in error: testConstructorWithProperties (org.apache.cayenne.access.DataRowStoreTest) Caused by: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface Could this be something unusual in the network setup on your machine? Firewalling? Something else? Ari Maniatis --> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
