Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mavenized: please read MAVENIZATION-README #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ target/
bin/
frej.jar

/.project
/.settings/
/.classpath
47 changes: 47 additions & 0 deletions MAVENIZATION-README
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
The mavenization process has kept the overal contents.

It has changed directory structure in accordance to the maven standards.

Besides, some ant task have been replaced by maven goals.
For instance:

* build: instead of "ant"

mvn install

o better

mvn clean install

it will create target/frej-1.158.jar


* clean:

mvn clean


* javadoc: instead of "ant doc" you must use:

mvn javadoc:javadoc

it creates api javadoc under target/apidocs

mvn javadoc:jar

it creates a jar archive, e.g. target/frej-1.1.58-javadoc.jar, containing the html pages


* all: instead of "ant all"

mvn install

it will create both target/frej-1.1.58-javadoc.jar and target/frej-1.1.58.jar


* demo:

mvn install -Pdemo

it behaves like the previous 'mvn jar' but this time the target/frej-1.1.58.jar
will contain the applet code and the test.html too
79 changes: 0 additions & 79 deletions build.xml

This file was deleted.

123 changes: 123 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<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>
<groupId>net.java.frej</groupId>
<artifactId>frej</artifactId>
<version>1.1.58</version>

<name>FREJ (Free Regular Expressions for Java)</name>
<description>Free Regular Expressions for Java</description>

<organization>
<name>http://frej.sf.net</name>
<url>http://frej.sf.net</url>
</organization>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<excludes>
<exclude>FrejDemo.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<mainClass>test.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<built-by>Rodion Gork</built-by>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<show>public</show>
<nohelp>false</nohelp>
<reportOutputDirectory>${project.build.directory}/</reportOutputDirectory>
<windowtitle>FREJ - Fuzzy Regular Expressions for Java</windowtitle>
<noqualifier>java.lang</noqualifier>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>test.html</exclude>
</excludes>
</resource>
</resources>
</build>
</profile>

<profile>
<id>demo</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<finalName>FrejDemo</finalName>
<archive>
<manifest>
<mainClass>test.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<built-by>Rodion Gork</built-by>
<implementation-title>FREJ Demo Applet</implementation-title>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading