Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Looks like the indentation in the POM file was causing spaces to appear in the generated MANIFEST.MF file, and those spaces were being interpreted as indication of line continuation.</p> <p>I've rejigged the antrun section <a href="https://github.com/griels/yajsw-maven/tree/58235e560c0d11f10a865c78f593c435190f0db7/yajsw-maven-git/pom.xml" rel="nofollow">as follows</a>:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;version&gt;1.7&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;compile&lt;/id&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;configuration&gt; &lt;target&gt; &lt;property name="cp.props" value="${basedir}/target/assembly/classPath.properties" /&gt; &lt;property name="ls" value="${line.separator}"/&gt; &lt;concat destfile="${cp.props}"&gt; &lt;string&gt;wrapper.core.classpath=&lt;/string&gt; &lt;filelist dir="${basedir}/target/assembly" files="classPath" /&gt; &lt;/concat&gt; &lt;property file="${cp.props}" /&gt; &lt;echo file="${MANIFEST}" message="Manifest-Version: 1.0 ${ls}Class-Path-Wrapper-Core: ${ls} ${wrapper.core.classpath}${ls} ${ls}Class-Path-Wrapper-Extended: ${ls} ${wrapper.core.classpath}${ls} ${ls}Class-Path-App: ${ls} ${wrapper.core.classpath}${ls} ${ls}Main-Class: org.rzo.yajsw.boot.WrapperExeBooter${ls}" /&gt; &lt;replace file="${MANIFEST}" token="${pathDelim}" value=" " /&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>YAJSW seems a bit happier now when referencing the classpaths in the .jar, although I haven't got it quite right yet. Still, pretty happy with this outcome! Hope all my findings are of use to someone - I couldn't find this info on SO or in the Maven docs.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload