Skip to content
Open

Bom #134

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 36 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,52 @@
A fork of the com.sun.codemodel 2.7-SNAPSHOT.
The classes in this project use a different package name `com.helger.jcodemodel` to avoid conflicts
with other `com.sun.codemodel` instances that might be floating around in the classpath.
That of course implies, that this artefact cannot directly be used with JAXB, since the configuration of
That of course implies, that this artifact cannot directly be used with JAXB, since the configuration of
this would be very tricky.

A site with the links to the [API docs](http://phax.github.io/jcodemodel/) etc. is available.

## Maven usage
## Import in Maven

### Straightforward import

Add the following to your pom.xml to use this artifact (where `x.y.z` denotes the version):

```xml
<dependency>
<groupId>com.helger</groupId>
<artifactId>jcodemodel</artifactId>
<version>x.y.z</version>
</dependency>
<project>
<dependencies>
<dependency>
<groupId>com.helger</groupId>
<artifactId>jcodemodel</artifactId>
<version>x.y.z</version>
</dependency>
```

### Bill Of Materials import

In case you want to use several of our projects, you may import the bom first, then the required modules :

```xml
<project>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.helger.jcodemodel</groupId>
<artifactId>bom</artifactId>
<version>x.y.z</version>
<type>pom</type>
<scope>import</scope>
</dependency>
...
<dependencies>
<dependency>
<groupId>com.helger</groupId>
<artifactId>jcodemodel</artifactId>
</dependency>
```

In that case, the bom import defines the version of the other projects.

# News and noteworthy

v4.2.0 - work in progress
Expand Down
49 changes: 49 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.helger.jcodemodel</groupId>
<artifactId>jcodemodel-parent-pom</artifactId>
<version>4.2.0-SNAPSHOT</version>
</parent>
<artifactId>bom</artifactId>
<name>POM JCM BOM</name>
<packaging>pom</packaging>

<dependencyManagement>
<dependencies>
<!-- sub modules-->
<dependency>
<groupId>com.helger</groupId>
<artifactId>jcodemodel</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.helger.jcodemodel.plugin.generators</groupId>
<artifactId>csv</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.helger.jcodemodel.plugin.generators</groupId>
<artifactId>json</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.helger.jcodemodel.plugin.generators</groupId>
<artifactId>yaml</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.helger.jcodemodel</groupId>
<artifactId>jcodemodel-maven-plugin</artifactId>
<version>${project.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
3 changes: 2 additions & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.helger.jcodemodel</groupId>
<artifactId>jcodemodel-parent-pom</artifactId>
<artifactId>bom</artifactId>
<version>4.2.0-SNAPSHOT</version>
<relativePath>../bom</relativePath>
</parent>
<artifactId>examples</artifactId>
<packaging>pom</packaging>
Expand Down
3 changes: 2 additions & 1 deletion jcodemodel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.helger.jcodemodel</groupId>
<artifactId>jcodemodel-parent-pom</artifactId>
<artifactId>bom</artifactId>
<version>4.2.0-SNAPSHOT</version>
<relativePath>../bom</relativePath>
</parent>
<groupId>com.helger</groupId>
<artifactId>jcodemodel</artifactId>
Expand Down
Loading