[
https://issues.jboss.org/browse/JBRULES-2901?page=com.atlassian.jira.plug...
]
Geoffrey De Smet edited comment on JBRULES-2901 at 2/16/11 5:56 AM:
--------------------------------------------------------------------
This is the hack we have in the pom, which writes the dependencies to the lib dir:
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<!-- TODO if the lib directory is empty tycho crashes because it does dep
resolving before this phase -->
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>lib</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>true</stripVersion>
<includeScope>test</includeScope>
</configuration>
</execution>
</executions>
</plugin>
{code}
Then the osgi manifest includes those lib dirs:
{code}
Bundle-ClassPath: .,
lib/drools-api.jar,
lib/drools-core.jar,
...
{code}
was (Author: ge0ffrey):
This is the hack we have in the pom, which writes the dependencies to the lib dir:
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<!-- TODO if the lib directory is empty tycho crashes because it does dep
resolving before this phase -->
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>lib</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>true</stripVersion>
<includeScope>test</includeScope>
</configuration>
</execution>
</executions>
</plugin>
{code}
Than the osgi manifest includes those lib dirs.
Eclipse plugins: First build should not fail - Tycho must not be used
with Bundle-ClassPath in MANIFEST.MF and lib hack
-----------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2901
URL:
https://issues.jboss.org/browse/JBRULES-2901
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Geoffrey De Smet
Assignee: Geoffrey De Smet
Currently, you have to build it 3 times before it builds succesfully.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira