Is there a way to specify in the pom file that a directory, such as /target/generated/cxf, should be included in the Eclipse classpath?
I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code goes into /target/generated/cxf. I need to reference this code from my code, but I don't want to put the generated code under version control and therefore
don't want to move it to /src/main/java. However, if I leave it under /target/generated/cxf, then I have to configure my project in Eclipse to include /target/generated/cxf in the Eclipse classpath. This is no fun as I have to make this step part of the setup
procedures that other developers have to do before they can start working with the code. Someone told me that this is not an issue when using NetBeans because the NetBeans/Maven component automatically includes the generated code in the classpath. Is there
a better solution? Is there any articles on this topic that lays out the possible approaches and carefully weighs the pros and cons of each?
Thanks,
Nathan
Nathan Ward
Sr. Software Engineer
Merlin International, Inc.
8381 Old Courthouse Road Ste. 200
Vienna, VA 22182
Phone 703-752-7436
Fax 703-752-2935
nward@xxxxxxxxxxxxxxx
www.merlin-intl.com

CONFIDENTIALITY NOTICE: This
e-mail and any attachments contain information from Merlin International, Inc, and are intended solely for the use of the named recipient or recipients. Any dissemination of this e-mail by anyone other than an intended recipient is strictly prohibited. If
you are not a named recipient, you are prohibited from any further viewing of the e-mail or any attachments or from making any use of the e-mail or attachments. If you believe you have received this e-mail in error, notify the sender immediately and permanently
delete the e-mail, any attachments, and all copies thereof from any drives or storage media and destroy any printouts of the e-mail or attachments.