New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not build the project. [SPR-15592] #20151
Comments
Stéphane Nicoll commented Sorry but we don't use the tracker for questions. I can compile the project just fine with the command you gave (building the project usually happens on a branch, not a tag). |
D瓜哥 commented
I run the commands as follows:
PS, I run ./gradlew build/testClasses, they can throw the error. |
D瓜哥 commented The commands that I ran and the error log: diguage@spring-framework$ ./gradlew clean # Deletes the build directory.
...
diguage@spring-framework$ ./gradlew :spring-oxm:compileTestJava
...
:spring-oxm:copyMainKotlinClasses
:spring-oxm:processResources
:spring-oxm:classes
:spring-oxm:genCastor
[ant:javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
:spring-oxm:genJaxb UP-TO-DATE
:spring-oxm:compileTestKotlin
:spring-oxm:compileTestJava
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:27: error: package org.springframework.oxm.jaxb.test does not exist
import org.springframework.oxm.jaxb.test.FlightType;
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:28: error: package org.springframework.oxm.jaxb.test does not exist
import org.springframework.oxm.jaxb.test.Flights;
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:29: error: package org.springframework.oxm.jaxb.test does not exist
import org.springframework.oxm.jaxb.test.ObjectFactory;
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:85: error: cannot find symbol
private Flights flights;
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:36: error: package org.springframework.oxm.jaxb.test does not exist
import org.springframework.oxm.jaxb.test.FlightType;
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:37: error: package org.springframework.oxm.jaxb.test does not exist
import org.springframework.oxm.jaxb.test.Flights;
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:98: error: cannot find symbol
FlightType flight = new FlightType();
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:98: error: cannot find symbol
FlightType flight = new FlightType();
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:100: error: cannot find symbol
flights = new Flights();
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:166: error: cannot find symbol
marshaller.setClassesToBeBound(FlightType.class);
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:169: error: cannot find symbol
Flights flights = new Flights();
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:169: error: cannot find symbol
Flights flights = new Flights();
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:181: error: cannot find symbol
marshaller.setClassesToBeBound(Flights.class, FlightType.class);
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:181: error: cannot find symbol
marshaller.setClassesToBeBound(Flights.class, FlightType.class);
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:195: error: cannot find symbol
assertTrue("Jaxb2Marshaller does not support Flights class", marshaller.supports(Flights.class));
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:196: error: cannot find symbol
assertTrue("Jaxb2Marshaller does not support Flights generic type", marshaller.supports((Type)Flights.class));
^
symbol: class Flights
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:196: warning: [cast] redundant cast to class
assertTrue("Jaxb2Marshaller does not support Flights generic type", marshaller.supports((Type)Flights.class));
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:198: error: cannot find symbol
assertFalse("Jaxb2Marshaller supports FlightType class", marshaller.supports(FlightType.class));
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:199: error: cannot find symbol
assertFalse("Jaxb2Marshaller supports FlightType type", marshaller.supports((Type)FlightType.class));
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:199: warning: [cast] redundant cast to class
assertFalse("Jaxb2Marshaller supports FlightType type", marshaller.supports((Type)FlightType.class));
^
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:201: error: cannot find symbol
Method method = ObjectFactory.class.getDeclaredMethod("createFlight", FlightType.class);
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:201: error: cannot find symbol
Method method = ObjectFactory.class.getDeclaredMethod("createFlight", FlightType.class);
^
symbol: class ObjectFactory
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:206: error: cannot find symbol
JAXBElement<FlightType> flightTypeJAXBElement = new JAXBElement<>(new QName("http://springframework.org", "flight"), FlightType.class,
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:206: error: cannot find symbol
JAXBElement<FlightType> flightTypeJAXBElement = new JAXBElement<>(new QName("http://springframework.org", "flight"), FlightType.class,
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java:207: error: cannot find symbol
new FlightType());
^
symbol: class FlightType
location: class Jaxb2MarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:65: error: cannot find symbol
Flights flights = (Flights) o;
^
symbol: class Flights
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:65: error: cannot find symbol
Flights flights = (Flights) o;
^
symbol: class Flights
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:73: error: cannot find symbol
FlightType flight = (FlightType) o;
^
symbol: class FlightType
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:73: error: cannot find symbol
FlightType flight = (FlightType) o;
^
symbol: class FlightType
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:119: error: cannot find symbol
JAXBElement<FlightType> element = (JAXBElement<FlightType>) unmarshaller.unmarshal(source);
^
symbol: class FlightType
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:119: error: cannot find symbol
JAXBElement<FlightType> element = (JAXBElement<FlightType>) unmarshaller.unmarshal(source);
^
symbol: class FlightType
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:120: error: cannot find symbol
FlightType flight = element.getValue();
^
symbol: class FlightType
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:143: error: cannot find symbol
Flights f = (Flights) unmarshaller.unmarshal(new StreamSource(file));
^
symbol: class Flights
location: class Jaxb2UnmarshallerTests
spring-framework/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java:143: error: cannot find symbol
Flights f = (Flights) unmarshaller.unmarshal(new StreamSource(file));
^
symbol: class Flights
location: class Jaxb2UnmarshallerTests
32 errors
2 warnings
:spring-oxm:compileTestJava FAILED
:spring-oxm:copyTestKotlinClasses SKIPPED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spring-oxm:compileTestJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 20.543 secs |
D瓜哥 commented I report the question to How to build the v5.x Spring? How to import the v5.x Spring to IDEA? |
D瓜哥 opened SPR-15592 and commented
I want to import the project to IDEA.
I follow the document import-into-idea.md to run the command ./gradlew cleanIdea :spring-oxm:compileTestJava.
Then, it throws errors.
How do I import the v5.x project to IDEA?
I try many times at different ways:
First, I checkout the code to v4.3.8.RELEASE, I run the command ./gradlew cleanIdea :spring-oxm:compileTestJava. It is OK.
Second, I checkout the code to v5.0.0.RC1, I run the same command. It is OK. But, when I import the code to IDEA as a gradle project, the IDEA cound find many class, such as BeanFactory.
Third, I run ./gradlew clean :spring-oxm:compileTestJava (the code is v5.0.0.RC1), it throws many errors.
My develop environment:
The log is as followings:
Affects: 5.0 RC1
Referenced from: commits beb7ed9
The text was updated successfully, but these errors were encountered: