*bump*
Anyone?

"Thorsten Heit" <[email protected]> schrieb am 13.02.2012 17:30:44:

> Von: "Thorsten Heit" <[email protected]>
> An: Maven Users List <[email protected]>
> Datum: 13.02.2012 17:31
> Betreff: AppAssembler and very long classpath
> 
> Hi,
> 
> I'm using the appassembler plugin to generate executable scripts for 
> Windows and Unix machines. The resulting structure is basically the 
> following:
> 
> <myapp>
> +- bin
> +- lib
> +- log
> 
> My pom.xml contains:
> 
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>appassembler-maven-plugin</artifactId>
>   <version>1.2</version>
>   <executions>
>     <execution>
>       <id>attach-appassembler</id>
>       <phase>package</phase>
>       <goals>
>         <goal>assemble</goal>
>       </goals>
>     </execution>
>   </executions>
>   <configuration>
>     <platforms>
>       <platform>unix</platform>
>       <platform>windows</platform>
>     </platforms>
>     <binFileExtensions>
>       <unix>.sh</unix>
>       <windows>.cmd</windows>
>     </binFileExtensions>
>  <assembleDirectory>${project.build.directory}/myapp</assembleDirectory>
>     <repositoryLayout>flat</repositoryLayout>
>     <repositoryName>lib</repositoryName>
> 
> <includeConfigurationDirectoryInClasspath>false</
> includeConfigurationDirectoryInClasspath>
>     <programs>
>       <program>
>         <mainClass>my.app.Tool</mainClass>
>         <name>${project.artifactId}</name>
>       </program>
>     </programs>
>   </configuration>
> </plugin>
> 
> No big magic, and until recently everything worked fine.
> 
> Because lots of the dependencies that are used are being worked on and 
> actually available only as snapshots, the generated class path at least 
in 
> the Windows script gets too long so that I cannot start my program 
anymore 
> on Windows machines.
> 
> The mojo's FAQ page says that to solve this problem, one has to use 
> "booter-windows" and/or "booter-unix" platforms. But how exactly do I 
have 
> to do this? Inserting these values as platform names results in an 
error:
> 
> "Non-valid default platform declared, supported types are: [windows, 
unix] 
> -> [Help 1]"
> 
> The only other hint about "booter-unix" / "booter-windows" is under 
"Usage 
> -> Daemon" in the mojo documentation, but I cannot figure out how to 
> create such a daemon mechanism...
> 
> 
> Can someone point me in the right direction and/or has a working 
solution 
> for that problem?
> 
> 
> Regards
> 
> Thorsten

Reply via email to