By: Ulrich Lang user 23 Jul 2018 at 8:50 p.m. CDT

1 Response
Ulrich Lang gravatar
Hi I'm trying to build the sample project at https://gluu.org/docs/oxd/3.1.1/libraries/languages/java/, i.e. https://github.com/GluuFederation/oxd/archive/version_3.1.1.zip Any ideas what's wrong? Or do you have another login redirect code example we could reconfigure for our purposes quickly (Java + Apache)? Here is the mvn install output: [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-common:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-client:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-server:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-rp-client:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd-https-extension:jar:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.xdi:oxd:3.1.1.Final, E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml, line 66, column 17 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.xdi:oxd:pom:3.1.1.Final [WARNING] 'repositories.repository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ line 66, column 17 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [WARNING] The project org.xdi:oxd:pom:3.1.1.Final uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] oxD [INFO] oxD Common [INFO] oxD Client [INFO] oxD Server [INFO] oxD RP Client [INFO] oxd-https-extension [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd\3.1.1.Final\oxd-3.1.1.Final.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Common 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ oxd-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxd-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ oxd-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxd-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ oxd-common --- [INFO] Surefire report directory: E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running TestSuite Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.168 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxd-common --- [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxd-common --- [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) > generate-sources @ oxd-common >>> [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) < generate-sources @ oxd-common <<< [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ oxd-common --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd-common --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final.pom [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common-tests.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final-tests.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-common\target\oxd-common-sources.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-common\3.1.1.Final\oxd-common-3.1.1.Final-sources.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Client 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ oxd-client --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxd-client --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ oxd-client --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ oxd-client --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ oxd-client --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ oxd-client --- [INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ oxd-client --- [INFO] Building jar: E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-tests.jar [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) > generate-sources @ oxd-client >>> [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) < generate-sources @ oxd-client <<< [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ oxd-client --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ oxd-client --- [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\pom.xml to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final.pom [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-tests.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final-tests.jar [INFO] Installing E:\DATA\Programming\gluu-client\oxd-version_3.1.1\oxd-client\target\oxd-client-sources.jar to C:\Users\ulrich\.m2\repository\org\xdi\oxd-client\3.1.1.Final\oxd-client-3.1.1.Final-sources.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building oxD Server 3.1.1.Final [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- git-commit-id-plugin:2.1.12:revision (get-the-git-infos) @ oxd-server --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] oxD ................................................ SUCCESS [ 0.233 s] [INFO] oxD Common ......................................... SUCCESS [ 2.599 s] [INFO] oxD Client ......................................... SUCCESS [ 0.685 s] [INFO] oxD Server ......................................... FAILURE [ 0.313 s] [INFO] oxD RP Client ...................................... SKIPPED [INFO] oxd-https-extension ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.054 s [INFO] Finished at: 2018-07-23T18:39:43-07:00 [INFO] Final Memory: 18M/370M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.12:revision (get-the-git-infos) on project oxd-server: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [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 :oxd-server

By Mohib Zico Account Admin 26 Jul 2018 at 9:48 a.m. CDT

Mohib Zico gravatar
Duplicate ticket. Active one is [here](https://support.gluu.org/other/5770/java-sample-wont-build/)