You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/11/22 08:53:58 UTC

[jira] [Updated] (OWB-1161) Implement a MetadataDiscovery for spring boot

     [ https://issues.apache.org/jira/browse/OWB-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau updated OWB-1161:
------------------------------------
    Description: 
{code}
<?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>

  <groupId>whatever</groupId>
  <artifactId>whatever</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.apache.meecrowave</groupId>
      <artifactId>meecrowave-core</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>1.2</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>1.4.2.RELEASE</version>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
            <configuration>
              <excludeDevtools>true</excludeDevtools>
              <executable>true</executable>
              <mainClass>org.apache.meecrowave.runner.Cli</mainClass>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
{code}

Allows to use spring boot to create an exectable jar (potentially war but let's keep war for another issue)

Then scanning is broken cause of spring boot layout. We should be able to detect we run with spring boot (BOOT-INF is there) and handle the scanning accordingly.

Note: the snippet uses meecrowave cause it has a runner but we can do the same with a plain OWB as well.

  was:
{code}
<?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>

  <groupId>whatever</groupId>
  <artifactId>whatever</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.apache.meecrowave</groupId>
      <artifactId>meecrowave-core</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>1.2</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>1.4.2.RELEASE</version>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
            <configuration>
              <excludeDevtools>true</excludeDevtools>
              <executable>true</executable>
              <mainClass>org.apache.meecrowave.runner.Cli</mainClass>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
{code}

Allows to use spring boot to create an exectable jar (potentially war but let's keep war for another issue)

Then scanning is broken cause of spring boot layout. We should be able to detect we run with spring boot (BOOT-INF is there) and handle the scanning accordingly.


> Implement a MetadataDiscovery for spring boot
> ---------------------------------------------
>
>                 Key: OWB-1161
>                 URL: https://issues.apache.org/jira/browse/OWB-1161
>             Project: OpenWebBeans
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>
> {code}
> <?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>
>   <groupId>whatever</groupId>
>   <artifactId>whatever</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.meecrowave</groupId>
>       <artifactId>meecrowave-core</artifactId>
>       <version>0.0.1-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>commons-cli</groupId>
>       <artifactId>commons-cli</artifactId>
>       <version>1.2</version>
>     </dependency>
>   </dependencies>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.springframework.boot</groupId>
>         <artifactId>spring-boot-maven-plugin</artifactId>
>         <version>1.4.2.RELEASE</version>
>         <executions>
>           <execution>
>             <goals>
>               <goal>repackage</goal>
>             </goals>
>             <configuration>
>               <excludeDevtools>true</excludeDevtools>
>               <executable>true</executable>
>               <mainClass>org.apache.meecrowave.runner.Cli</mainClass>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
> </project>
> {code}
> Allows to use spring boot to create an exectable jar (potentially war but let's keep war for another issue)
> Then scanning is broken cause of spring boot layout. We should be able to detect we run with spring boot (BOOT-INF is there) and handle the scanning accordingly.
> Note: the snippet uses meecrowave cause it has a runner but we can do the same with a plain OWB as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)