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

Maurizio Cucchiara commented on OGNL-16:
----------------------------------------

I recopy here the shade profile, for those might find usefull
{code:xml}
    <profile>
      <id>shade</id>
      <activation>
        <property>
          <name>shade</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>1.4</version>

            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>shade</goal>
                </goals>
                <configuration>
                  <artifactSet>
                    <excludes>
                      <exclude>javassist:javassist</exclude>
                    </excludes>
                  </artifactSet>
                  <relocations>
                    <relocation>
                      <pattern>org.apache.commons.ognl</pattern>
                      <shadedPattern>ognl</shadedPattern>
                    </relocation>
                  </relocations>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
{code}

> Introduce shade plugin in order to relocate the o.a.commons package
> -------------------------------------------------------------------
>
>                 Key: OGNL-16
>                 URL: https://issues.apache.org/jira/browse/OGNL-16
>             Project: OGNL
>          Issue Type: Improvement
>            Reporter: Maurizio Cucchiara
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> Hi, guys. 
> I set-up the shade plugin inside the OGNL pom, such that I can obtain a 
> relocated version of the o.a.commons package.
> IMHO that's very useful, because it allows me to do some performance's test 
> on struts (simply exclude the old ognl artifact from xwork and s2 core and 
> include the commons version). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to