[ 
https://issues.apache.org/jira/browse/OWB-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17072662#comment-17072662
 ] 

Mark Struberg commented on OWB-1161:
------------------------------------

The problem is that we get the following URL from spring-boot:

{noformat}
file:/Users/struberg/develop/java/someproject/bla/clientmodul/proxy/ui/target/clientmodul-proxy-ui-0.1.0-SNAPSHOT-spring-boot.jar!/BOOT-INF/lib/deltaspike-cdictrl-api-1.8.1.jar!/
{noformat}

in xbean finder JarArchive cuts out anything after the '!', effectively ending 
up with:
{noformat}
file:/Users/struberg/develop/java/someproject/bla/clientmodul/proxy/ui/target/clientmodul-proxy-ui-0.1.0-SNAPSHOT-spring-boot.jar
{noformat}

That means JarArchive simply won't find anything. We imo should fix this in OWB 
but need to fix it in xbean.


> 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
>            Priority: Major
>
> {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
(v8.3.4#803005)

Reply via email to