Results 1 to 1 of 1
  1. #1
    RobertVox1977 is offline Member
    Join Date
    Sep 2013
    Rep Power

    Default Include new sources and exclude existing


    I want to copy java sources from projekt let's say from packet (in src/main/java...) to the same target but in {project}/target/generated-sources. When copying I modify on fly the source code by my maven plugin.

    And my question:

    how can I set in mvn pom.xml that maven takes the sources in target/generated-sources and do not take the same classes in src/main/java/com/my/app.....

    The generated classes in have the same package and the same name as classes in normal source: src/main/java

    Is it possible?

    I need it 'cos I want to replace for build source code.

    I must insert some source code in place of my own annotation (modify java source code) and modified file copy to /target/generated-sources. Than during build I want to use generated source.

    Problem is that generated classes of course have the same package and class names like the classes in src/main/java/com/my/app... and I have conflict in compilation.

    Please help how to do it!
    Last edited by RobertVox1977; 09-15-2013 at 05:03 PM.

Similar Threads

  1. swt: GridData.exclude in Draw2d?
    By sanchau_in in forum SWT / JFace
    Replies: 0
    Last Post: 05-31-2012, 01:14 PM
  2. Exclude character
    By ZeCute in forum New To Java
    Replies: 2
    Last Post: 05-23-2011, 09:19 PM
  3. Replies: 0
    Last Post: 03-02-2010, 09:28 AM
  4. include-prelude/include-coda
    By devin in forum Java Servlet
    Replies: 0
    Last Post: 02-11-2009, 08:33 PM
  5. jsp:include and include file
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 05:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts