Skip to content

Commit

Permalink
Add plain Maven build
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Oct 20, 2024
1 parent 90b2bda commit bc1b657
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
contents: read

jobs:
build:
tycho-build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -24,5 +24,7 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven and Tycho
- name: Build with Tycho
run: mvn --batch-mode -U -T 1C clean install
- name: Build with plain Maven
run: mvn --batch-mode -f pom-plain.xml clean install
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ replay_pid*

# Maven output
target/
target-plain/
33 changes: 33 additions & 0 deletions bundles/org.eclipse.epsilon.emc.rdf/pom-plain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.epsilon</groupId>
<artifactId>org.eclipse.epsilon.emc.rdf</artifactId>
<name>Eclipse Epsilon EMC for RDF models</name>

<parent>
<groupId>org.eclipse.epsilon</groupId>
<artifactId>emc-rdf-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom-plain.xml</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>org.eclipse.epsilon</groupId>
<artifactId>org.eclipse.epsilon.eol.engine</artifactId>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>

</project>
119 changes: 119 additions & 0 deletions pom-plain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.epsilon</groupId>
<artifactId>emc-rdf-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>EMC RDF Parent</name>

<scm>
<connection>scm:git:https://github.com/epsilonlabs/emc-rdf.git</connection>
<developerConnection>scm:git:https://github.com/epsilonlabs/emc-rdf.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/epsilonlabs/emc-rdf</url>
</scm>

<licenses>
<license>
<name>Eclipse Public License 2.0</name>
<url>https://www.eclipse.org/legal/epl-2.0/</url>
<distribution>repo</distribution>
</license>
</licenses>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<swt.version>3.114.0</swt.version>
<epsilon.version>2.5.0</epsilon.version>
<jena.version>5.1.0</jena.version>
</properties>

<modules>
<module>bundles/org.eclipse.epsilon.emc.rdf/pom-plain.xml</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.epsilon</groupId>
<artifactId>org.eclipse.epsilon.eol.engine</artifactId>
<version>${epsilon.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>${jena.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.1-jre</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>failureaccess</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.errorprone</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.j2objc</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.mojo</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<sourceDirectory>src</sourceDirectory>
<directory>target-plain</directory>
<outputDirectory>target-plain/classes</outputDirectory>
<testOutputDirectory>target-plain/test-classes</testOutputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>

0 comments on commit bc1b657

Please sign in to comment.