Asking for help (advanced level of programming needed )

profilefcyad9q

https://www.javatpoint.com/example-of-sending-email-using-java-mail-api


Wondering if I can ask for help with getting Maven to build the .jar files.  Following' link above, we need to add 2x 3rd party jars to get emails up and running on the back end.


I added the jars in a lib file.  Then told maven to install and updated the pom file (following https://stackoverflow.com/questions/396245/add-a-dependency-in-maven ).  I still don't see .class files for either though


https://stackoverflow.com/questions/396245/add-a-dependency-in-maven



How do I take a jar file that I have and add it to the dependency system in maven 2? I will be the maintainer of this dependency and my code needs this jar in the class path so that it will compile.


I committed to my repo the changes to the pom file (2 added dependencies) -- https://github.com/fafnix/mainBuild/blob/master/pom.xml


Also, here are the install commands (also tried mvn clean install).  I double checked the version number (head of the unzipped files -- https://stackoverflow.com/questions/5834794/how-to-check-the-version-of-jar-file) and mvnrepository has the dependency format (https://mvnrepository.com/artifact/javax.activation/activation/1.0.2):

mvn install:install-file -Dfile=lib/mail.jar -DgroupId=javax.mail -DartifactId=mail -Dversion=1.4.3

mvn install:install-file -Dfile=lib/activation.jar -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar


mainBuild - The build which Heroku is running


https://stackoverflow.com/questions/5834794/how-to-check-the-version-of-jar-file


I am currently working on a J2ME polish application, just enhancing it. I am finding difficulties to get the exact version of the jar file. Is there any way to find the version of the jar file for ...


Any thoughts?


    • 8 years ago
    • 10
    Answer(0)