How do I know what version of a Maven plugin to use? - maven

How do I know what version of a Maven plugin to use?
For example, where on the horrible Maven website can I find a list of versions of the compiler plugin?
http://maven.apache.org/plugins/maven-compiler-plugin/

Here is what I do
Go to http://mvnrepository.com
Search for maven-compiler-plugin
You should find the first one is the one you need. http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin
Find the one with the latest version and use that one
The above works because maven repo also has the latest plugins. Hope this helps.

Presumably, you're looking for the issue tracker, which shows issues, versions, changelogs, etc. On just about any of the "horrible" Maven plugin pages, you'll find a link to the issue tracker on the left side under "Project Information".

Related

Is there an obvious way to see the changelog of a maven plugin?

In particular I was searching for changes in recent versions of the maven install plugin.
Looks like a stupid question for me, but I did struggle for some time to find the apache blog entry, finally succeeding with Google search changelog "apache maven plugin".

What the latest version published of an artifact?

There's a way to list(no download) what the latest version published of an artifact?
If possible using a command or utility, I'm using Maven and Artifactory.
Thanks
I always just google the artifact name/id and "maven" to get to the artifact's page on whatever repo is hosting the artifact. From there I can see dependencies and the exact stanza I need for each of the available versions.
A tool or utility would have to be told which repo to search - a more complex invocation and less information than what google gives you.
The best thing i could suggest is to use http://search.maven.org which is the search engine for Maven Central.
Apart from that the search enginge has a REST-API which can simply be used.

Gradle: Show dependencies that have newer versions

Is there a plugin or sth. else for Gradle that informs you when there are new library versions available for a certain depedency?
Might be difficult if some libs do not stick to well-known version conventions but for the others I think it should be possible to find out!?
If there is not, any hints how to implement this feature are appreciated.
Thanks
No such plugin ships with Gradle. There might be a third-party plugin, but I'm not aware of one. To implement this, you would iterate over a configuration's resolved dependencies (using the configuration.resolvedConfiguration or configuration.incoming API) and query some website (e.g. http://search.maven.org) or web service for latest versions. For API details, see the Gradle Build Language Reference.

How can I build HornetQ from source?

I'm not new to maven. but I don't know why my maven use 1.1.1 version of maven-plugin, hornet-maven-plugin. the reason I say about the version is that the repository doesn't have the version. So I think I have to change the version of plugin that the repository has.
the soure code is here( https://github.com/verystrongjoe/hornetq/tree/master/examples/jms/clustered-queue ).
I downloaded that to my local disk. and I imported to my eclipse.
but the result was an error like below.
Failure to find org.hornetq:hornetq-maven-plugin:pom:1.1.1-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public was cached in the local
repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced
If you go to the repository http://repository.jboss.org/nexus/content/groups/public , there are 1.1.0 or 1.0.0.
please let me explain about this.. thanks in adavance.
You can see the answer on Line 716 of the super-POM:
<plugin>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-maven-plugin</artifactId>
<version>1.1.1-SNAPSHOT</version>
</plugin>
It sounds like you might not be knowledgeable enough to work on the edge of the github source. Perhaps you should work with one of the recent release tags instead?
You are forking and trying to work with an in-development SNAPSHOT version of HornetQ. That normally requires more work than using released versions. Tip one: consider working only with released versions of HQ.
If not, be aware that:
HornetQ does not release *-SNAPSHOT versions of artifacts to Maven repositories. That is the reason you won't find them at that JBoss Maven repository. BTW, See here for comments with regards to figuring out dependencies of HornetQ examples https://github.com/hornetq/hornetq#recreating-the-examples
See here about the minimal instructions of using the SNAPSHOT version of the hornetq-maven-plugin https://github.com/hornetq/maven-hornetq-plugin/blob/master/README.md
Please notice that the content of each of those links is small. I could have copied their content here but I didn't. My point is: these projects have README files which address your issues, you should always check the README.

Where found difference between versions of maven war plugin?

I try, but didn't found any information about what difference between e.g. 2.0 and 2.2 maven war plugin. Does it possible to find?
Thanks.
You can view release notes here. Unfortunately, I didn't find any way to specify 2 versions.
The best thing is to look at the change log
http://jira.codehaus.org/browse/MWAR#selectedTab=com.atlassian.jira.plugin.system.project%3Achangelog-panel

Resources