Skip to content

Commit

Permalink
Fix Travis build failing due to launch4j config
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jan 13, 2013
1 parent 2cca85b commit 71cfc74
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 55 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Expand Up @@ -282,9 +282,9 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
</plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
</plugin>
</plugins>

<pluginManagement>
Expand Down Expand Up @@ -430,8 +430,8 @@
<artifactId>maven-overview-plugin</artifactId>
<version>1.6</version>
<configuration>
<width>700</width>
<height>700</height>
<width>700</width>
<height>700</height>
</configuration>
</plugin>
<plugin>
Expand Down
112 changes: 63 additions & 49 deletions webcam-capture-examples/webcam-capture-executable/pom.xml
Expand Up @@ -27,6 +27,66 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>build-executable</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>l4j-gui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${project.build.directory}/capture.exe</outfile>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<errTitle>Error</errTitle>
<icon>src/main/resources/Security-Camera.ico</icon>
<classPath>
<mainClass>com.github.sarxos.webcam.WebcamExecutableExample</mainClass>
<addDependencies>true</addDependencies>
<jarLocation>libs</jarLocation>
</classPath>
<jre>
<minVersion>1.5.0</minVersion>
<maxVersion>1.6.0</maxVersion>
</jre>
<singleInstance>
<mutexName>WebcamCapture</mutexName>
<windowTitle>${project.name}</windowTitle>
</singleInstance>
<versionInfo>
<fileVersion>1.2.3.4</fileVersion>
<txtFileVersion>v1.2.3.4</txtFileVersion>
<fileDescription>${project.name}</fileDescription>
<copyright>Bartosz Firyn</copyright>
<productVersion>1.2.3.4</productVersion>
<txtProductVersion>v1.2.3.4</txtProductVersion>
<productName>${project.name}</productName>
<internalName>${project.name}</internalName>
<originalFilename>capture.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -54,52 +114,8 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>l4j-gui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${project.build.directory}/capture.exe</outfile>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<errTitle>Error</errTitle>
<icon>src/main/resources/Security-Camera.ico</icon>
<classPath>
<mainClass>com.github.sarxos.webcam.WebcamExecutableExample</mainClass>
<addDependencies>true</addDependencies>
<jarLocation>libs</jarLocation>
</classPath>
<jre>
<minVersion>1.5.0</minVersion>
<maxVersion>1.6.0</maxVersion>
</jre>
<singleInstance>
<mutexName>WebcamCapture</mutexName>
<windowTitle>${project.name}</windowTitle>
</singleInstance>
<versionInfo>
<fileVersion>1.2.3.4</fileVersion>
<txtFileVersion>v1.2.3.4</txtFileVersion>
<fileDescription>${project.name}</fileDescription>
<copyright>Bartosz Firyn</copyright>
<productVersion>1.2.3.4</productVersion>
<txtProductVersion>v1.2.3.4</txtProductVersion>
<productName>${project.name}</productName>
<internalName>${project.name}</internalName>
<originalFilename>capture.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
Expand All @@ -115,9 +131,7 @@
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.5.1,)</versionRange>
<goals>
<goal>
copy-dependencies
</goal>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
Expand All @@ -131,4 +145,4 @@
</plugins>
</pluginManagement>
</build>
</project>
</project>
3 changes: 2 additions & 1 deletion webcam-capture/pom.xml
Expand Up @@ -124,7 +124,8 @@
com.github.sarxos.webcam.util,
</Export-Package>
<Private-Package>
!*,
com.github.sarxos.webcam.ds,
com.github.sarxos.webcam.ds.*,
</Private-Package>
<Include-Resources>{maven-resources}</Include-Resources>
</instructions>
Expand Down

0 comments on commit 71cfc74

Please sign in to comment.