AEM project release build - maven

I am interested to see how people are doing release builds for an AEM project:
using the maven release plugin that is in pom.xml OOTB for this archtype
custom process using other maven plugins (build-helper plugin, version plugin)
Pros/cons for each option?
what is the release numbering mechanism that you use?
how is the patching done?
do you use a release branching mechanism?
Thanks

The OOTB maven build configuration from the archetype is good enough and extensively used across all the AEM projects I have been involved in. The versioning can be handled by modifying the version in the pom.xml

Related

Maven - Missing archetype in STS (Eclipse) for Oracle Coherence

I am trying to follow this tutorial to develop an Oracle Coherence project in Maven:
https://docs.oracle.com/middleware/1212/core/MAVEN/coherence_project.htm#MAVEN8911
I have installed in my Spring Tool Suit (Eclipse) the following plugin:
Oracle Coherence Tools
Tools for developing applications for Oracle Coherence. These features are also part of Oracle Enterprise Pack for Eclipse (OEPE)
But when I try to create a Maven project, in the list Archetypes I can't find
any with groupID = com.oracle.coherence
Anyone could tell me what am I missing?
due to oracle coherence is not in the public maven repository. you should first install the coherence to your local maven repository or use the oracle maven repository instead
Oracle Coherence Tools are not such important. You can use standard Eclipse or Netbeans, IntelliJ... The most important (as xukai mentioned) is to insatll coherence and add dependency to coherence.jar in your pom.

How to integrate Maven in JDeveloper 11.1.1.7.0

I am trying to use Maven in JDeveloper 11.1.1.7.0 version. I installed the maven plugin through check for updates. But I see the maven extension as "Developer Preview" version while installing. After installing the plugin, I can see maven option available in JDeveloper.
I tried to create a fusion web application and created pom.xml for the project. But it is creating an empty pom with only Model dependency and the compiler plugin. Default ADF libraries are not being added to the pom.xml.
I installed the JDeveloper 11.1.2.0.0 version and did the same. Here all the default ADF libraries that will come with fusion web application are created automatically in pom.xml.
Is Maven is supported completely in JDeveloper 11.1.1.7.0 version ? Or do we have any other way to add the ADF Libraries in pom.xml. ?
I am struggling with this from one week. Can you please suggest me on this.
Regards,
Joseph
You are using an 11g R1 release while JDev 11.1.2.0.0 is 11g R2. And then this comes into play:
With JDeveloper 11gR2 you can use Maven 2 as your build engine, before
11gR2 you could download a plugin which did not work great because all
the required Oracle libraries which were not available in a public
repository. So you had no choice to add them manually to a Maven
Repository before you can use Maven.
Source: http://biemond.blogspot.be/2011/06/building-with-maven-in-jdeveloper-11gr2.html
Side note: You won't be able to compile your application using maven on a server without JDeveloper installed on it because Oracle doesn't provide a maven repository containing the ADF libraries (an option is to add the ADF libs to your own repo).

SBT vs Maven for a new Scala/Spark project?

Am new to Scala/SBT but have experience in Java/Maven.
For a new Scala/Spark project, what should be the choice: SBT or Maven?
PS- I intend to use Eclipse or IntellijIdea as IDE.
Thanks
ATT
I have also been looking into this question. Here are some things I have found.
According to the Apache Spark documentation:
Maven is the official build tool recommended for packaging Spark, and is the build of reference. But SBT is supported for day-to-day development since it can provide much faster iterative compilation. More advanced developers may wish to use SBT. http://spark.apache.org/docs/latest/building-spark.html#building-with-sbt
Three reasons I have heard for SBT:
It was built for Scala
It has incremental compilation
.sbt files tend to be more compact
In response though
Maven works just as well
If you are using the JetBrains IntelliJ IDE, which has a free edition, it has its own incremental compilation.
I think I will decide to go with Maven as it integrates better with my build server (continuous deployment).

Any framework specific plugin available in SonarQube?

Similar to language plugins, is there any plugin available for frameworks(Struts, Spring, Hibernate) in SonarQube?
Thanks,
Laxmi
No, No Framework specific plugin is available in SonarQube.
SonarQube only have plugins for Language and plugins for generating various reports.

Best Repository Management for Maven

I am working on Automated Build using maven and Jenkins. I am looking for best open source Repository Management for Maven. So that I can have an integaration between Maven and jenkins via respository manager.
You have at least four choices:
Nexus
Artifactory
Apache Archiva
Reposilite
Each has pros and cons. I'd go with Nexus since it is backed by Sonatype who are also involved in Maven development. I liked the Artifactory UI though.
Both Nexus and Artifactory have supported professional editions as well.
These are linked from the maven site as well.

Resources