I am trying to recompile a jar targeting a different java version using Maven. I have installed Maven properly and only changed target and source to 7 inside pom.xml file.
Below is the directory of the project I want to built to a jar:
C:.
| pom.xml
| sonar-project.properties
|
+---.sonar
| \---.sonartmp
| \---caches
+---src
| +---main
| | +---java
| | | \---(folder with source java files)
| | |
| | \---resources
| | logback.xml
| |
| \---test
| \---(folder with java files)
|
\---target
| OLDJAR.jar
|
+---classes
| | .netbeans_automatic_build
| | logback.xml
| |
| \---(folder with class files)
|
+---generated-sources
| +---annotations
| \---test-annotations
+---javadoc-bundle-options
| javadoc-options-javadoc-resources.xml
| package-list
|
+---maven-archiver
| pom.properties
|
+---site
| \---(folder with Htmls)
|
\---test-classes
| .netbeans_automatic_build
|
\---(class files)
So, this is how the directory of the library's source looks like. This means that they are already a maven project. They also have OLDJAR.jar under target folder. When I run mvn package, no new jar is created and when I delete OLDJAR.jar and try mvn package, it fails. Any ideas on how I should rebuild this project?
Thanks...