pac4j / vertx-pac4j-demo

Vertx demo to test the vertx-pac4j security library
http://www.pac4j.org
27 stars 14 forks source link

mvn vertx:runMod PlatformManagerException: Cannot find mod.json #33

Closed plutext closed 8 years ago

plutext commented 8 years ago
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Project - vertx-pac4j-demo 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://raw.github.com/fernandezpablo85/scribe-java/mvn-repo/com/nimbusds/nimbus-jose-jwt/maven-metadata.xml
[INFO]
[INFO] --- vertx-maven-plugin:2.0.11-final:runMod (default-cli) @ vertx-pac4j-demo ---
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[ERROR]
org.vertx.java.platform.PlatformManagerException: org.vertx.java.platform.PlatformManagerException: Cannot find mod.json
        at org.vertx.java.platform.impl.DefaultPlatformManager.loadModuleInfo(DefaultPlatformManager.java:1221)
        at org.vertx.java.platform.impl.DefaultPlatformManager.deployModuleFromFileSystem(DefaultPlatformManager.java:1250)
        at org.vertx.java.platform.impl.DefaultPlatformManager.access$1300(DefaultPlatformManager.java:57)
        at org.vertx.java.platform.impl.DefaultPlatformManager$12.run(DefaultPlatformManager.java:462)
        at org.vertx.java.platform.impl.DefaultPlatformManager$14.run(DefaultPlatformManager.java:487)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.vertx.java.platform.PlatformManagerException: Cannot find mod.json
        at org.vertx.java.platform.impl.DefaultPlatformManager.loadModuleInfo(DefaultPlatformManager.java:1218)
        ... 7 more

Am I having problems because the demo uses vert.x (3.1.0), but the maven plugin is for v2? https://groups.google.com/forum/#!topic/vertx/ghTeckzVX3U

plutext commented 8 years ago
C:\Users\jharrop\git\vertx-pac4j-demo>mvn -X vertx:runMod
Apache Maven 3.0.3 (r1075438; 2011-03-01 04:31:09+1100)
Maven home: C:\Java\apache-maven-3.0.3
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_66\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Java\apache-maven-3.0.3\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\jharrop\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\jharrop\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\jharrop\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.pac4j:vertx-pac4j-demo:jar:2.0.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix vertx from [io.vertx, org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Skipped remote update check for io.vertx/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Skipped remote update check for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Skipped remote update check for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix vertx to io.vertx:vertx-maven-plugin from repository local
[DEBUG] Resolving plugin version for io.vertx:vertx-maven-plugin
[DEBUG] Skipped remote update check for io.vertx:vertx-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for io.vertx:vertx-maven-plugin to 2.0.11-final from repository C:\Users\jharrop\.m2\repository (enhanced)
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.pac4j:vertx-pac4j-demo:jar:2.0.0-SNAPSHOT
[DEBUG] Tasks:   [vertx:runMod]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Project - vertx-pac4j-demo 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix vertx from [io.vertx, org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Skipped remote update check for io.vertx/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Skipped remote update check for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Skipped remote update check for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix vertx to io.vertx:vertx-maven-plugin from repository local
[DEBUG] Resolving plugin version for io.vertx:vertx-maven-plugin
[DEBUG] Skipped remote update check for io.vertx:vertx-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for io.vertx:vertx-maven-plugin to 2.0.11-final from repository C:\Users\jharrop\.m2\repository (enhanced)
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-pack
age, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       org.pac4j:vertx-pac4j-demo:2.0.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile+runtime]
[DEBUG] Repositories (dependencies): [sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases+snapshots), central (http://repo1.maven.org/maven2, releases)]
[DEBUG] Repositories (plugins)     : [central (http://repo1.maven.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          io.vertx:vertx-maven-plugin:2.0.11-final:runMod (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <cluster default-value="false"/>
  <clusterManagerFactory default-value="org.vertx.java.spi.cluster.impl.hazelcast.HazelcastClusterManagerFactory"/>
  <clusterPort default-value="0"/>
  <ha default-value="false"/>
  <hagroup default-value="__DEFAULT__"/>
  <instances default-value="1"/>
  <modsDir default-value="target/mods"/>
  <moduleName default-value="${project.groupId}~${project.artifactId}~${project.version}">${moduleName}</moduleName>
  <quorum default-value="0"/>
  <project default-value="${project}"/>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Could not find metadata org.pac4j:vertx-pac4j:2.0.0-SNAPSHOT/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Skipped remote update check for org.pac4j:vertx-pac4j:2.0.0-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata com.nimbusds:nimbus-jose-jwt/maven-metadata.xml in local (C:\Users\jharrop\.m2\repository)
[DEBUG] Failure to find com.nimbusds:nimbus-jose-jwt/maven-metadata.xml in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced
[DEBUG] Skipped remote update check for com.nimbusds:nimbus-jose-jwt/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://raw.github.com/fernandezpablo85/scribe-java/mvn-repo/
Downloading: https://raw.github.com/fernandezpablo85/scribe-java/mvn-repo/com/nimbusds/nimbus-jose-jwt/maven-metadata.xml
[DEBUG] Reading resolution tracking file C:\Users\jharrop\.m2\repository\com\nimbusds\nimbus-jose-jwt\resolver-status.properties
[DEBUG] Writing resolution tracking file C:\Users\jharrop\.m2\repository\com\nimbusds\nimbus-jose-jwt\resolver-status.properties
[DEBUG] Could not find metadata com.nimbusds:nimbus-jose-jwt/maven-metadata.xml in scribe-java-mvn-repo (https://raw.github.com/fernandezpablo85/scribe-java/mvn-repo/)
[DEBUG] org.pac4j:vertx-pac4j-demo:jar:2.0.0-SNAPSHOT
[DEBUG]    org.scala-lang:scala-library:jar:2.10.3:compile
[DEBUG]    org.pac4j:vertx-pac4j:jar:2.0.0-SNAPSHOT:compile
[DEBUG]       io.vertx:vertx-auth-common:jar:3.1.0:compile
[DEBUG]       org.pac4j:pac4j-core:jar:1.8.0:compile
[DEBUG]    org.pac4j:pac4j-oauth:jar:1.8.0:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.scribe:scribe:jar:1.3.6:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-databind:jar:2.5.1:compile
[DEBUG]          com.fasterxml.jackson.core:jackson-annotations:jar:2.5.0:compile
[DEBUG]    org.pac4j:pac4j-openid:jar:1.8.0:compile
[DEBUG]       org.openid4java:openid4java:jar:0.9.8:compile
[DEBUG]          org.apache.httpcomponents:httpclient:jar:4.1:compile
[DEBUG]             org.apache.httpcomponents:httpcore:jar:4.1:compile
[DEBUG]          net.sourceforge.nekohtml:nekohtml:jar:1.9.10:compile
[DEBUG]          com.google.inject:guice:jar:2.0:compile
[DEBUG]             aopalliance:aopalliance:jar:1.0:compile
[DEBUG]          xerces:xercesImpl:jar:2.8.1:compile
[DEBUG]       xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]    org.pac4j:pac4j-cas:jar:1.8.0:compile
[DEBUG]       org.jasig.cas.client:cas-client-core:jar:3.4.1:compile
[DEBUG]       org.jasig.cas.client:cas-client-support-saml:jar:3.4.1:compile
[DEBUG]       org.slf4j:log4j-over-slf4j:jar:1.7.12:compile
[DEBUG]    org.pac4j:pac4j-saml:jar:1.8.0:compile
[DEBUG]       ch.qos.logback:logback-classic:jar:1.1.3:compile
[DEBUG]          ch.qos.logback:logback-core:jar:1.1.3:compile
[DEBUG]       org.slf4j:jcl-over-slf4j:jar:1.7.12:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.12:compile
[DEBUG]       org.opensaml:opensaml-core:jar:3.1.1:compile
[DEBUG]       net.shibboleth.utilities:java-support:jar:7.1.1:compile
[DEBUG]          com.google.code.findbugs:jsr305:jar:3.0.0:compile
[DEBUG]       org.opensaml:opensaml-saml-api:jar:3.1.1:compile
[DEBUG]          org.opensaml:opensaml-storage-api:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-saml-impl:jar:3.1.1:compile
[DEBUG]          org.opensaml:opensaml-soap-impl:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-soap-api:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-xmlsec-api:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-security-api:jar:3.1.1:compile
[DEBUG]          org.apache.santuario:xmlsec:jar:2.0.3:compile
[DEBUG]             org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
[DEBUG]                javax.xml.stream:stax-api:jar:1.0-2:compile
[DEBUG]                org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[DEBUG]          org.bouncycastle:bcprov-jdk15on:jar:1.51:compile
[DEBUG]       org.opensaml:opensaml-security-impl:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-profile-api:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-profile-impl:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-messaging-api:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-messaging-impl:jar:3.1.1:compile
[DEBUG]       org.opensaml:opensaml-xmlsec-impl:jar:3.1.1:compile
[DEBUG]       com.google.guava:guava:jar:18.0:compile
[DEBUG]       org.cryptacular:cryptacular:jar:1.0:compile
[DEBUG]       commons-codec:commons-codec:jar:1.10:compile
[DEBUG]       joda-time:joda-time:jar:2.7:compile
[DEBUG]       xalan:xalan:jar:2.7.2:compile
[DEBUG]          xalan:serializer:jar:2.7.2:compile
[DEBUG]       org.apache.velocity:velocity:jar:1.7:compile
[DEBUG]          commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]          commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.springframework:spring-core:jar:4.1.5.RELEASE:compile
[DEBUG]          commons-logging:commons-logging:jar:1.2:compile
[DEBUG]       net.shibboleth.ext:spring-extensions:jar:5.1.1:compile
[DEBUG]          org.apache.httpcomponents:httpclient-cache:jar:4.3.6:compile
[DEBUG]       org.opensaml:xmltooling:jar:1.4.4:compile
[DEBUG]          ca.juliusdavies:not-yet-commons-ssl:jar:0.3.9:compile
[DEBUG]             commons-httpclient:commons-httpclient:jar:3.0:compile
[DEBUG]    org.pac4j:pac4j-http:jar:1.8.0:compile
[DEBUG]    org.pac4j:pac4j-oidc:jar:1.8.0:compile
[DEBUG]       com.nimbusds:oauth2-oidc-sdk:jar:5.0-alpha5:compile
[DEBUG]          javax.mail:mail:jar:1.4.7:compile
[DEBUG]             javax.activation:activation:jar:1.1:compile
[DEBUG]          net.jcip:jcip-annotations:jar:1.0:compile
[DEBUG]          net.minidev:json-smart:jar:1.3.1:compile
[DEBUG]          com.nimbusds:lang-tag:jar:1.4:compile
[DEBUG]          com.nimbusds:nimbus-jose-jwt:jar:4.3.1:compile
[DEBUG]             commons-io:commons-io:jar:2.4:compile
[DEBUG]    com.github.jknack:handlebars:jar:1.3.0:compile
[DEBUG]       org.antlr:antlr4-runtime:jar:4.2:compile
[DEBUG]          org.antlr:antlr4-annotations:jar:4.2:compile
[DEBUG]       org.mozilla:rhino:jar:1.7R4:compile
[DEBUG]    io.vertx:vertx-web-templ-handlebars:jar:3.1.0:compile
[DEBUG]       io.vertx:vertx-web:jar:tests:3.1.0:compile
[DEBUG]    io.vertx:vertx-web:jar:3.1.0:compile
[DEBUG]    io.vertx:vertx-core:jar:3.1.0:compile
[DEBUG]       io.netty:netty-common:jar:4.0.31.Final:compile
[DEBUG]       io.netty:netty-buffer:jar:4.0.31.Final:compile
[DEBUG]       io.netty:netty-transport:jar:4.0.31.Final:compile
[DEBUG]       io.netty:netty-handler:jar:4.0.31.Final:compile
[DEBUG]          io.netty:netty-codec:jar:4.0.31.Final:compile
[DEBUG]       io.netty:netty-codec-http:jar:4.0.31.Final:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-core:jar:2.6.1:compile
[DEBUG]    io.vertx:vertx-rx-java:jar:3.1.0:compile
[DEBUG]       io.reactivex:rxjava:jar:1.0.14:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[INFO]
[INFO] --- vertx-maven-plugin:2.0.11-final:runMod (default-cli) @ vertx-pac4j-demo ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.sonatype.aether.version < plexus.core
[DEBUG]   Imported: org.sonatype.aether.* < plexus.core
[DEBUG]   Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.sonatype.aether.repository < plexus.core
[DEBUG]   Imported: org.sonatype.aether.impl < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.sonatype.aether.collection < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG]   Imported: org.sonatype.aether.spi < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.sonatype.aether.graph < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.sonatype.aether.installation < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] io.vertx:vertx-maven-plugin:jar:2.0.11-final:
[DEBUG]    org.apache.maven.plugin-tools:maven-plugin-tools-api:jar:3.2:compile
[DEBUG]       org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:3.0:compile
[DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit:jar:3.8.1:compile
[DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]    org.apache.maven.plugin-tools:maven-plugin-tools-annotations:jar:3.2:compile
[DEBUG]       org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG]       asm:asm:jar:3.3.1:compile
[DEBUG]       asm:asm-commons:jar:3.3.1:compile
[DEBUG]          asm:asm-tree:jar:3.3.1:compile
[DEBUG]       org.codehaus.plexus:plexus-archiver:jar:2.1.1:compile
[DEBUG]          org.codehaus.plexus:plexus-io:jar:2.0.3:compile
[DEBUG]       com.thoughtworks.qdox:qdox:jar:1.12.1:compile
[DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG]    io.vertx:vertx-platform:jar:2.1.5:compile
[DEBUG]    io.vertx:vertx-core:jar:2.1.5:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-databind:jar:2.2.2:compile
[DEBUG]          com.fasterxml.jackson.core:jackson-annotations:jar:2.2.2:compile
[DEBUG]       com.fasterxml.jackson.core:jackson-core:jar:2.2.2:compile
[DEBUG]       io.netty:netty-all:jar:4.0.21.Final:compile
[DEBUG]       log4j:log4j:jar:1.2.16:compile
[DEBUG]    io.vertx:vertx-hazelcast:jar:2.1.5:compile
[DEBUG]       com.hazelcast:hazelcast:jar:3.2.3:compile
[DEBUG]          net.sourceforge.findbugs:annotations:jar:1.3.2:compile
[DEBUG]    org.slf4j:slf4j-api:jar:1.7.2:compile
[DEBUG] Created new class realm plugin>io.vertx:vertx-maven-plugin:2.0.11-final
[DEBUG] Importing foreign packages into class realm plugin>io.vertx:vertx-maven-plugin:2.0.11-final
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>io.vertx:vertx-maven-plugin:2.0.11-final
[DEBUG]   Included: io.vertx:vertx-maven-plugin:jar:2.0.11-final
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-tools-api:jar:3.2
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-tools-annotations:jar:3.2
[DEBUG]   Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG]   Included: asm:asm:jar:3.3.1
[DEBUG]   Included: asm:asm-commons:jar:3.3.1
[DEBUG]   Included: asm:asm-tree:jar:3.3.1
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:2.1.1
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.0.3
[DEBUG]   Included: com.thoughtworks.qdox:qdox:jar:1.12.1
[DEBUG]   Included: io.vertx:vertx-platform:jar:2.1.5
[DEBUG]   Included: io.vertx:vertx-core:jar:2.1.5
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-databind:jar:2.2.2
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.2.2
[DEBUG]   Included: com.fasterxml.jackson.core:jackson-core:jar:2.2.2
[DEBUG]   Included: io.netty:netty-all:jar:4.0.21.Final
[DEBUG]   Included: log4j:log4j:jar:1.2.16
[DEBUG]   Included: io.vertx:vertx-hazelcast:jar:2.1.5
[DEBUG]   Included: com.hazelcast:hazelcast:jar:3.2.3
[DEBUG]   Included: net.sourceforge.findbugs:annotations:jar:1.3.2
[DEBUG]   Included: org.slf4j:slf4j-api:jar:1.7.2
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.2.1
[DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Configuring mojo io.vertx:vertx-maven-plugin:2.0.11-final:runMod from plugin realm ClassRealm[plugin>io.vertx:vertx-maven-plugin:2.0.11-final, parent: sun.misc.Launcher$AppClassLoader@70dea4e]
[DEBUG] Configuring mojo 'io.vertx:vertx-maven-plugin:2.0.11-final:runMod' with basic configurator -->
[DEBUG]   (f) cluster = false
[DEBUG]   (f) clusterManagerFactory = org.vertx.java.spi.cluster.impl.hazelcast.HazelcastClusterManagerFactory
[DEBUG]   (f) clusterPort = 0
[DEBUG]   (f) ha = false
[DEBUG]   (f) hagroup = __DEFAULT__
[DEBUG]   (f) instances = 1
[DEBUG]   (f) modsDir = C:\Users\jharrop\git\vertx-pac4j-demo\target\mods
[DEBUG]   (f) moduleName = org.pac4j~vertx-pac4j-demo~2.0.0-SNAPSHOT
[DEBUG]   (f) quorum = 0
[DEBUG]   (f) project = MavenProject: org.pac4j:vertx-pac4j-demo:2.0.0-SNAPSHOT @ C:\Users\jharrop\git\vertx-pac4j-demo\pom.xml
[DEBUG] -- end configuration --
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[ERROR]
org.vertx.java.platform.PlatformManagerException: org.vertx.java.platform.PlatformManagerException: Cannot find mod.json
        at org.vertx.java.platform.impl.DefaultPlatformManager.loadModuleInfo(DefaultPlatformManager.java:1221)
        at org.vertx.java.platform.impl.DefaultPlatformManager.deployModuleFromFileSystem(DefaultPlatformManager.java:1250)
        at org.vertx.java.platform.impl.DefaultPlatformManager.access$1300(DefaultPlatformManager.java:57)
        at org.vertx.java.platform.impl.DefaultPlatformManager$12.run(DefaultPlatformManager.java:462)
        at org.vertx.java.platform.impl.DefaultPlatformManager$14.run(DefaultPlatformManager.java:487)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.vertx.java.platform.PlatformManagerException: Cannot find mod.json
        at org.vertx.java.platform.impl.DefaultPlatformManager.loadModuleInfo(DefaultPlatformManager.java:1218)
        ... 7 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.721s
[INFO] Finished at: Wed Nov 04 12:30:53 AEDT 2015
[INFO] Final Memory: 14M/177M
[INFO] ------------------------------------------------------------------------
millross commented 8 years ago

Yes, vertx runmod only applies to vertx 2. The port to vertx3 of both vertx-pac4j-demo and vertx-pac4j is still work in progress and if you look at the issues you'll see an outstanding one about updating the README. I wasn't expecting anyone to use the current version while it's still work in progress and unreleased. There is a branch still available for the previous version.

leleuj commented 8 years ago

@plutext : for the Vertx 2 support and the "old" library, you can use the 1.0.0 branch

@millross : I admit that updating the README of the library itself is a huge work, but I think it's worth the work to update the README of the demo to ensure that early adopters can test the new version of the library, provide feedbacks and help us to find bugs

millross commented 8 years ago

Happy to update the README but note that using a version of the demo with only one endpoint in place is not really early adoption. That's exactly why I was waiting until there was a reasonably extensive demo before updating the README, testing just a facebook endpoint via the demo is unlikely to show much up.

leleuj commented 8 years ago

Sure. I confess I was myself waiting for the procedure to start the demo and give it a little test ;-)

