Linked Questions

21 votes
1 answer
34k views

I have a following problem. I would like to exclude some .java files (**/jsfunit/*.java) during the test-compile phase and on the other side I would like to include them during the compile phase (id i ...
easyrider's user avatar
  • 361
12 votes
7 answers
31k views

I have around 1500 files to compile, in which 15-20 files have compilation errors. These files are not under my control, so I could not do any modification/update/delete. So, i have two questions here....
ajay's user avatar
  • 161
7 votes
1 answer
13k views

We have a Spring Boot application, and in it we have both an application.properties and a application-dev.properties. The application properties file just has some across the board default values, and ...
Nikole's user avatar
  • 4,488
7 votes
2 answers
9k views

I have two maven profiles P1 and P2 and what I want to do is that depending on the profile I use to build my project, certain resources should be excluded. For example <profiles> <...
thisisshantzz's user avatar
5 votes
3 answers
6k views

Suppose i have a Maven Project A and Project B, and project B i am adding it as as a jar in Project A when i try to run Project A it gives me the error "bean name "xyz" conflicts with existing, non-...
Manish's user avatar
  • 61
1 vote
1 answer
896 views

There is a mixed (Java + Scala) Maven project. Only a small part is written in Scala and it does not depend on Java code. Java code depends on compilation results of the Scala part. I'm looking for a ...
diziaq's user avatar
  • 7,895
0 votes
1 answer
1k views

I expect to find help here regarding the problem of excluding some files from the Maven build. The essence of the problem I have a package in my Java application that needs to be almost completely ...
HtmlMan's user avatar
  • 65
0 votes
0 answers
537 views

I got a bunch of java files that I don't want to be compiled as part of the module. Is there a way to tell intellij to ignore them?
JRR's user avatar
  • 6,230
0 votes
0 answers
295 views

I am new to maven.Now in my maven project,there are some java files like helloworldMock.java(they all end with 'Mock.java') I don't when to use them when I run mvn installsome time. How I can do?
J.H's user avatar
  • 1
0 votes
1 answer
201 views

I don't understand why I am getting 'Cannot find symbol' error on files that have been excluded from the build path. All references to any of the classes or methods of excluded classes have been ...
DavidO's user avatar
  • 1
0 votes
0 answers
32 views

I have a monorepo that has multiple executable classes and their shared dependencies. I can create JARs with dependencies so that they can easily be deployed and executed. However, all of the ...
Thomas W's user avatar
  • 15.5k