IDEMPIERE-3136 update jasper report to use P2 / enable DejaVu Sans and DejaVu Serif default jasper to render bold/italic properly at least with these two - same as 450fe05 but for dev/maven

This commit is contained in:
Carlos Ruiz 2018-08-29 20:37:39 +02:00
parent 2180fc3524
commit e1afd78419
6 changed files with 27 additions and 3 deletions

View File

@ -4,6 +4,7 @@
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry exported="true" kind="lib" path="lib/castor-core.jar"/> <classpathentry exported="true" kind="lib" path="lib/castor-core.jar"/>
<classpathentry exported="true" kind="lib" path="lib/castor-xml.jar"/> <classpathentry exported="true" kind="lib" path="lib/castor-xml.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-fonts.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-chart-customizers.jar"/> <classpathentry exported="true" kind="lib" path="lib/jasperreports-chart-customizers.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-chart-themes.jar"/> <classpathentry exported="true" kind="lib" path="lib/jasperreports-chart-themes.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-functions.jar"/> <classpathentry exported="true" kind="lib" path="lib/jasperreports-functions.jar"/>

View File

@ -10,6 +10,7 @@ Bundle-ClassPath: .,
lib/castor-xml.jar, lib/castor-xml.jar,
lib/jasperreports-chart-customizers.jar, lib/jasperreports-chart-customizers.jar,
lib/jasperreports-chart-themes.jar, lib/jasperreports-chart-themes.jar,
lib/jasperreports-fonts.jar,
lib/jasperreports-functions.jar, lib/jasperreports-functions.jar,
lib/olap4j.jar, lib/olap4j.jar,
lib/rhino.jar, lib/rhino.jar,

View File

@ -4,6 +4,7 @@ bin.includes = META-INF/,\
lib/castor-xml.jar,\ lib/castor-xml.jar,\
lib/jasperreports-chart-customizers.jar,\ lib/jasperreports-chart-customizers.jar,\
lib/jasperreports-chart-themes.jar,\ lib/jasperreports-chart-themes.jar,\
lib/jasperreports-fonts.jar,\
lib/jasperreports-functions.jar,\ lib/jasperreports-functions.jar,\
lib/olap4j.jar,\ lib/olap4j.jar,\
lib/rhino.jar,\ lib/rhino.jar,\

View File

@ -5,6 +5,7 @@
<target name="copy"> <target name="copy">
<get src="${url.maven2}/org/codehaus/castor/castor-core/1.3.3/castor-core-1.3.3.jar" dest="lib/castor-core.jar" usetimestamp="true" verbose="true" retries="5" /> <get src="${url.maven2}/org/codehaus/castor/castor-core/1.3.3/castor-core-1.3.3.jar" dest="lib/castor-core.jar" usetimestamp="true" verbose="true" retries="5" />
<get src="${url.maven2}/org/codehaus/castor/castor-xml/1.3.3/castor-xml-1.3.3.jar" dest="lib/castor-xml.jar" usetimestamp="true" verbose="true" retries="5" /> <get src="${url.maven2}/org/codehaus/castor/castor-xml/1.3.3/castor-xml-1.3.3.jar" dest="lib/castor-xml.jar" usetimestamp="true" verbose="true" retries="5" />
<get src="${url.file.jp.lib}/jasperreports-fonts-${jp-verion}.jar" dest="lib/jasperreports-fonts.jar" usetimestamp="true" verbose="true" retries="5" />
<get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-chart-themes/${jp-verion}/jasperreports-chart-themes-${jp-verion}.jar" dest="lib/jasperreports-chart-themes.jar" usetimestamp="true" verbose="true" retries="5" /> <get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-chart-themes/${jp-verion}/jasperreports-chart-themes-${jp-verion}.jar" dest="lib/jasperreports-chart-themes.jar" usetimestamp="true" verbose="true" retries="5" />
<get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-chart-customizers/${jp-verion}/jasperreports-chart-customizers-${jp-verion}.jar" dest="lib/jasperreports-chart-customizers.jar" usetimestamp="true" verbose="true" retries="5" /> <get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-chart-customizers/${jp-verion}/jasperreports-chart-customizers-${jp-verion}.jar" dest="lib/jasperreports-chart-customizers.jar" usetimestamp="true" verbose="true" retries="5" />
<get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-functions/${jp-verion}/jasperreports-functions-${jp-verion}.jar" dest="lib/jasperreports-functions.jar" usetimestamp="true" verbose="true" retries="5" /> <get src="${url.maven2.jp}/net/sf/jasperreports/jasperreports-functions/${jp-verion}/jasperreports-functions-${jp-verion}.jar" dest="lib/jasperreports-functions.jar" usetimestamp="true" verbose="true" retries="5" />

View File

@ -11,7 +11,7 @@ guide for update:
for extra like encrypt, have go to sample project to get dependency for extra like encrypt, have go to sample project to get dependency
but just focus common job and already know extra like encrypt) but just focus common job and already know extra like encrypt)
3. also download jasperreports-functions-x.x.x.jar 3. also download jasperreports-functions-x.x.x.jar and jasperreports-fonts-x.x.x.jar
4. now edit org.adempiere.report.jasper.library follow bellow rule 4. now edit org.adempiere.report.jasper.library follow bellow rule
+ if library have same version with library already use on idempiere, just use import package or bundle dependency + if library have same version with library already use on idempiere, just use import package or bundle dependency
@ -50,4 +50,4 @@ note: net.sf.jasperreports.engine_6.3.1.jar use package dynamic import
6. com.jaspersoft.studio.bundles.itext_2.1.7.js5 already have bcprov-jdk14-139 on Bundle-ClassPath, but manifest still import package from bcprov-jdk14-139. so i modify its manifest before call ${ECLIPSE_FOLDER}/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher 6. com.jaspersoft.studio.bundles.itext_2.1.7.js5 already have bcprov-jdk14-139 on Bundle-ClassPath, but manifest still import package from bcprov-jdk14-139. so i modify its manifest before call ${ECLIPSE_FOLDER}/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
7. org.krysalis.barcode4j_2.1.0.jar have osgi version on maven but it dependency to org.apache.avalon, so use version from jasper report. it modify manifest.mf to don't depend to org.apache.avalon 7. org.krysalis.barcode4j_2.1.0.jar have osgi version on maven but it dependency to org.apache.avalon, so use version from jasper report. it modify manifest.mf to don't depend to org.apache.avalon

View File

@ -87,6 +87,26 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>download-db-seed-oracle</id>
<phase>validate</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>${url.file.srv}/jarfile/jp-6.3.1/jasperreports-fonts-6.3.1.jar</url>
<unpack>false</unpack>
<outputDirectory>lib</outputDirectory>
<outputFileName>jasperreports-fonts.jar</outputFileName>
<retries>5</retries>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>