Wednesday, June 24, 2020

How to use Microprofile with tomee-embedded-maven-plugin

Here is a sample POM how to use Microprofile with tomee-embedded-maven-plugin 8.x:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>test</groupId>
    <artifactId>test</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.apache.tomee</groupId>
            <artifactId>javaee-api</artifactId>
            <version>8.0-3</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.microprofile</groupId>
            <artifactId>microprofile</artifactId>
            <version>2.0</version>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>javax.json</groupId>
                    <artifactId>javax.json.bind-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.enterprise</groupId>
                    <artifactId>cdi-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.ws.rs</groupId>
                    <artifactId>javax.ws.rs-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.json</groupId>
                    <artifactId>javax.json-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.annotation</groupId>
                    <artifactId>javax.annotation-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.myfaces.core</groupId>
            <artifactId>myfaces-api</artifactId>
            <version>2.3.6</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>test</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.tomee.maven</groupId>
                <artifactId>tomee-embedded-maven-plugin</artifactId>
                <version>8.0.2</version>
                <configuration>
                    <context>ROOT</context>
                    <containerProperties>
                        <tomee.mp.scan>true</tomee.mp.scan>
                    </containerProperties>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.tomee</groupId>
                        <artifactId>mp-common</artifactId>
                        <version>8.0.2</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
            </plugin>
        </plugins>
    </build>

    <properties>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>
</project>