millross commented 8 years ago

(I'll update it once I complete the current issue I'm working on in vertx-pac4j)

millross commented 8 years ago

I'll update the readme this evening, can't really do it from work even though it's a 2 minute job! Will also add a note that the project is still wip so full set of end points not yet available :)

Sent from my iPhone

On 4 Nov 2015, at 07:44, LELEU Jérôme notifications@github.com wrote:

Sure. I confess I was myself waiting for the procedure to start the demo and give it a little test ;-)

— Reply to this email directly or view it on GitHub.

millross commented 8 years ago

Updated build/run instructions as per issue #14 - these should now let your run the demo (such as it is currently)

plutext commented 8 years ago

@millross thanks for updating the README. It now works nicely from the command line. Given confidence that it works, I've now got it running it from inside Eclipse, and as a newcomer to vert.x that was easy enough to figure out. From my perspective, this "non-extensive" demo is just what I was looking for:- a basic working implementation of oauth via pac4j for vertx to study / build on. I'd just add a hint to update config_demo.json with your own Facebook app details, and facebookClient.setScope("email")

leleuj commented 8 years ago

@millross : I've started looking at the demo. the jar to start is:


java -jar target/vertx-pac4j-demo-2.0.0-SNAPSHOT-fat.jar

and not

java -jar target/vertx-pac4j-demo-2.0-SNAPSHOT-fat.jar
millross commented 8 years ago

