In the development process, there are cases where individual jar packages are not available in the MAVEN repository. For example, some flex-related jar packages.
If you own a company, you can download the jar package and put it in your project, such as:
Then add the local dependency in the Pom.xml:
<dependency> <groupId>javabuilder</groupId> <artifactId>javabuilder</artifactId> <version>1.0 </version> <scope>system</scope> <systempath>${project.basedir}/src/main/webapp/web-inf/lib/blazeds-common-4.0.0.14931.jar</systempath > </dependency> <dependency> <groupId> Javabuilder</groupid> <artifactId>javabuilder</artifactId> <version>1.0</version> <scope> System</scope> <systempath>${project.basedir}/src/main/webapp/web-inf /lib/blazeds-proxy-4.0.0.14931.jar</systempath> </dependency> <dependency> <groupId>javabuilder</groupId> < Artifactid>javabuilder</artifactid> <version>1.0</version> <scope>system</scope> <systempath >${project.basedir}/src/main/webapp/WEB-INF/lib/commons-codec-1.2.jar</systemPath> </ Dependency> <dependency> <groupid>javabuilder</ groupid> <artifactId>javabuilder</artifactId> <version>1.0</version> <scope>system</scope> <systempath>${project.basedir}/src/main/webapp/web-inf/lib/ Blazeds-remoting-4.0.0.14931.jar</systempath> </dependency> <dependency > <groupId>javabuilder</groupId> <artifactId> javabuilder</artifactid> <version>1.0</version> <scope>system</scope> <systempath>${ Project.basedir}/src/main/webapp/web-inf/lib/cglib-nodep-2.1_3.jar</systempath> </ Dependency> <dependency> <groupid>javabuilder</ groupid> <artifactId>javabuilder</artifactId> <version>1.0</version> <scope>system</scope> <systempath>${project.basedir}/src/main/webapp/web-inf/lib/ Commons-httpclient-3.1.jar</systempath> </dependency> <dependency> <groupid≫javabuilder</groupid> <artifactId>javabuilder</artifactId> <version>1.0</version> <scope> System</scope> <systempath>${project.basedir}/src/main/webapp/web-inf /lib/blazeds-core-4.0.0.14931.jar</systempath> </dependency> <dependency > <groupId>javabuilder</groupId> < Artifactid>javabuilder</artifactid> <version>1.0</version> <scope>system</scope> <systempath >${project.basedir}/src/main/webapp/WEB-INF/lib/spring-flex-core-1.5.0.RELEASE.jar</systemPath> </dependency>
Problem solving.
MAVEN Downloads Flex-dependent jar package failure, workaround