Appassembler and long classpath

I am using maven appassembler to create my assembly. My class path is too long, and I get "The input string is too long." The suggestion here is to use the windows platform with the bootloader, but I am forbidden to use the Java Service Wrapper. Anyway, can I use java6 pathpath wildcard class and java service wrapper?

+3
source share
6 answers

The answer seems to be “No,” without writing a plugin or extending an existing plugin that is not an “answer” to the original question.

+2
source

(.. lib). , appassembler , .

<build>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>appassembler-maven-plugin</artifactId>
      <version>1.3.1</version>
      <configuration>
        <programs>
          <program>
            <mainClass>com.mycompany.app.MyApp</mainClass>
            <name>runMyApp</name>
          </program>
        </programs>
        <repositoryLayout>flat</repositoryLayout>
      </configuration>
    </plugin>
  </plugins>
</build>
+1

:

<useWildcardClassPath>true</useWildcardClassPath>

, , , , :

<repositoryLayout>flat</repositoryLayout>
+1

...

By never working with JSW, perhaps you could create your own compilation plugin based on the code http://maven.apache.org/plugins/maven-assembly-plugin/source-repository.html and use it instead.

0
source

I registered a JIRA question here:

http://jira.codehaus.org/browse/MAPPASM-203

You can go and vote for him.

0
source

Source: https://habr.com/ru/post/1738687/


All Articles