jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Integration for Eclipse
  • MNGECLIPSE-163

Plugin doesn't add extra sources directories which are added using the build-helper-maven-plugin

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.0.9
  • Fix Version/s: 0.0.10
  • Component/s: None
  • Labels:
    None

Description

Source code is sometimes generated automatically during build. We place it under ${project.build.directory}/generated-sources for Maven to use (see below).
Would be nice if the plugin found these additional source folder and added them to the Eclipse project. An Update Source Folder might be necessary.

<!-- required since Maven only allows one source directory -->
     <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>$\{project.build.directory}/generated-sources</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

Issue Links

depends upon

New Feature - A new feature of the product, which has yet to be developed. MNG-2333 Plugins need to offer up all information without executing

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
is related to

New Feature - A new feature of the product, which has yet to be developed. MNGECLIPSE-571 Include support for executing plugins attached to the generated-sources lifecycle phase

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Christian Gruber added a comment - 26/Jul/06 3:22 PM

I agree.

What might work is to add a dynamic classpath that you configure in the project properties (and may default to including known sources default locations such as target/generated-sources/*/) which would ignore non-existant listed sources, but pick it all up when it found sources.

Since we're interrupting the incremental build anyway, we could always run the pom.xml agianst the generated-sources phase before the incremental build was run, if any files changed, and then incrementally build any generated source files that changed (presumably working with a checksum rather than a datestamp, since generate-sources is likely to update all files.)

Frankly, even if the plugin just added the dynamic classpath above, and left the rest to manual tinkering, it would be helpful in the extreme.

Show
Christian Gruber added a comment - 26/Jul/06 3:22 PM I agree. What might work is to add a dynamic classpath that you configure in the project properties (and may default to including known sources default locations such as target/generated-sources/*/) which would ignore non-existant listed sources, but pick it all up when it found sources. Since we're interrupting the incremental build anyway, we could always run the pom.xml agianst the generated-sources phase before the incremental build was run, if any files changed, and then incrementally build any generated source files that changed (presumably working with a checksum rather than a datestamp, since generate-sources is likely to update all files.) Frankly, even if the plugin just added the dynamic classpath above, and left the rest to manual tinkering, it would be helpful in the extreme.
Hide
Permalink
Kenney Westerhof added a comment - 26/Sep/06 9:26 AM

made sample snippet readable - although escaping '{' doesn't work as expected..

Show
Kenney Westerhof added a comment - 26/Sep/06 9:26 AM made sample snippet readable - although escaping '{' doesn't work as expected..
Hide
Permalink
Eugene Kuleshov added a comment - 10/Oct/06 12:41 PM

This is got screwed in the Embedder that does not return updated project instance anymore. Still waiting for new Embedder.

Show
Eugene Kuleshov added a comment - 10/Oct/06 12:41 PM This is got screwed in the Embedder that does not return updated project instance anymore. Still waiting for new Embedder.
Hide
Permalink
Eugene Kuleshov added a comment - 06/Jan/07 2:47 PM

This should work now. Please reopen if you will expereince this issue after 0.0.10 release.

Show
Eugene Kuleshov added a comment - 06/Jan/07 2:47 PM This should work now. Please reopen if you will expereince this issue after 0.0.10 release.

People

  • Assignee:
    Eugene Kuleshov
    Reporter:
    Jimisola Laursen
Vote (1)
Watch (4)

Dates

  • Created:
    17/Jul/06 6:49 PM
    Updated:
    22/May/08 1:39 PM
    Resolved:
    06/Jan/07 2:47 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.