Can't connect to X11 window server : Pass the parameter -Djava.awt.headless=true to the forked JVMs

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@491366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2006-12-31 02:24:20 +00:00
parent 154db697b9
commit 6ee1df8638
2 changed files with 3 additions and 0 deletions

View File

@ -260,6 +260,7 @@ plugin.currentVersion = [${plugin.currentVersion}]
<sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImp"/> <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImp"/>
<sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<sysproperty key="java.endorsed.dirs" path="${java.home}/lib/endorsed;${maven.home}/lib/endorsed}"/> <sysproperty key="java.endorsed.dirs" path="${java.home}/lib/endorsed;${maven.home}/lib/endorsed}"/>
<jvmarg value="-Djava.awt.headless=true"/>
<classpath> <classpath>
<pathelement location="${plugin.getDependencyPath('xerces:xercesImpl')}"/> <pathelement location="${plugin.getDependencyPath('xerces:xercesImpl')}"/>
<pathelement location="${plugin.getDependencyPath('xalan')}"/> <pathelement location="${plugin.getDependencyPath('xalan')}"/>
@ -305,6 +306,7 @@ plugin.currentVersion = [${plugin.currentVersion}]
<echo>Generating ${internal_pdf_workingDir}/${maven.pdf.pdfName} ...</echo> <echo>Generating ${internal_pdf_workingDir}/${maven.pdf.pdfName} ...</echo>
<echo>Config file: ${internal_pdf_workingDir}/userconfig.xml</echo> <echo>Config file: ${internal_pdf_workingDir}/userconfig.xml</echo>
<java classname="org.apache.fop.apps.Fop" fork="true" failonerror="true"> <java classname="org.apache.fop.apps.Fop" fork="true" failonerror="true">
<jvmarg value="-Djava.awt.headless=true"/>
<sysproperty key="javax.xml.transform.TransformerFactory" value="org.apache.xalan.processor.TransformerFactoryImpl"/> <sysproperty key="javax.xml.transform.TransformerFactory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
<!-- System proxies for jdk 1.5+ --> <!-- System proxies for jdk 1.5+ -->
<sysproperty key="java.net.useSystemProxies" value="true"/> <sysproperty key="java.net.useSystemProxies" value="true"/>

View File

@ -25,6 +25,7 @@
</properties> </properties>
<body> <body>
<release version="2.5.1-SNAPSHOT" date="in SVN"> <release version="2.5.1-SNAPSHOT" date="in SVN">
<action dev="aheritier" type="fix">Error "Can't connect to X11 window server" on Unix.</action>
<action dev="ltheussl" type="fix" issue="MPPDF-57">Unable to remove cover type and version.</action> <action dev="ltheussl" type="fix" issue="MPPDF-57">Unable to remove cover type and version.</action>
</release> </release>
<release version="2.5" date="2006-07-21"> <release version="2.5" date="2006-07-21">