You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sab12in <sa...@yahoo.co.in> on 2014/10/23 01:33:03 UTC

Camel example builds in net bean but java class source shows error

Hi All,

I am very new to camel, i just took the example "Report Incident" that comes
with camel download and opened using NetBeans 8. Then compiled the POM.
Everything shows success but then i look at the generated source from wsdl
at
reportincident\target\generated\src\main\java\org\apache\camel\example\reportincident
then files like ReportIncidentEndpoint.java has error for
OutputReportIncident,InputReportIncident,ObjectFactory as can not defined
symbol. Though all these clasess are present in the same package.

Could some one please help what is the issue and how to resolve it.

<http://camel.465427.n5.nabble.com/file/n5757912/Screenshot.png> 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-example-builds-in-net-bean-but-java-class-source-shows-error-tp5757912.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel example builds in net bean but java class source shows error

Posted by sab12in <sa...@yahoo.co.in>.
Ok i found something which will add the generated classes to the build
location, so now if you use any of the generated classes in your
implementation you wont see the objects underlined in red.

            
           <plugin>                 
                <groupId>org.codehaus.mojo</groupId>                 
                <artifactId>build-helper-maven-plugin</artifactId>                 
                <executions>                     
                    <execution>                         
                        <id>add-source</id>                         
                        <phase>generate-sources</phase>                         
                        <goals>                             
                            <goal>add-source</goal>                         
                        </goals>                         
                        <configuration>                             
                            <sources>                                 
                               
<source>${basedir}/target/generated/src/main/java</source>                             
                            </sources>                         
                        </configuration>                     
                    </execution>                 
                </executions>             
            </plugin> 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-example-builds-in-net-bean-but-java-class-source-shows-error-tp5757912p5757913.html
Sent from the Camel - Users mailing list archive at Nabble.com.