Error Assembling Ejb Meta-inf/ejb-jar.xml Is Required
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the maven-ejb-plugin example company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Maven Ejb Example
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million maven war plugin programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error assembling EJB: META-INF/ejb-jar.xml is required for ejbVersion 2.x up vote 5 down vote favorite Is there a way to build with maven an EJB project that doesn't contain deployment descriptor? java maven ejb share|improve this question edited Feb 28 '14 at 19:09 Grzegorz Żur 18.5k74867 asked Nov 27 '13 at 10:49 bob-cac 490519 By default Maven tries to build an EJB jar compatible with EJB version 2. This version of EJB standard requires descriptor. –Grzegorz Żur Feb 28 '14 at 19:12 add a comment| 1 Answer 1 active oldest votes up vote 17 down vote accepted If you put your question title into google, the first result yields this:
ejb-client as a dependency Project Documentation Project Information Project Reports Maven Projects Ant Tasks Archetype Doxia JXR Maven Parent POMs Plugins Plugin Testing Plugin Tools Resource Bundles SCM Shared Components Skins Surefire Wagon ASF How Apache Works Foundation Sponsoring Apache Thanks ejb:ejb Full name: org.apache.maven.plugins:maven-ejb-plugin:2.5.1:ejb Description: Build an EJB (and optional client) from the current project. Attributes: Requires http://stackoverflow.com/questions/20240372/error-assembling-ejb-meta-inf-ejb-jar-xml-is-required-for-ejbversion-2-x/20240422 a Maven project to be executed. Requires dependency resolution of artifacts in scope: runtime. The goal is thread-safe and supports parallel builds. Binds by default to the lifecycle phase: package. Required Parameters Name Type Since Description sourceDirectory File - Directory that contains the resources which are packaged http://maven.apache.org/plugins/maven-ejb-plugin/ejb-mojo.html into the created archive target/classes.Default value is: ${project.build.outputDirectory}. Optional Parameters Name Type Since Description archive MavenArchiveConfiguration - The archive configuration to use. See Maven Archiver Reference. classifier String - Classifier to add to the artifact generated. If given, the artifact will be an attachment instead.User property is: ejb.classifier. clientExcludes List - The files and directories to exclude from the client jar. Usage:
Container Development KitCloudOpenShift Enterprise by Red HatMobileRed Hat Mobile Application PlatformAccelerated Development and ManagementRed Hat JBoss Data GridRed Hat JBoss Developer StudioRed Hat JBoss Enterprise Application PlatformRed Hat JBoss Web ServerIntegration and AutomationRed Hat JBoss A-MQRed Hat JBoss BRMSRed Hat https://developer.jboss.org/thread/267147 JBoss BPM SuiteRed Hat JBoss Data VirtualizationRed Hat JBoss FuseCommunityDevelopers BlogInsights & news on Red Hat developer tools, platforms and moreEventsFind the latest conferences, meetups, and virtual seminarsOpen Source CommunitiesCommunity Projects that Red Hat participates inContent ContributorsShare your knowledge. Contribute content to Red Hat Developers.HelpResourcesImportant technical resources for you in all shapes and sizes: blogs, books, code, videos error assembling and more.ForumsWe've extended our popular JBoss.org forums to cover our entire Red Hat portfolio for you.Stack Overflow Q&AYou already use Stack Overflow, so we'll help you use it to find your best answers.DownloadsHomeNewsContentPlacesPeopleSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and error assembling ejb reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Red Hat JBoss Enterprise Application Platform All PlacesProductsRed Hat JBoss Enterprise Application Platform Interested in participating? Red Hat Developer Product Discussions are open to the public and can be viewed by everyone, but you need to log in to post and participate. Login now! 2 Replies Latest reply on Jan 7, 2016 3:28 AM by Sony Joseph Unable to package ejb-jar.xml using maven-ejb-pluggin v 2.5.1 Sony Joseph Jan 6, 2016 11:25 AM HelloI want to package my ejb-jar.xml. so I mentioned the POM.xml pluggin as :