16 Eylül 2022 Cuma

jaxb2 plugin

Örnek
Şöyle yaparız
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>jaxb2-maven-plugin</artifactId>
  <version>1.6</version>
  <executions>
    <execution>
      <id>xjc</id>
      <goals>
        <goal>xjc</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <schemaDirectory>${project.basedir}/src/main/resources/</schemaDirectory>
    <outputDirectory>${project.basedir}/src/main/java</outputDirectory>
    <clearOutputDir>false</clearOutputDir>
  </configuration>
</plugin>
XSD dosyasını "src/main/resources" altına yerleştiririz. "mvn install" yaparız

8 Eylül 2022 Perşembe

Maven Helper IntelliJ Plugin

Giriş
Açıklaması şöyle. Plugin burada
Maven Helper, by Vojtch Krassa, is used for debugging and maintaining projects with many modules. Developers are often faced with conflicts and dependencies that are difficult to manage as the project size and the code repo increases. This plug-in provides easy options to navigate dependencies in code and eliminate conflicts.

Maven Helper consists of actions that can run and debug Maven goals, open a terminal to the current module path, and run and debug test files. It’s one of the most popular plug-ins in the tech industry and is very easy to use. For instance, with the click of a button you can predefine and run Maven goals.
pom.xml dosyası açılır ve plugin ile gelen "Dependency Analyzer" sekmesine gidilir. Conflicts seçeneği seçilir ve kırmızı renk ile gösterilen ve conflict (uyumsuz) jar'lara bakılır. Şeklen şöyle



Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...