maven

updating embedded jetty webapp in eclipse during run

半世苍凉 提交于 2021-02-11 08:54:54
问题 we have a maven generated webapp that runs in an embedded jetty server all stuffed into a fat jar. This seems to work fine but our UI developer is unhappy because when doing his UI stuff he wants to make changes to his code and not have to restart the webapp to have it show up. It was working like that before I did all the jar stuff. we have a resources section in the pom that looks like this: <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

你离开我真会死。 提交于 2021-02-10 23:16:14
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

两盒软妹~` 提交于 2021-02-10 23:16:09
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

房东的猫 提交于 2021-02-10 23:13:20
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

吃可爱长大的小学妹 提交于 2021-02-10 23:05:31
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

pom.xml marks “Missing artifact com.sun:tools:jar:1.8.0”

一世执手 提交于 2021-02-10 21:21:25
问题 I am trying to develop with Eclipse 2020.6 and m2e using openJDK-11 on Win10 . The computer is maintained by IT department having jre-8 in its PATH and I dot have the rights to change that. I have installed JDK11 below my user folder. Changed eclipse.ini for Eclipse and toolchain.xml for commandline Maven . I also checked Module Dependencies in Java Build Path : com.sun.tools.jar is no longer there. Commandline Maven and Eclipse are using JDK11 instead of jre-8 , except the eclipse-editor for

Run an executable JAR with external class path

对着背影说爱祢 提交于 2021-02-10 20:51:40
问题 Using Maven I compiled my project into a JAR that includes all the dependencies except for one big dependecy. The inclusion of the dependecies is done using: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <configuration> <archive> <manifest> <mainClass>com.mypackage.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>make-assembly</id>

Run an executable JAR with external class path

非 Y 不嫁゛ 提交于 2021-02-10 20:50:49
问题 Using Maven I compiled my project into a JAR that includes all the dependencies except for one big dependecy. The inclusion of the dependecies is done using: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <configuration> <archive> <manifest> <mainClass>com.mypackage.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>make-assembly</id>

Bind .m2 file to docker on build stage

孤街浪徒 提交于 2021-02-10 20:49:01
问题 I tried build a spring boot project in docker container based on below docker file.But every times all mvn dependency download from internet. How can I bind local .m2 file when i build the docker file. This is my Dockerfile FROM maven:3.5-jdk-8-alpine AS build COPY /src /usr/src/javaspring/src COPY pom.xml /usr/src/javaspring COPY Dockerfile /usr/src/javaspring RUN mvn -f /usr/src/javaspring/pom.xml clean install FROM openjdk:8-jre-alpine COPY --from=build /usr/src/javaspring/target

Bind .m2 file to docker on build stage

倖福魔咒の 提交于 2021-02-10 20:45:36
问题 I tried build a spring boot project in docker container based on below docker file.But every times all mvn dependency download from internet. How can I bind local .m2 file when i build the docker file. This is my Dockerfile FROM maven:3.5-jdk-8-alpine AS build COPY /src /usr/src/javaspring/src COPY pom.xml /usr/src/javaspring COPY Dockerfile /usr/src/javaspring RUN mvn -f /usr/src/javaspring/pom.xml clean install FROM openjdk:8-jre-alpine COPY --from=build /usr/src/javaspring/target