I copied and pasted from the command line on my laptop, but the readme is definitely wrong! I've just spotted that iterm2 did me over by effectively hiding a .0 when I selected the text.

leleuj commented 8 years ago

No problem.

BTW, I see you have created a Pac4jConfigurationFactory: https://github.com/pac4j/vertx-pac4j-demo/blob/master/src/main/java/org/pac4j/vertx/verticle/DemoServerVerticle.java#L87 I think you could use the ConfigFactory instead: https://github.com/pac4j/pac4j/blob/master/pac4j-core/src/main/java/org/pac4j/core/config/ConfigFactory.java

millross commented 8 years ago

I can make the Pac4jConfigurationFactory implement the ConfigFactory interface, but what benefit does that give us?

On 5 Nov 2015, at 10:10, LELEU Jérôme notifications@github.com wrote:

No problem.

BTW, I see you have created a Pac4jConfigurationFactory: https://github.com/pac4j/vertx-pac4j-demo/blob/master/src/main/java/org/pac4j/vertx/verticle/DemoServerVerticle.java#L87 https://github.com/pac4j/vertx-pac4j-demo/blob/master/src/main/java/org/pac4j/vertx/verticle/DemoServerVerticle.java#L87 I think you could use the ConfigFactory instead: https://github.com/pac4j/pac4j/blob/master/pac4j-core/src/main/java/org/pac4j/core/config/ConfigFactory.java https://github.com/pac4j/pac4j/blob/master/pac4j-core/src/main/java/org/pac4j/core/config/ConfigFactory.java — Reply to this email directly or view it on GitHub https://github.com/pac4j/vertx-pac4j-demo/issues/33#issuecomment-154015366.

