<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Jsoup deployment error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=92147031" />
  <subtitle>Jsoup deployment error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=92147031</id>
  <updated>2026-06-12T01:47:16Z</updated>
  <dc:date>2026-06-12T01:47:16Z</dc:date>
  <entry>
    <title>RE: Jsoup deployment error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147114" />
    <author>
      <name>Ayush gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147114</id>
    <updated>2017-07-23T08:47:54Z</updated>
    <published>2017-07-23T08:47:54Z</published>
    <summary type="html">Although the compileinclude didn&amp;#39;t work but copying the jar in deploy directory worked.&lt;br /&gt; Thanks for your valuable response.&lt;br /&gt; &lt;img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" &gt;</summary>
    <dc:creator>Ayush gupta</dc:creator>
    <dc:date>2017-07-23T08:47:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Jsoup deployment error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147108" />
    <author>
      <name>Ayush gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147108</id>
    <updated>2017-07-23T08:14:29Z</updated>
    <published>2017-07-23T08:14:29Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Christoph Rabel:&lt;/div&gt;&lt;blockquote&gt;Gradle provides the dependencies only for compiling, you need to provide the dependencies at runtime. There are several ways to do that, the simplest is to deploy the jsoup.jar file (copy it to the deploy folder).&lt;br /&gt;&lt;br /&gt;compileInclude should also work:&lt;br /&gt;dependencies {&lt;br /&gt;  compileInclude group: &amp;#39;org.jsoup&amp;#39;, name: &amp;#39;jsoup&amp;#39;, version: &amp;#39;1.10.3&amp;#39;&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Tried it but Build failed.&lt;br /&gt;&lt;br /&gt;Compile Result:&lt;br /&gt;Working Directory: H:\Liferay eclipse\workspace\LiferayWork&lt;br /&gt;Gradle User Home: C:\Users\HOME\.gradle&lt;br /&gt;Gradle Distribution: Gradle wrapper from target build&lt;br /&gt;Gradle Version: 2.14.1&lt;br /&gt;Java Home: C:\Program Files\Java\jdk1.8.0_51&lt;br /&gt;JVM Arguments: None&lt;br /&gt;Program Arguments: None&lt;br /&gt;Gradle Tasks: :modules:LiferayModule:build&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FAILURE: Build failed with an exception.&lt;br /&gt;&lt;br /&gt;* Where:&lt;br /&gt;Build file &amp;#39;H:\Liferay eclipse\workspace\LiferayWork\modules\LiferayModule\build.gradle&amp;#39; line: 10&lt;br /&gt;&lt;br /&gt;* What went wrong:&lt;br /&gt;A problem occurred evaluating project &amp;#39;:modules:LiferayModule&amp;#39;.&lt;br /&gt;&amp;gt; Could not find method compileInclude() for arguments [{group=org.jsoup, name=jsoup, version=1.10.3}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.&lt;br /&gt;&lt;br /&gt;* Try:&lt;br /&gt;Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.&lt;br /&gt;&lt;br /&gt;BUILD FAILED</summary>
    <dc:creator>Ayush gupta</dc:creator>
    <dc:date>2017-07-23T08:14:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: Jsoup deployment error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147671" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147671</id>
    <updated>2017-07-23T08:06:34Z</updated>
    <published>2017-07-23T08:06:34Z</published>
    <summary type="html">Gradle provides the dependencies only for compiling, you need to provide the dependencies at runtime. There are several ways to do that, the simplest is to deploy the jsoup.jar file (copy it to the deploy folder).&lt;br /&gt;&lt;br /&gt;compileInclude should also work:&lt;br /&gt;dependencies {&lt;br /&gt;  compileInclude group: &amp;#39;org.jsoup&amp;#39;, name: &amp;#39;jsoup&amp;#39;, version: &amp;#39;1.10.3&amp;#39;&lt;br /&gt;}</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2017-07-23T08:06:34Z</dc:date>
  </entry>
  <entry>
    <title>Jsoup deployment error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147030" />
    <author>
      <name>Ayush gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92147030</id>
    <updated>2017-07-23T07:33:07Z</updated>
    <published>2017-07-23T07:33:07Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;when I start the module in gogo shell telnet localhost window&lt;br&gt;start 516&lt;br&gt;org.osgi.framework.BundleException: could not resolve module: liferaymodule[516]&lt;br&gt;Unresolved requirement: Import-package: org.jsoup; version="[1.10.0,2.0.0)"&lt;br&gt;&lt;br&gt;build.gradle&lt;br&gt;&lt;pre&gt;&lt;code&gt;
dependencies {
	compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
	compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
	compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
	compileOnly group: "javax.servlet", name: "servlet-api", version: "2.5"
	compileOnly group: "jstl", name: "jstl", version: "1.2"
	compileOnly group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
	compile project(":modules:RiverService:RiverService-api")
	compile project(":modules:LakeService:LakeService-api")
	compile group: 'org.jsoup', name: 'jsoup', version: '1.10.3'
	
}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;bnd.bnd&lt;br&gt;&lt;pre&gt;&lt;code&gt;
Bundle-SymbolicName: liferaymodule
Bundle-Version: 1.0.0
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;When deployed using gradle:&lt;br&gt;&lt;br&gt;Console:&lt;br&gt;Working Directory: H:\Liferay eclipse\workspace\LiferayWork&lt;br&gt;Gradle User Home: C:\Users\HOME\.gradle&lt;br&gt;Gradle Distribution: Gradle wrapper from target build&lt;br&gt;Gradle Version: 2.14.1&lt;br&gt;Java Home: C:\Program Files\Java\jdk1.8.0_51&lt;br&gt;JVM Arguments: None&lt;br&gt;Program Arguments: None&lt;br&gt;Gradle Tasks: :modules:LiferayModule:deploy&lt;br&gt;&lt;br&gt;:modules:LakeService:LakeService-api:compileJava UP-TO-DATE&lt;br&gt;:modules:LakeService:LakeService-api:buildCSS UP-TO-DATE&lt;br&gt;:modules:LakeService:LakeService-api:processResources UP-TO-DATE&lt;br&gt;:modules:LakeService:LakeService-api:transpileJS SKIPPED&lt;br&gt;:modules:LakeService:LakeService-api:configJSModules SKIPPED&lt;br&gt;:modules:LakeService:LakeService-api:classes UP-TO-DATE&lt;br&gt;:modules:LakeService:LakeService-api:jar&lt;br&gt;[aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakesModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.model.lakes. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.lake.service.lakesLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]&lt;br&gt;:modules:LakeService:LakeService-api:jar UP-TO-DATE&lt;br&gt;:modules:RiverService:RiverService-api:compileJava UP-TO-DATE&lt;br&gt;:modules:RiverService:RiverService-api:buildCSS UP-TO-DATE&lt;br&gt;:modules:RiverService:RiverService-api:processResources UP-TO-DATE&lt;br&gt;:modules:RiverService:RiverService-api:transpileJS SKIPPED&lt;br&gt;:modules:RiverService:RiverService-api:configJSModules SKIPPED&lt;br&gt;:modules:RiverService:RiverService-api:classes UP-TO-DATE&lt;br&gt;:modules:RiverService:RiverService-api:jar&lt;br&gt;[aQute.bnd.annotation.ProviderType annotation used in class com.river.model.riversModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.liferay.portal.kernel.model.BaseModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.model.rivers. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation.ProviderType annotation used in class com.river.service.riversLocalService. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations.]&lt;br&gt;:modules:RiverService:RiverService-api:jar UP-TO-DATE&lt;br&gt;:modules:LiferayModule:compileJava UP-TO-DATE&lt;br&gt;:modules:LiferayModule:buildCSS UP-TO-DATE&lt;br&gt;:modules:LiferayModule:processResources UP-TO-DATE&lt;br&gt;:modules:LiferayModule:transpileJS SKIPPED&lt;br&gt;:modules:LiferayModule:configJSModules SKIPPED&lt;br&gt;:modules:LiferayModule:classes UP-TO-DATE&lt;br&gt;:modules:LiferayModule:jar&lt;br&gt;:modules:LiferayModule:deploy&lt;br&gt;&lt;br&gt;BUILD SUCCESSFUL&lt;br&gt;&lt;br&gt;Total time: 1.165 secs&lt;br&gt;&lt;br&gt;&lt;br&gt;But when deployed:&lt;br&gt;&lt;br&gt;On portal&lt;br&gt;com_demo_portlet_DemoPortlet_INSTANCE_TzP4HXxZoz5L&lt;br&gt;This portlet has been undeployed. Please redeploy it or remove it from the page.&lt;br&gt;&lt;br&gt;I have  a workspace&lt;br&gt;One module : mvc portlet&lt;br&gt;Two services connected to mysql database&lt;br&gt;&lt;br&gt;It worked perfectly before but when I added jsoup and used it never got deployed. In gogo shell this error ocurred when started.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ayush gupta</dc:creator>
    <dc:date>2017-07-23T07:33:07Z</dc:date>
  </entry>
</feed>