39 comments:

  1. Nice blog! Thanks for sharing this informative post. As a trainee working in software development at (cubestech). This post would be very useful for my work. Thank you and keep on blogging.

    ReplyDelete
  2. Nice Blog. Thanks for sharing this wonderful Information. This will be helpful for those who are unaware about it.

    If you looking for best Android app development company, reach out Way2smile Solutions Best Android App Development Company in Chennai

    ReplyDelete
  3. This blog for software development are very informative! We find these technology-related topics very daunting, but for our projects we can now use these references.

    Regards,

    Custom Software Development Company

    ReplyDelete
  4. I am happy to find this post Very useful for me, as it contains lot of information. I always prefer to read The Quality and glad I found this thing in you post. Thanks
    A very amazing post thanks for sharing with us.

    ReplyDelete
  5. Great information.
    PineSucceed is a global full-cycle Software development company with niche expertise and a focus on the latest technologies. Since 2015, we have been helping companies achieve their goals with impactful, industry-specific software solutions. We are proud to earn the trust of world-class brands.

    ReplyDelete
  6. Patient Management System Software (LHMS) Allow patients to schedule & manage their appointments with 10to8. Forecast service demand & keep your clinics from getting overcrowded. Provide a safe environment for patients & staff alike while increasing productivity & efficiency. Increase hospital appointment attendance:

    ReplyDelete
  7. Dynode Software provides the best digital marketing in Patna. Dynode Software is a leading name in providing the best search engine optimization services (SEO) in Patna, Bihar is beneficial for the development of any business or startups or local brands. Contact us now best digital marketing in Patna.

    ReplyDelete
  8. PMS is a Invoice Accounting Software suite offered as a service that performs enterprise resource planning (ERP) and customer relationship management (CRM) functions.

    ReplyDelete
  9. Dynode Software best IT Company in Patna . is a award winning organization, working with global organizations to deliver digital learning & technology services starting from content to final execution, enabling them to equip their learners to perform their best and be future-ready.

    ReplyDelete
  10. Dynode Software website development in Patna. It specializes in Web Designing(UI/UX), Pay Per Click, Web Development, Search Engine Optimization, Mobile App Development services.

    ReplyDelete
  11. Dynode Software LHMS is an advanced comprehensive IT solution for single or a network of hospitals. The key objective of this solution is to integrate all the operations within a hospital in a unique way to ensure that no handoffs between two people are ever missed. Get hospital management application in Patna.

    ReplyDelete
  12. PMS ERP Software comes with a comprehensive answer for automating the business processes involved with the pharmaceutical business. We offer the Best Invoice And Accounting Software in Patna .

    ReplyDelete
  13. Nice Information Blog
    Jewellery by Mitali Jain

    Jewellery By Mitali Jain is the best website to buy artificial jewellery shop in Jaipur. They sell fancy and attractive statement jewellery designers products like Earrings, Rings, Necklaces, Headgears, Bracelets, Mask and Glass Chains, Bookmark Jewellery, Gift Cards and many more items like this. And also checkout our new collections Summer Luna Collection, Holy Mess Collection and Vintage Trésor Collection.

    ReplyDelete
  14. Digital DCR lead management software helps you in lead acquisition, qualification, verification, assignment/routing, prospecting, and sales closure. Failure to set sales targets and monitor sales performance and tracking, managing and servicing leads. Get Pharma sales force automation in Patna

    ReplyDelete
  15. Software Development in Dubai
    https://www.nsreem.com/ourservices/software-development/
    NSREEM develop amazing desktop and web applications that are tailored to your specific requirements.
    NSREEM is #1 in Software Development in Dubai
    1633063355350-10

    ReplyDelete
  16. Currently, every business faces the need to develop a custom business app to guarantee constant growth. If a company has sufficient funds and a team of experienced IT experts, it can afford in-house software development services. If you need a Software Developer for your business, contact us and get your dream software at an affordable price.

    ReplyDelete
  17. Thanks for sharing this information this code. This will helps many software developers.
    Software Development Outsourcing

    ReplyDelete
  18. Nicely Explained! To support software development demands I would also like to share, The markets for IoT hardware, software, systems integration, and data and telecom services to grow to $520 billion in 2021, more than double the $235 billion spent in 2017." Constantly, Top Mobile app development companies in the USA are growing rapidly with the increasing demands of android & iOS mobile app development.

    ReplyDelete
  19. Thankyou for shairng such as nice article post keep it shaing.
    Red Pill Analytics combines the best elements of cloud, agile development-as-a-service, and continuous delivery to form a unique analytics services company.
    red pill software development

    ReplyDelete
  20. Dynode Software develops pharmacy software named Digital DCR which empowers pharmacies and other healthcare professionals to provide effective and preventive health care services. This software can help you expand your pharmacy system by reaching more patients and thus improving your ratings. It has a web-based user-friendly interface which is always updated to keep pace with the changing technologies. Approach us for Online Sales Reporting Software.

    ReplyDelete
  21. We are an all-in-one digital marketing agency based in Chandigarh that offers a full range of digital marketing services, from on-page SEO to complete PCC solutions. The growth of our company is proportional to the growth of our clients. As a result, as the best Digital Marketing Agency in Chandigarh, we provide world-class solutions to our customers.

    We believe it is our responsibility to ensure that all of your business objectives are met and that our services benefit you in the long run. Our strategic approach will boost your company's digital visibility, as well as its overall digital footprint and brand value. Because of our approach, we are the best Digital Marketing Agency in Chandigarh

    ReplyDelete
  22. Very fantastic and well-written post.Its extremely good and very helpful for me.Thanks for sharing.
    Web Designing & Custom Web Development Services

    ReplyDelete
  23. PMS is a fully featured Sales & Inventory Management Software designed to serve Startups, Agencies. PMS by Dynode Software provides end-to-end solutions designed for Web App. This online Inventory Management system offers Barcoding / RFID, Reporting/Analytics, Warehouse Management, Forecasting, Order Management at one place. Basic Inventory Control Software .

    ReplyDelete
  24. The information you have provided is really amazing.
    Thanks For sharing the information with us.
    Also, if you want to visit Best Software Development Company in Noida, click on the link above.

    Thanks once again!
    :-)

    ReplyDelete
  25. This is a Great Tutorial you've provided. Thanks for sharing. Can you make a one on Software Development Company in USA .

    ReplyDelete
  26. Thanks for sharing such information this article will help many software developers

    ReplyDelete
  27. Jploft is a Ecommerce App Development Company serving clients from all over the world for the last 14 years. We have been working very hard for all of our customers and give a very long-term relationship, which is our first priority.

    ReplyDelete
  28. Great post with unique information About IT Services In USA



    Great post with unique information About IT Services In Australia



    Great post with unique information About IT Services In Canada



    Great post with unique information About IT Services In UK



    Great post with unique information About IT Services In UAE

    ReplyDelete
  29. Dynode Software helps you to deliver prompt and accurate SEO services and save great operational time. The software developed by the software development company is highly flexible and can be integrated well with other key components as well. Contact us for video marketing in patna .

    ReplyDelete
  30. Mobile apps have become an important part of every business. Mobile apps have been affecting business for quite a while and help in expanding scalability. Developing an astonishing-looking app with robust security and modern technology is a tough task. For this Ameotech Informatics, the leading Mobile app development company in Mohali has the best expertise in mobile app development. To develop the finest applications with attractive interfaces and smooth operations, you can count on us. Ameotech Informatics is the top React Native app development company in the market. We have influenced various fields including travel, sports, eCommerce, enterprise, marketing, social media, gaming, etc. As a top Reactjs Development Services Company provider, Ameotech Informatics design, and develop Web Apps and Mobile apps that get featured in the app store and win the marketplace.

    ReplyDelete
  31. Great content with proper explanation. I've some doubts but now all is clear. Thanks for explaining it perfectly.

    Whether you belong to a leading industry or just a new startup, we love to be your technology partner to achieve your short-term objectives as well as your futuristic mission, through our top-notch development expertise that excels our dexterity and eminence as a software development company in India & USA.

    Software development

    ReplyDelete
  32. The blog does a great job of highlighting the key benefits of implementing such software, including improved customer support, streamlined operations, and the ability to provide multi-channel assistance. These benefits not only enhance the customer experience but also contribute to increased efficiency within the organization. Also Visit: cloud migration solutions.

    ReplyDelete
  33. Thank you for sharing your knowledge. It's an excellent blog post! It clearly highlights the software’s essential benefits for enhancing customer experience and organisational efficiency. If you want software development services in Noida contact us @Best Software Development Company

    ReplyDelete
  34. Integrating MicroProfile with Tomee-Embedded-Maven-Plugin simplifies Java microservice development. First, add the Tomee-Embedded-Maven-Plugin and relevant MicroProfile dependencies to your `pom.xml`. Configure the plugin to include MicroProfile specifications, such as CDI, Config, and Rest Client. In your Java classes, use MicroProfile annotations to enable features like dependency injection, configuration management, and RESTful services. Execute the Maven goals to build and run your microservices in an embedded TomEE server, ensuring a lightweight, flexible development environment.

    Custom Mobile App Development Services

    Leverage our expertise in custom mobile app development to create tailored, high-performance applications that meet your unique business needs.

    ReplyDelete
  35. Excellent insights! This post is both informative and engaging—perfect for anyone looking to deepen their understanding on this topic. Keep it up!"

    Aviator Game Development Company!

    ReplyDelete