vokal / Minecraft-player-location-reporter

Bukkit plugin that reports online player locations
1 stars 0 forks source link

Maven warnings and target output #3

Open charlesbedrosian opened 11 years ago

charlesbedrosian commented 11 years ago

Looks like there may be something odd with the pom file.

I see warnings in the output from maven about duplicate classes. Then there are 2 jars generated (full-player-locator* and player-locator*).

[INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ player-locator --- [INFO] Building jar: /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-shade-plugin:2.0:shade (default) @ player-locator --- [INFO] Including org.apache.httpcomponents:httpclient:jar:4.2.2 in the shaded jar. [INFO] Including commons-logging:commons-logging:jar:1.1.1 in the shaded jar. [INFO] Including commons-codec:commons-codec:jar:1.6 in the shaded jar. [INFO] Including org.bukkit:bukkit:jar:1.4.2-R0.2 in the shaded jar. [INFO] Including org.apache.httpcomponents:httpcore:jar:4.2.3 in the shaded jar. [INFO] Including org.json:json:jar:20090211 in the shaded jar. [INFO] Including com.vokal.locator:player-locator-socketio.jar:jar:0.0.1-SNAPSHOT in the shaded jar. [WARNING] We have a duplicate org/json/CDL.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Cookie.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/CookieList.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/HTTP.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/HTTPTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONArray.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONException.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject$1.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject$Null.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONString.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONStringer.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONWriter.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Test$1Obj.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Test.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/XML.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/XMLTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [INFO] Replacing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/full-player-locator-0.0.1-SNAPSHOT.jar with /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT-shaded.jar [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ player-locator --- [INFO] Installing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT.jar to /Users/charles/.m2/repository/com/vokal/locator/player-locator/0.0.1-SNAPSHOT/player-locator-0.0.1-SNAPSHOT.jar [INFO] Installing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/com.googlecode.addjars.mojo.AddJarsMojo/pom.xml to /Users/charles/.m2/repository/com/vokal/locator/player-locator/0.0.1-SNAPSHOT/player-locator-0.0.1-SNAPSHOT.pom

scottferg commented 11 years ago

The shade plugin generates a second jar (prefixed with full-) that contains the plugin as well as any JARs that may have been dependencies.

The warnings are worth keeping an eye on but basically the socket.iolibrary and the plugin itself duplicate a few requirements. I might be able to address that with some pom-fu. On Jan 17, 2013 12:47 AM, "Charles Bedrosian" notifications@github.com wrote:

Looks like there may be something odd with the pom file.

I see warnings in the output from maven about duplicate classes. Then there are 2 jars generated (full-player-locator* and player-locator*).

[INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ player-locator --- [INFO] Building jar: /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-shade-plugin:2.0:shade (default) @ player-locator --- [INFO] Including org.apache.httpcomponents:httpclient:jar:4.2.2 in the shaded jar. [INFO] Including commons-logging:commons-logging:jar:1.1.1 in the shaded jar. [INFO] Including commons-codec:commons-codec:jar:1.6 in the shaded jar. [INFO] Including org.bukkit:bukkit:jar:1.4.2-R0.2 in the shaded jar. [INFO] Including org.apache.httpcomponents:httpcore:jar:4.2.3 in the shaded jar. [INFO] Including org.json:json:jar:20090211 in the shaded jar. [INFO] Including com.vokal.locator:player-locator-socketio.jar:jar:0.0.1-SNAPSHOT in the shaded jar. [WARNING] We have a duplicate org/json/CDL.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Cookie.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/CookieList.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/HTTP.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/HTTPTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONArray.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONException.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject$1.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject$Null.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONObject.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONString.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONStringer.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/JSONWriter.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Test$1Obj.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/Test.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/XML.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [WARNING] We have a duplicate org/json/XMLTokener.class in /Users/charles/.m2/repository/com/vokal/locator/player-locator-socketio.jar/0.0.1-SNAPSHOT/player-locator-socketio.jar-0.0.1-SNAPSHOT.jar [INFO] Replacing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/full-player-locator-0.0.1-SNAPSHOT.jar with /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT-shaded.jar [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ player-locator --- [INFO] Installing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/player-locator-0.0.1-SNAPSHOT.jar to /Users/charles/.m2/repository/com/vokal/locator/player-locator/0.0.1-SNAPSHOT/player-locator-0.0.1-SNAPSHOT.jar [INFO] Installing /Volumes/Hard Disk 2/Charles/Dropbox/minecraft/server/Minecraft-player-location-reporter/target/com.googlecode.addjars.mojo.AddJarsMojo/pom.xml to /Users/charles/.m2/repository/com/vokal/locator/player-locator/0.0.1-SNAPSHOT/player-locator-0.0.1-SNAPSHOT.pom

— Reply to this email directly or view it on GitHubhttps://github.com/vokalinteractive/Minecraft-player-location-reporter/issues/3.