Webserver with php embedded into bukkit plugin?

Discussion in 'Plugin Development' started by MCMatters, Jul 29, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MCMatters

  2. Offline

    xTigerRebornx

    MCMatters What doesn't work about it? "Doesn't work" tells us nothing. Show what you've tried, what it did, and what you expected it to do.
     
  3. Offline

    MCMatters

    It gives the same noclassfound error

    xTigerRebornx

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  4. Offline

    xTigerRebornx

     
  5. Offline

    MCMatters

    Last edited by a moderator: Jun 9, 2016
  6. Offline

    xTigerRebornx

    MCMatters post the specific pom.xml that you used.
     
  7. Offline

    MCMatters

    xTigerRebornx
    Code:java
    1. <project xmlns="[url]http://maven.apache.org/POM/4.0.0[/url]" xmlns:xsi="[url]http://www.w3.org/2001/XMLSchema-instance[/url]" xsi:schemaLocation="[url]http://maven.apache.org/POM/4.0.0[/url] [url]http://maven.apache.org/xsd/maven-4.0.0.xsd[/url]">
    2. <modelVersion>4.0.0</modelVersion>
    3. <groupId>me.dillan</groupId>
    4. <artifactId>test</artifactId>
    5. <version>0.0.1-SNAPSHOT</version>
    6. <dependencies>
    7. <dependency>
    8. <groupId>javax.servlet</groupId>
    9. <artifactId>javax.servlet-api</artifactId>
    10. <version>3.1.0</version>
    11. </dependency>
    12. <dependency>
    13. <groupId>org.eclipse.jetty</groupId>
    14. <artifactId>jetty-annotations</artifactId>
    15. <version>9.2.1.v20140609</version>
    16. </dependency>
    17. <dependency>
    18. <groupId>org.eclipse.jetty</groupId>
    19. <artifactId>jetty-webapp</artifactId>
    20. <version>9.2.1.v20140609</version>
    21. </dependency>
    22. <dependency>
    23. <groupId>org.eclipse.jetty</groupId>
    24. <artifactId>apache-jsp</artifactId>
    25. <version>9.2.1.v20140609</version>
    26. <type>jar</type>
    27. </dependency>
    28. <dependency>
    29. <groupId>org.eclipse.jetty</groupId>
    30. <artifactId>apache-jstl</artifactId>
    31. <version>9.2.1.v20140609</version>
    32. <type>pom</type>
    33. </dependency>
    34. <dependency>
    35. <groupId>org.bukkit</groupId>
    36. <artifactId>bukkit</artifactId>
    37. <version>1.7.9-R0.2</version>
    38. <type>jar</type>
    39. <scope>provided</scope>
    40. </dependency>
    41. </dependencies>
    42. <build>
    43. <plugins>
    44. <plugin>
    45. <groupId>org.apache.maven.plugins</groupId>
    46. <artifactId>maven-compiler-plugin</artifactId>
    47. <configuration>
    48. <source>1.7</source>
    49. <target>1.7</target>
    50. </configuration>
    51. </plugin>
    52. <plugin>
    53. <groupId>org.apache.maven.plugins</groupId>
    54. <artifactId>maven-shade-plugin</artifactId>
    55. <version>2.3</version>
    56. <executions>
    57. <execution>
    58. <phase>package</phase>
    59. <goals>
    60. <goal>shade</goal>
    61. </goals>
    62. <configuration>
    63. <artifactSet>
    64. <excludes>
    65. <exclude>classworlds:classworlds</exclude>
    66. <exclude>junit:junit</exclude>
    67. <exclude>jmock:*</exclude>
    68. <exclude>*:xml-apis</exclude>
    69. <exclude>org.apache.maven:lib:tests</exclude>
    70. <exclude>log4j:log4j:jar:</exclude>
    71. </excludes>
    72. </artifactSet>
    73. </configuration>
    74. </execution>
    75. </executions>
    76. </plugin>
    77. </plugins>
    78. </build>
    79. <repositories>
    80. <repository>
    81. <id>bukkit-repo</id>
    82. <url>[url]http://repo.bukkit.org/content/groups/public/</url>[/url]
    83. </repository>
    84. </repositories>
    85. </project>
     
  8. Offline

    xTigerRebornx

    MCMatters So, all you've done is copy pasted an example that in no way involves your project and expected it to work, then complained that it doesn't.

    Have you actually tried to do this on your own? Spend some time, and actually learn how Maven shading works, rather then copy-pasting completely unrelated things and expecting them to work.
     
  9. Offline

    MCMatters

    Wat do u mean
     
  10. Offline

    xTigerRebornx

    MCMatters You haven't tried anything. You've only copy-pasted an example that is meant to teach you, not automatically become something that does what you want. Actually put some effort in and then come ask for help.
     
  11. Offline

    MCMatters

    My problem in maven shade. I tried some methods, didnt work. Thought i was doing it wrong, asked for help with it and you decide just to say i copy-pasted? i copy-pasted those dependencies because i never knew where to find it, if i knew how to set this up i would not be asking Chiller how to do it
     
Thread Status:
Not open for further replies.

Share This Page