This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215396 - Search taglib descriptor in ${project.build.directory}/classes/META-INF/ to avoid 'library not found'
Summary: Search taglib descriptor in ${project.build.directory}/classes/META-INF/ to a...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 11:29 UTC by ranophoenix
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ranophoenix 2012-07-11 11:29:48 UTC
Some projects generate taglib descriptor dynamically (e.g. PrimeFaces, OL4JSF, GMaps4JSF), but Netbeans looks at only in the src directory (when library source code is set in %USERPROFILE%\.netbeans\7.1.2\config\Preferences\org\netbeans\modules\maven\externalOwners.properties)  causing warnings like 'library not found' in editor for dependent projects.

Workaround (in pom.xml of dependency):

            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <phase>process-resources</phase>
                        <configuration>
                            <target>
                                <copy file="${project.build.directory}/classes/META-INF/ol4jsf.taglib.xml" todir="target/netbeans/META-INF/" />
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <!-- Workaround for 'library not found in netbeans' -->
                                <source>target/netbeans</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Thansk in advance.
Comment 1 Milos Kleint 2012-08-23 11:24:40 UTC
a few sample projects with generated taglibs are of essence I suppose. reassigning to j2ee/maven
Comment 2 Martin Balin 2016-07-07 08:55:51 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss