Exchange class file in maven dependeny with fixed java in Eclipse -


i want exchange 1 file in maven dependency (docx4j) using eclipse. no command-line tools maven installed right now. have 2 .java files downloaded manually github should overwrite 2 .class files. , achieve without re building whole project.

another perspective: there source-code changes libary in github reposetory not published in released version on maven central. , there no jar file provided. want use these changes in project gets dependencys though maven. , avoid going deployment process of framework itself.

i read in how edit .class file in maven dependency in eclipse not possible without rebuilding project. got hint in how accept revisions / track changes (ins/del) in docx? possbile using mvn install:install-file. maven guide talks jars exchange, not single .java file should replace .class file.

my pom.xml

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>mygroup</groupid>     <artifactid>myartefact</artifactid>     <version>0.1</version>     <name>myname</name>     <description>mydescription</description>     <properties>         <java.version>1.8</java.version>     </properties>     <dependencies>         <dependency>             <groupid>org.docx4j</groupid>             <artifactid>docx4j</artifactid>             <version>3.3.5</version>         </dependency>         <dependency>             <groupid>com.google.code.gson</groupid>             <artifactid>gson</artifactid>             <version>2.8.0</version>         </dependency>     </dependencies>     <build>         [...]     </build> </project> 

it not clear me problem "downloading whole project" is. see pom.xml, should easy downloading docx4j-master.zip, unpack , run mvn install. docx4j available in local repository, have adjust version in pom.xml of project. there other solutions closer suggestion, these true hacks. far cleanest , future proof.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -