我最近接手了一个已经开展了几年的Java Maven项目。我正在尝试清理项目并为新开发人员设置简单,我在构建众多模块之一时遇到了问题。该模块吐出以下错误:
[Error] cannot find symbol
[Error] symbol: class IBindingListener
location: package org.javabuilders.event
这是我的pom文件:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>project-parent</artifactId>
<groupId>com.company.project</groupId>
<version>5.1.8-SNAPSHOT</version>
<relativePath>..\project-parent\pom.xml</relativePath>
</parent>
<groupId>com.company.project.net</groupId>
<artifactId>asset-builder</artifactId>
<name>Asset Builder Project</name>
<description>This application will be used to design new asset types and modify existing asset types.</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<configuration>
<repositoryLayout>flat</repositoryLayout>
<programs>
<program>
<mainClass>com.company.project.assetbuilder.AssetBuilder</mainClass>
<name>assetbuilder</name>
</program>
</programs>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.java.dev.glazedlists</groupId>
<artifactId>glazedlists_java15</artifactId>
<version>1.9.1</version>
</dependency>
<dependency>
<groupId>com.kenai.swingjavabuilderext</groupId>
<artifactId>javabuilder-core</artifactId>
<version>0.3</version>
</dependency>
<dependency>
<groupId>org.javabuilders</groupId>
<artifactId>javabuilder-swing-glazedlists</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.company.project</groupId>
<artifactId>asset-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>
<dependency>
<groupId>org.prefuse</groupId>
<artifactId>prefuse</artifactId>
<version>2007.10.21_e</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>com.company.aehf</groupId>
<artifactId>aehf-cvra</artifactId>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.company.project.plugin</groupId>
<artifactId>map-esri</artifactId>
<version>${project.version}</version>
<type>jar</type>
<exclusions>
<exclusion>
<artifactId>project-gui</artifactId>
<groupId>com.company.project</groupId>
</exclusion>
<exclusion>
<artifactId>project-model</artifactId>
<groupId>com.company.project</groupId>
</exclusion>
<exclusion>
<artifactId>network-calculation</artifactId>
<groupId>com.company.project</groupId>
</exclusion>
<exclusion>
<artifactId>jide-jdaf</artifactId>
<groupId>com.jidesoft</groupId>
</exclusion>
<exclusion>
<artifactId>jide-common</artifactId>
<groupId>com.jidesoft</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.kenai.swingjavabuilderext</groupId>
<artifactId>swingjavabuilderext-jide-com</artifactId>
<version>1.0.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.company.project</groupId>
<artifactId>asset-ose</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.company.project</groupId>
<artifactId>project-resources</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.jidesoft</groupId>
<artifactId>jide-components</artifactId>
</dependency>
<dependency>
<groupId>com.jidesoft</groupId>
<artifactId>jide-common</artifactId>
</dependency>
<dependency>
<groupId>com.jidesoft</groupId>
<artifactId>jide-charts</artifactId>
</dependency>
<dependency>
<groupId>com.jidesoft</groupId>
<artifactId>jide-grids</artifactId>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<suppressionsLocation>${basedir}/src/checkstyle/suppressions.xml</suppressionsLocation>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
有谁知道我在哪里可以找到这个包或包含相同类的包?我查看了search.maven.org和整个互联网,但找不到任何有用的东西。任何帮助将不胜感激。 :)
答案 0 :(得分:1)
将以下依赖项添加到您的pom:
<!-- https://mvnrepository.com/artifact/com.kenai.swingjavabuilderext/javabuilder-core -->
<dependency>
<groupId>com.kenai.swingjavabuilderext</groupId>
<artifactId>javabuilder-core</artifactId>
<version>0.3</version>
</dependency>
答案 1 :(得分:0)
我能够找到我想要的包裹。曾参与该项目的员工有一个包含该包的Nexus仓库。据我所知,它是一个非常旧的包,不再使用了。这就是为什么它不容易在网上找到。
感谢大家的帮助!!