leleuj commented 8 years ago

It would be more consistent and you could copy/paste the DemoConfigFactory from the J2E demo: https://github.com/pac4j/j2e-pac4j-demo/blob/master/src/main/java/org/pac4j/demo/j2e/config/DemoConfigFactory.java

millross commented 8 years ago

My point is really that implementing that interface is of no value to someone actually wanting to use vertx-pac4j in the real world (i.e. not for one of our demos), which in my view makes it a mistake to do in a demo which is presumably supposed to provide an example implementation. Someone coming from the vertx side of things rather than the pac4jdemo side of things is likely to use what we offer as a template, and they won’t derive any benefit from implementing that interface.

In my view our example, which serves as a reference implementation, shouldn’t involve implementing an interface just for consistency with other reference implementations, that’s taking a perfectly reasonable desire for consistency too far. I can C&P most of the code anyway but I’m intentionally not doing so as I’m keen to only add the pac4j stuff I need as I add each endpoint. So on this one I respectfully disagree with you (I understand your motivation, I just don’t think it would benefit Jason (or anyone else wanting to see a reference example) at all, as there is no requirement for their code to implement that interface.

On 5 Nov 2015, at 10:18, LELEU Jérôme notifications@github.com wrote:

It would be more consistent and you could copy/paste the DemoConfigFactory from the J2E demo: https://github.com/pac4j/j2e-pac4j-demo/blob/master/src/main/java/org/pac4j/demo/j2e/config/DemoConfigFactory.java https://github.com/pac4j/j2e-pac4j-demo/blob/master/src/main/java/org/pac4j/demo/j2e/config/DemoConfigFactory.java — Reply to this email directly or view it on GitHub https://github.com/pac4j/vertx-pac4j-demo/issues/33#issuecomment-154018187.

leleuj commented 8 years ago

OK. Let's forget about this suggestion.

plutext commented 8 years ago

What would be really instructive would be having a login page where a user could select their preferred auth provider (eg facebook, twitter). I started making one using http://lipis.github.io/bootstrap-social for a pretty UI:

            for (Client client : config.getClients().findAllClients() ) {

                if (client.getName().equals("FacebookClient")) {

                    final String url;
                    try {
                        url = ((IndirectClient) client).getRedirectAction(context, false).getLocation();
                    } catch (RequiresHttpAction requiresHttpAction) {
                        throw new RuntimeException(requiresHttpAction);
                    }                   

                    // Use http://lipis.github.io/bootstrap-social/
                    sb.append("<a href='" + url + "' class='btn btn-block btn-social btn-facebook' >");
                    sb.append("<span class='fa fa-facebook'></span> Sign in with Facebook</a>");
millross commented 8 years ago

Jérôme is keen for consistency between the demos, so as far as possible (within the limits of keeping vert.x idioms) I'm sticking to this, so copying the UI from the other pac4j demos. I'd suggest you discuss this with him directly. If you want to see what the vertx demo will ultimately look like when finished, I'd suggest you take a look at play-pac4j-demo or j2e-pac4j-demo and maybe submit a PR against one of these.

millross commented 8 years ago

Corrected fat jar version in the README.md file now, so closing this as the build and run instructions should now be correct