Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-dev] Fat jars for ICE and PTP

Jay,

I just want to clarify what you want to do, which is use the o.e.remote plugins headlessly. Is that correct? The simplest way to do this would be if I create a feature that includes only the non-UI components. Creating a fat jar or publishing to maven central, then using the p2-maven-plugin to OSGi-ify it, seems the long way to get around the problem.

Let me know...
Greg

On Jun 9, 2019, at 7:04 AM, Jay Jay Billings <jayjaybillings@xxxxxxxxx> wrote:

I've been trying to create fat jars for ICE and PTP, but I've had little success. I was able to get a single large zip of everything using the Maven shaded plugin and the Tycho repository plugin:

<plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
            <!--        <createArtifactRepository>false</createArtifactRepository>-->
                    <includeAllDependencies>true</includeAllDependencies>
                </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <!-- put your configurations here -->
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

I also tried the spring boot Maven plugin as Mattias Sohn suggested here


but that failed because I couldn't specify a main class. That is, it was trying to create an executable jar and I just want a library jar.

I tried to look at the p2-maven-plugin last night, 


I fell asleep and didn't get very far, but I think this may do it. I remember some people using this a few years back.

Anyway, I'm just typing this up since Greg has agreed to look at this for PTP. I will play with it some more as well. Any other thoughts or suggestions are welcome too, of course!

Jay

Jay

_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ice-dev


Back to the top