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

Rudy De Busscher commented on DELTASPIKE-798:
---------------------------------------------

Using the the jse-examples project

Add this to the POM

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>2.3</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifest>
                            
<mainClass>org.apache.deltaspike.example.beanmanagement.SimpleBeanLookupExample</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>

run *maven -jar deltaspike...  .jar*
-> java.lang.ClassNotFoundException

Running from within IDE, everything is fine.


> Support for uber-jar creation in SE support
> -------------------------------------------
>
>                 Key: DELTASPIKE-798
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-798
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: CdiControl
>    Affects Versions: 1.2.0
>            Reporter: Rudy De Busscher
>
> When a single jar file is created with all dependencies (maven-shade-plugin) 
> the program doesn't run



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

Reply via email to