0

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
  • 1
  • This sounds like the [XY problem](https://meta.stackexchange.com/q/66377/223467). What exactly are you trying to achieve? – Mureinik Mar 22 '17 at 06:50
  • I want to ignore some file when I run `mvn install`,and this file are end with 'Mock.java'. For example , HelloworldMock.java . I don't want to build this class Helloworld. – J.H Mar 22 '17 at 06:57
  • That's already the implementation details of a solution. **Why** would you want to do this? What's the endgame? – Mureinik Mar 22 '17 at 07:02
  • what's mean 'That's already the implementation details of a solution'? – J.H Mar 22 '17 at 07:06
  • I want to do this because sometimes I want to use this class but sometimes I don't want to use them. – J.H Mar 22 '17 at 07:07
  • Agree with Mureinik why would you want to do this? – Essex Boy Mar 22 '17 at 08:03
  • 2
    Possible duplicate of [Maven: excluding java files in compilation](http://stackoverflow.com/questions/17920920/maven-excluding-java-files-in-compilation) – Shahan M Mar 22 '17 at 08:25

0 Answers0