Integrate Spring Boot in an EAR project -


i have existing war project created using spring boot. how package within ear has ejb module?

is there way move model , dao packages ejb module , injecting war module?

you need parent project includes war project, spring boot project, , ear project making ear.

parent need have spring boot parent :

<?xml version="1.0" encoding="utf-8"?> <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/xsd/maven-4.0.0.xsd">   <modelversion>4.0.0</modelversion>   <parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.4.3.release</version>   </parent>    <groupid>com.greg</groupid>   <artifactid>ear-example</artifactid>   <version>1.0-snapshot</version>   <packaging>pom</packaging>    <properties>         <myproject.version>1.0-snapshot</myproject.version>   </properties>    <name>ear-example</name>   <modules>     <module>example-ear</module>     <module>example-war</module>   </modules>  </project> 

your ear project is:

<?xml version="1.0"?> <project xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/pom/4.0.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">   <modelversion>4.0.0</modelversion>    <parent>     <groupid>com.greg</groupid>     <artifactid>ear-example</artifactid>     <version>1.0-snapshot</version>   </parent>    <artifactid>example-ear</artifactid>   <packaging>ear</packaging>    <dependencies>     <dependency>       <groupid>com.greg</groupid>       <artifactid>example-war</artifactid>       <version>${project.version}</version>       <type>war</type>     </dependency>   </dependencies>    <build>    <plugins>      <plugin>         <artifactid>maven-ear-plugin</artifactid>         <version>2.10.1</version>         <configuration>                 <modules>                         <webmodule>                                 <groupid>com.greg</groupid>                                 <artifactid>example-war</artifactid>                                 <contextroot>/appname</contextroot>                         </webmodule>                 </modules>         </configuration>       </plugin>     </plugins>   </build>  </project> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -