[mevenide-dev] [jira] Commented: (MEVENIDE-610) mevenide2: generated sources are not on source paths list for autocompletion and autocompile
"David Siefert (JIRA)" <jira-yCVjj/[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.devel |
|---|---|
| Message-ID | <15766172.1204906408898.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/MEVENIDE-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126465 ]
David Siefert commented on MEVENIDE-610:
----------------------------------------
The solution you provided worked (Thank you!) and is the best solution regardless. A slight modification to what you said: foo-bar would refer to the package name--so basically generated-sources is THE root path of the sources that is detected automagically.
Sorry to waste your time with this issue. I was thinking that the fix would have consisted of using XPath (use /project/build/plugins/plugin/configuration/sourceRoot if it exists and /project/build/plugins/plugin/artifactId='maven-antrun-plugin' is true) and modifying the NetBeans project configuration or whatever. Obviously that would have been excessive!
Thanks for the quick response.
> mevenide2: generated sources are not on source paths list for autocompletion and autocompile
> --------------------------------------------------------------------------------------------
>
> Key: MEVENIDE-610
> URL: http://jira.codehaus.org/browse/MEVENIDE-610
> Project: mevenide
> Issue Type: Bug
> Components: mevenide2-netbeans
> Environment: windows xp pro, netbeans 6.0, mevenide2 v3.0.10, jdk 1.5
> Reporter: David Siefert
> Assignee: Milos Kleint
>
> As part of my build process I use the maven-antrun-plugin to generate proxies for web services. The antrun plugin allows you to specify a sources path (see sample below) that will be added to the compilers source paths. The IDE autocompile (which causes red squiqqly underlines) and autocomplete dropdowns do not use this making it very unproductive to develop (since I have to manually look for package names, class names, method names, etc). Is there any workaround that would allow me to manually specify additional source paths for the time being?
> Sample POM specification:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>${path.to.generated.sources}</sourceRoot>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email