bw6-plugin-maven icon indicating copy to clipboard operation
bw6-plugin-maven copied to clipboard

Project build error: Unknown packaging: bwmodule (Click for 2 more)

Open transferobject opened this issue 5 years ago • 7 comments

Windows 10 TIBCO BW 6.6.1 TIB Maven Plugin 2.7.0 apache-maven-3.6.2

i followed the instruction from here

https://github.com/TIBCOSoftware/bw6-plugin-maven/wiki/Steps-For-TIBCO-ActiveMatrix-BusinessWorks

getting the attached error

Project build error: Unknown packaging: bwmodule (Click for 2 more) Project build error: Unknown packaging: bwmodule

Project build error: Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:2.7.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.tibco.plugins:bw6-maven-plugin:jar:2.7.0 -> org.apache.maven:maven-plugin-api:jar:3.6.2

mavenPlugin_2 7 0_Issue

transferobject avatar Nov 18 '20 15:11 transferobject

Hi @transferobject, Please check -

  • Apache Maven is installed. Execute mvn --version
  • Check if plugin jar is available at <.m2-repo-location>\repository\com\tibco\plugins\bw6-maven-plugin\2.7.0. if not, reinstall the plugin. Check if jar extension is .lastupdated, if yes, remove the file with .lastupdated extension.
  • Restart the studio.

vpawar-tibco avatar Nov 19 '20 04:11 vpawar-tibco

thanks for looking into this.

C:\tibcobw6latest>mvn -version Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T11:06:16-04:00) Maven home: C:\Users\x\apache-maven-3.6.2\bin.. Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_212\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

plugin jar is available and there is no .lastUpdated

m2

i restarted the studio. attached screensshot.

project

if you see, on the left sides, it shows i am using Custom JMS Plugin. It also shows 4 pom.xml files. currently, i have issues with theses

test/pom.xml shows below errors

Project build error: Unknown packaging: bwmodule

Project build error: Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:2.7.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.tibco.plugins:bw6-maven-plugin:jar:2.7.0 -> org.apache.maven:maven-plugin-api:jar:3.6.2

test.application/pom.xml shows below errors

Project build error: Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:2.7.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.tibco.plugins:bw6-maven-plugin:jar:2.7.0 -> org.apache.maven:maven-plugin-api:jar:3.6.2

Project build error: Unknown packaging: bwear

i have attached pom.xml files from these locations

test/pom.xml - pom.zip(test) test.application/pom.xml - pom.zip(test.application)

transferobject avatar Nov 19 '20 14:11 transferobject

In studio, on left panel, i am able to resolve those issues by right click on test and test.application and then Maven and Update Project.

my question is that, if you see attached screenshot, all three test, test.application, test.application.parent have M except com.tibco.custom.jms.provider (It has J).

Project1

I right click on this com.tibco.custom.jms.provider and i don't see maven option to convert it to maven project

Project2

transferobject avatar Nov 19 '20 20:11 transferobject

ok. i right click on com.tibco.custom.jms.provider then Configure then Convert to Maven project.

Under com.tibco.custom.jms.provider, when i open pom.xml, then Dependency Hierarchy, i am getting attached error.txt file

Project3 error.txt

transferobject avatar Nov 19 '20 20:11 transferobject

@transferobject There is an eclipse m2e plugin bug for similar error - https://bugs.eclipse.org/bugs/show_bug.cgi?id=534232 An alternative is to use mvn dependency:tree -Dverbose command.

vpawar-tibco avatar Nov 20 '20 10:11 vpawar-tibco

Thanks.

I run this command mvn dependency:tree -Dverbose and attached is the output. i don't see any error

from this link, below text,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=534232

Closing and re-opening the associated Eclipse project sometimes works, most often restarting Eclipse or even deleting ".metadata/.plugins/org.eclipse.m2e.core" and ".metadata/.plugins/org.eclipse.m2e.jdt" seems to be working

i restarted TIBCO Business studio many times and it didn't resolve this issue. by the way, i search these two files org.eclipse.m2e.core and org.eclipse.m2e.jdt in tibco bw 6 installation directory and couldn't find it. there are other files see screenshot.

i found these files and i deleted them. After that, i open the tibco studio and it seems that the project automatically converted back to Java project instead of Maven project. attached screenshot

org.eclipse.m2e.jdt_1.6.2.20151013-0836 org.eclipse.m2e.core_1.6.2.20151013-0836

tibcoStudio

mvn dependency tree -Dverbose.txt

tibcoStudio_1

transferobject avatar Nov 23 '20 14:11 transferobject

Hello,

I resolved this issue by changing packaging type to "jar"

tempsnip

imadbk avatar Dec 03 '21 11:12 imadbk