protege maven build fails

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

protege maven build fails

syntheticperson
Hello,

I'm trying to build protege using eclipse and maven, as per the instructions on this page:


When I try to build with maven, it fails.

What am I missing?

Please see the logs below for details

thanks
Syntheticperson

___

git clone https://github.com/protegeproject/protege.git protege

Cloning into 'protege'...

remote: Reusing existing pack: 30226, done.

remote: Counting objects: 128, done.

remote: Compressing objects: 100% (121/121), done.

remote: Total 30354 (delta 56), reused 0 (delta 0)

Receiving objects: 100% (30354/30354), 19.35 MiB | 327.00 KiB/s, done.

Resolving deltas: 100% (17281/17281), done.

Checking connectivity... done.

cd protege

mvn clean install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] Protege Desktop

[INFO] Protege Common

[INFO] Protege Editor Core

[INFO] Protege Editor OWL

[INFO] Protege Base

[INFO] Protege Desktop Distribution

[INFO] 

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Desktop 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-parent ---

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ protege-parent ---

[INFO] Installing /Users/syntheticperson/Documents/softWareProjects/protege/pom.xml to /Users/syntheticperson/.m2/repository/edu/stanford/protege/protege-parent/5.0.0-beta-13-SNAPSHOT/protege-parent-5.0.0-beta-13-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Common 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom (6 KB at 5.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom (8 KB at 53.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 41.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom (2 KB at 12.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom (481 B at 4.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom (6 KB at 47.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom (853 B at 6.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar (28 KB at 44.1 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (75 KB at 66.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar (1465 KB at 154.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar (2191 KB at 202.1 KB/sec)

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.protege.common ---

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.protege.common ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/src/main/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ org.protege.common ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 3 source files to /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Protege Desktop ................................... SUCCESS [  0.281 s]

[INFO] Protege Common .................................... FAILURE [ 14.739 s]

[INFO] Protege Editor Core ............................... SKIPPED

[INFO] Protege Editor OWL ................................ SKIPPED

[INFO] Protege Base ...................................... SKIPPED

[INFO] Protege Desktop Distribution ...................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 16.519 s

[INFO] Finished at: 2014-05-31T13:18:59-08:00

[INFO] Final Memory: 9M/81M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project org.protege.common: Fatal error compiling: invalid target release: 1.7 -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :org.protege.common



_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: protege maven build fails

Martin O'Connor-3

It looks the Maven build in not using Java 7. 

Martin

On May 31, 2014, at 1:35 PM, Jeroen Lapre' <[hidden email]> wrote:

Hello,

I'm trying to build protege using eclipse and maven, as per the instructions on this page:


When I try to build with maven, it fails.

What am I missing?

Please see the logs below for details

thanks
Syntheticperson

___

git clone https://github.com/protegeproject/protege.git protege

Cloning into 'protege'...

remote: Reusing existing pack: 30226, done.

remote: Counting objects: 128, done.

remote: Compressing objects: 100% (121/121), done.

remote: Total 30354 (delta 56), reused 0 (delta 0)

Receiving objects: 100% (30354/30354), 19.35 MiB | 327.00 KiB/s, done.

Resolving deltas: 100% (17281/17281), done.

Checking connectivity... done.

cd protege

mvn clean install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] Protege Desktop

[INFO] Protege Common

[INFO] Protege Editor Core

[INFO] Protege Editor OWL

[INFO] Protege Base

[INFO] Protege Desktop Distribution

[INFO] 

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Desktop 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-parent ---

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ protege-parent ---

[INFO] Installing /Users/syntheticperson/Documents/softWareProjects/protege/pom.xml to /Users/syntheticperson/.m2/repository/edu/stanford/protege/protege-parent/5.0.0-beta-13-SNAPSHOT/protege-parent-5.0.0-beta-13-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Common 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom (6 KB at 5.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom (8 KB at 53.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 41.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom (2 KB at 12.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom (481 B at 4.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom (6 KB at 47.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom (853 B at 6.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar (28 KB at 44.1 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (75 KB at 66.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar (1465 KB at 154.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar (2191 KB at 202.1 KB/sec)

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.protege.common ---

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.protege.common ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/src/main/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ org.protege.common ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 3 source files to /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Protege Desktop ................................... SUCCESS [  0.281 s]

[INFO] Protege Common .................................... FAILURE [ 14.739 s]

[INFO] Protege Editor Core ............................... SKIPPED

[INFO] Protege Editor OWL ................................ SKIPPED

[INFO] Protege Base ...................................... SKIPPED

[INFO] Protege Desktop Distribution ...................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 16.519 s

[INFO] Finished at: 2014-05-31T13:18:59-08:00

[INFO] Final Memory: 9M/81M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project org.protege.common: Fatal error compiling: invalid target release: 1.7 -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :org.protege.common


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: protege maven build fails

Jennifer Vendetti
Administrator
In reply to this post by syntheticperson
You’re likely getting this error because your version of Maven is using Java 6, and Protege 5.0 beta requires Java 7.  See this recent issue in our tracker from someone that reported the same:


Or, you could look at this post on stackoverflow for the same problem description and solutions:


Jennifer



On May 31, 2014, at 1:35 PM, Jeroen Lapre' <[hidden email]> wrote:

Hello,

I'm trying to build protege using eclipse and maven, as per the instructions on this page:


When I try to build with maven, it fails.

What am I missing?

Please see the logs below for details

thanks
Syntheticperson

___

git clone https://github.com/protegeproject/protege.git protege

Cloning into 'protege'...

remote: Reusing existing pack: 30226, done.

remote: Counting objects: 128, done.

remote: Compressing objects: 100% (121/121), done.

remote: Total 30354 (delta 56), reused 0 (delta 0)

Receiving objects: 100% (30354/30354), 19.35 MiB | 327.00 KiB/s, done.

Resolving deltas: 100% (17281/17281), done.

Checking connectivity... done.

cd protege

mvn clean install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] Protege Desktop

[INFO] Protege Common

[INFO] Protege Editor Core

[INFO] Protege Editor OWL

[INFO] Protege Base

[INFO] Protege Desktop Distribution

[INFO] 

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Desktop 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-parent ---

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ protege-parent ---

[INFO] Installing /Users/syntheticperson/Documents/softWareProjects/protege/pom.xml to /Users/syntheticperson/.m2/repository/edu/stanford/protege/protege-parent/5.0.0-beta-13-SNAPSHOT/protege-parent-5.0.0-beta-13-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Common 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom (6 KB at 5.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom (8 KB at 53.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 41.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom (2 KB at 12.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom (481 B at 4.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom (6 KB at 47.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom (853 B at 6.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar (28 KB at 44.1 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (75 KB at 66.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar (1465 KB at 154.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar (2191 KB at 202.1 KB/sec)

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.protege.common ---

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.protege.common ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/src/main/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ org.protege.common ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 3 source files to /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Protege Desktop ................................... SUCCESS [  0.281 s]

[INFO] Protege Common .................................... FAILURE [ 14.739 s]

[INFO] Protege Editor Core ............................... SKIPPED

[INFO] Protege Editor OWL ................................ SKIPPED

[INFO] Protege Base ...................................... SKIPPED

[INFO] Protege Desktop Distribution ...................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 16.519 s

[INFO] Finished at: 2014-05-31T13:18:59-08:00

[INFO] Final Memory: 9M/81M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project org.protege.common: Fatal error compiling: invalid target release: 1.7 -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :org.protege.common


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: protege maven build fails

syntheticperson
Thanks for your responses. I'm using mac os x mavericks, which appears stuck on java 1.6 in the shell, even though it claims to have java 7 installed when I open preferences.
I found this workaround:


And have now been able to build protege with maven successfully.
Much thanks!

Jeroen




On Sat, May 31, 2014 at 3:09 PM, Jennifer Vendetti <[hidden email]> wrote:
You’re likely getting this error because your version of Maven is using Java 6, and Protege 5.0 beta requires Java 7.  See this recent issue in our tracker from someone that reported the same:


Or, you could look at this post on stackoverflow for the same problem description and solutions:


Jennifer



On May 31, 2014, at 1:35 PM, Jeroen Lapre' <[hidden email]> wrote:

Hello,

I'm trying to build protege using eclipse and maven, as per the instructions on this page:


When I try to build with maven, it fails.

What am I missing?

Please see the logs below for details

thanks
Syntheticperson

___

git clone https://github.com/protegeproject/protege.git protege

Cloning into 'protege'...

remote: Reusing existing pack: 30226, done.

remote: Counting objects: 128, done.

remote: Compressing objects: 100% (121/121), done.

remote: Total 30354 (delta 56), reused 0 (delta 0)

Receiving objects: 100% <a href="tel:%2830354%2F30354" value="+13035430354" target="_blank">(30354/30354), 19.35 MiB | 327.00 KiB/s, done.

Resolving deltas: 100% (17281/17281), done.

Checking connectivity... done.

cd protege

mvn clean install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] Protege Desktop

[INFO] Protege Common

[INFO] Protege Editor Core

[INFO] Protege Editor OWL

[INFO] Protege Base

[INFO] Protege Desktop Distribution

[INFO] 

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Desktop 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protege-parent ---

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ protege-parent ---

[INFO] Installing /Users/syntheticperson/Documents/softWareProjects/protege/pom.xml to /Users/syntheticperson/.m2/repository/edu/stanford/protege/protege-parent/5.0.0-beta-13-SNAPSHOT/protege-parent-5.0.0-beta-13-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Protege Common 5.0.0-beta-13-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom (6 KB at 5.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom (8 KB at 53.9 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom

Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 41.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.pom (2 KB at 12.4 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom (481 B at 4.0 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom (6 KB at 47.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.pom (853 B at 6.7 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar

Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar

Downloading: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar

Downloading: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar (28 KB at 44.1 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (75 KB at 66.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar (1465 KB at 154.9 KB/sec)

Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/17.0/guava-17.0.jar (2191 KB at 202.1 KB/sec)

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.protege.common ---

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.protege.common ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/src/main/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ org.protege.common ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 3 source files to /Users/syntheticperson/Documents/softWareProjects/protege/org.protege.common/target/classes

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Protege Desktop ................................... SUCCESS [  0.281 s]

[INFO] Protege Common .................................... FAILURE [ 14.739 s]

[INFO] Protege Editor Core ............................... SKIPPED

[INFO] Protege Editor OWL ................................ SKIPPED

[INFO] Protege Base ...................................... SKIPPED

[INFO] Protege Desktop Distribution ...................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 16.519 s

[INFO] Finished at: 2014-05-31T13:18:59-08:00

[INFO] Final Memory: 9M/81M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project org.protege.common: Fatal error compiling: invalid target release: 1.7 -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :org.protege.common


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev



_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev