I'm using STS editor.
imported schema ( abc.xsd
)
Ran maven build, created jar with the version 1 in local repo.
In a project's (namely xyz-parent) pom.xml
included dependency as
<dependency> <groupId>schema1</groupId> <artifactId>abc</artifactId> <version>1</version> </dependency>
In a project's (namely xyz-integration whose parent is the project xyz-parent) pom.xml
included dependency as
<dependency> <groupId>schema1</groupId> <artifactId>abc</artifactId> </dependency>
In project xyz-integration I want to use classes from jar file. But I'm not seeing classes from jar file, not sure whether I'm missing anything here.
Please guide how to resolve this.
You schould probably install your artifact not just build it
mvn install
will do.
The only exception from this if you are using multi module project - modules does not have to be explicitly installed.
I tried mvn clean package (you may try with mvn clean install or mvn clean verify whatever is relevant) and after that I restarted my STS IDE with the same workspace. Last but not least I also performed clean and build project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.