io.janusproject.plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.janusproject</groupId> <artifactId>io.janusproject.plugin</artifactId> <version>0.11.0</version> </dependency>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.janusproject.sre</groupId> <artifactId>io.janusproject</artifactId> <version>0.11.0</version> </parent> <groupId>io.janusproject</groupId> <artifactId>io.janusproject.plugin</artifactId> <packaging>eclipse-plugin</packaging> <name>Janus Project</name> <url>${janusUrl}</url> <inceptionYear>2008</inceptionYear> <build> <plugins> <!-- CAUTION: The following plugin is copying the service definitions from META-INF/services into the target/classes/META-INF/services because the "eclipse-plugin" reactor does not copy these files in this particular location. But, it is mandatory in order to enable debugging into the Eclipse DSL tool. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-bootique-module-providers</id> <phase>generate-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.outputDirectory}/META-INF/services</outputDirectory> <resources> <resource> <directory>${project.basedir}/META-INF/services</directory> <filtering>false</filtering> </resource> </resources> <overwrite>true</overwrite> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId> <artifactId>replacer</artifactId> <executions> <execution> <id>prepare-constants-class</id> <phase>process-sources</phase> <goals> <goal>replace</goal> </goals> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <file>${project.basedir}/src/main/sarl/io/sarl/sre/SreVersion.sarl</file> <regexFlags> <regexFlag>MULTILINE</regexFlag> </regexFlags> <replacements> <replacement> <token>(RELEASE_VERSION *= *")([^"]+)(";?)</token> <value>$1${janus.version}$3</value> </replacement> <replacement> <token>(IS_STABLE *= *)([truefals]+)(;?)</token> <value>$1${sarl.is_stable_version}$3</value> </replacement> </replacements> </configuration> </execution> <execution> <id>prepare-eclipse-buildproperties</id> <phase>process-resources</phase> <goals> <goal>replace</goal> </goals> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <file>${project.basedir}/build.properties</file> <regexFlags> <regexFlag>MULTILINE</regexFlag> </regexFlags> <replacements> <replacement> <token>^(jre\.compilation\.profile *= *)(.*)$</token> <value>$1${sarl-dsl.min.jre.environment}</value> </replacement> </replacements> </configuration> </execution> <execution> <id>prepare-eclipse-manifestmf</id> <phase>process-resources</phase> <goals> <goal>replace</goal> </goals> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <file>${project.basedir}/META-INF/MANIFEST.MF</file> <regexFlags> <regexFlag>MULTILINE</regexFlag> </regexFlags> <replacements> <replacement> <token>^(Bundle-RequiredExecutionEnvironment: *)(.*)$</token> <value>$1${user.min.jre.environment}</value> </replacement> </replacements> </configuration> </execution> </executions> </plugin> <plugin> <groupId>io.sarl.maven</groupId> <artifactId>sarl-maven-plugin</artifactId> <!-- Maven extension mechanism seems not working because the plugin is defined in the same project. The different goals must be explicitly provided. --> <executions> <execution> <id>sarl-compiler-init</id> <phase>initialize</phase> <goals> <goal>initialize</goal> </goals> </execution> <execution> <id>sarl-compiler-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>sarl-compiler-clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> <configuration> <tycho>true</tycho> <source>${sarl-dsl.min.jdk.version}</source> <target>${sarl-dsl.min.jdk.version}</target> <encoding>${project.build.sourceEncoding}</encoding> <runJavaCompiler>true</runJavaCompiler> <generateInlines>true</generateInlines> <generateStorageFiles>true</generateStorageFiles> <generateTraceFiles>true</generateTraceFiles> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <sourceDirectories> <sourceDirectory>src/main/sarl</sourceDirectory> </sourceDirectories> </configuration> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-source-plugin</artifactId> </plugin> </plugins> </build> <!-- ======================================= --> <!-- ==== Release Management === --> <!-- ======================================= --> <profiles> <profile> <id>maven-release-of-janus-sre</id> <activation> <property> <name>publicSarlApiModuleSet</name> <value>true</value> </property> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.arakhne.afc.maven</groupId> <artifactId>tag-replacer</artifactId> <configuration> <sources> <source>${project.basedir}/src/main/sarl</source> <source>${project.basedir}/src/main/generated-sources/sarl</source> </sources> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <sourcepath>${project.build.directory}/generated-sources/java</sourcepath> </configuration> </plugin> </plugins> </pluginManagement> </build> <dependencies> <!-- The following dependencies have been added for enabling Javadoc to find classes that are indirectly used. --> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>maven-shared-utils</artifactId> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> </dependency> <dependency> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> </dependency> </dependencies> </profile> </profiles> </project>