[GRADLE-2030] Eclipse-wtp plugin creates illegal entries for non-existing source folders in deployment assembly Created: 05/Jan/12  Updated: 04/Jan/13  Resolved: 10/Mar/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-6, 1.0-milestone-7
Fix Version/s: 1.0-rc-1

Type: Bug
Reporter: Kris De Volder Assignee: Szczepan Faber
Resolution: Fixed Votes: 1

Attachments: Zip Archive sts2192-modified.zip    

 Description   

To reproduce, import attached project in Eclipse/STS. (Not required to use STS/Gradle support)

Steps:

  • run "gralde cleanEclipse eclipse" in the root project
  • import project B as "existing project" into Eclipse
  • open deployment assembly (via context menu on project "Properties >> Deployment Assembly".

Observe:

  • error message: Cannot find entry: "src/main/resources".

Cause:

  • entry in generated component file "sts2192/B/.settings/org.eclipse.wst.common.component"
         <wb-resource deploy-path="/" source-path="src/main/resources"/>
    

Solution:
Do not add entries for source folders that do not exist.



 Comments   
Comment by Mauro Molinari [ 06/Jan/12 ]

I think Kris forgot to attach the project. Anyway, the mentioned project can be found here: https://issuetracker.springsource.com/browse/STS-2192
Download the attached STS-2192.zip, uncompress it, but remember to change project B build.gradle by adding

apply plugin: 'eclipse-wtp'

. Then, follow Kris's steps mentioned above.

Please note that the problems in the "Deployment Assembly" are two:

  • the "src/main/resources" is added to it, while that folder does not exist
  • the "glazedlists-1.8.0-java15.jar" is missing from the "Deployment Assembly"
    Please note that neither problems happen if project B applied 'war' plugin instead of just 'java' plugin. However, in this case, project B is mentioned to be just a Utility Module for project A, so it's correct that it applies just the 'java' plugin.
Comment by Kris De Volder [ 06/Jan/12 ]

Indeed, I forgot the sample project. Attaching it now. It's a slightly modified version of the one in STS2192.

Generated at Wed Jun 30 12:10:53 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.