Difference between javax.servlet-api.jar vs servlet-api.jar

javax.servlet-api version 3.0.1 has annotation folder which contains different annotation classes where servlet-api version 2.5 or below (i.e version 2.4) does not contain annotation. Annotation represents the metadata. If you use annotation, deployment descriptor i.e. web.xml is not required. For example if you use annotation like @WebServlet(“/hello”) in your servlet file then you don’t need … Read more

Can Nexus or Artifactory store simple tar.gz artifacts?

Both Artifactory and Nexus can handle any type of file, as they both are “Binary Repository Managers”. Albeit that, Nexus can technically store any file, but lacks support for binaries that do not adhere to the Maven repository layout. For example, such files will not be indexed and cannot be retrieved in searches; Also, if … Read more

How to publish artifacts in Travis CI?

GitHub releases step-by-step The method was mentioned at https://stackoverflow.com/a/24100779/895245, and is poorly documented at: https://docs.travis-ci.com/user/deployment/releases/ , so here goes a more detailed step-by-step. It uploads artifacts to GitHub releases https://github.com/<username>/<repo>/releases which exist for every Git tag you push. Get a Personal Access Token under https://github.com/settings/tokens Only enable “public_repo” access for public repositories, “repo” for private. … Read more

Where are Jenkins artifacts located?

It is being archived on the master server (even if the build were on a slave) in the following folder: $JENKINS_HOME/jobs/<job>/builds/<build>/archive But you can configure a different location using the ‘Advanced’ setting of the job (where you can set a different workspace folder) or using plugins that are made for this purpose such as Copy … Read more

Why is a Safari page breaking iOS rendering?

This memory leaks is probably due to how ‘WebKit’s JS Engine’ works [safari webkit-javascript llvm] and really looks like to be a virtual memory buffer-overflow, having a direct impact on the remaining RAM (shared and used also by iOS to store User Interface graphical elements) Relatively to the piece of code: “[…]finding jQuery memory leaks … Read more

How to manually deploy artifacts in Nexus Repository Manager OSS 3

I’m using maven deploy file. mvn deploy:deploy-file -DgroupId=my.group.id \ -DartifactId=my-artifact-id \ -Dversion=1.0.0.1 \ -Dpackaging=jar \ -Dfile=foo.jar \ -DgeneratePom=true \ -DrepositoryId=my-repo \ -Durl=http://my-nexus-server.com:8081/repository/maven-releases/ UPDATE: As stated in comments using quotes in url cause NoSuchElementException But I have add server config in my maven (~/.m2/settings.xml). <servers> <server> <id>my-repo</id> <username>admin</username> <password>admin123</password> </server> </servers> References: Maven Apache – Guide … Read more

How do I force Maven to use my local repository rather than going out to remote repos to retrieve artifacts?

The dependency has a snapshot version. For snapshots, Maven will check the local repository and if the artifact found in the local repository is too old, it will attempt to find an updated one in the remote repositories. That is probably what you are seeing. Note that this behavior is controlled by the updatePolicy directive … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)