«Невозможно разрешить импорт org.springframework».JAVA

Программисты JAVA общаются здесь
Anonymous
«Невозможно разрешить импорт org.springframework».

Сообщение Anonymous »

Вот мой файл POM.xml:

Код: Выделить всё


1.6
3.2.2.RELEASE
2.2.0.RELEASE
5.1.25
4.11






org.springframework
spring-core
${spring.version}




org.springframework
spring-jdbc
${spring.version}




org.springframework
spring-oxm
${spring.version}




mysql
mysql-connector-java
${mysql.driver.version}




org.springframework.batch
spring-batch-core
${spring.batch.version}


org.springframework.batch
spring-batch-infrastructure
${spring.batch.version}




org.springframework.batch
spring-batch-test
${spring.batch.version}



junit
junit
${junit.version}
test




spring-batch


org.apache.maven.plugins
maven-eclipse-plugin
2.9

true
false



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

${jdk.version}
${jdk.version}





А ниже мой класс Java:

Код: Выделить всё

import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
public static void main(String[] args) {
String[] springConfig  =
{
"spring/batch/jobs/job-hello-world.xml"
};
ApplicationContext context =
new ClassPathXmlApplicationContext(springConfig);
JobLauncher jobLauncher = (JobLauncher) context.getBean("jobLauncher");
Job job = (Job) context.getBean("helloWorldJob");
try {
JobExecution execution = jobLauncher.run(job, new JobParameters());
System.out.println("Exit Status : "  + execution.getStatus());
} catch (Exception e) {
e.printStackTrace();
}
}
}
Я получаю сообщение об ошибке в операторах импорта в моем классе App.java:

"Невозможно разрешить импорт org.springframework".

Я ясно упомянул зависимости в POM.xml, но мой Java класс все еще не может выбрать зависимость оттуда.

Подробнее здесь: https://stackoverflow.com/questions/198 ... e-resolved

Вернуться в «JAVA»