Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a7a4ada

Browse files
committed
Prepare POM for maven deployment
* changes the artifact names to com.formulasearchengine See also https://issues.sonatype.org/browse/OSSRH-12228 Change-Id: Ia50a3f3c08db6b357f2ece32c78b7b648d47b286
1 parent 747292a commit a7a4ada

5 files changed

Lines changed: 96 additions & 7 deletions

File tree

pom.xml

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,49 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>de.tuberlin.dima.schubotz</groupId>
5+
<groupId>com.formulasearchengine</groupId>
66
<artifactId>mathmlquerygenerator</artifactId>
77
<version>0.0.1-SNAPSHOT</version>
88

99
<name>MathML Query Generator</name>
10-
10+
<description>Converts MathWebSearch queries to XQuery expressions.</description>
11+
<url>http://www.formulasearchengine.com/MathMLQueryGenerator</url>
12+
<licenses>
13+
<license>
14+
<name>The Apache License, Version 2.0</name>
15+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
16+
</license>
17+
</licenses>
18+
<developers>
19+
<developer>
20+
<name>Moritz Schubotz</name>
21+
<email>wiki@physikerwelt.de</email>
22+
<organization>TU Berlin</organization>
23+
<organizationUrl>http://www.tu-berlin.de</organizationUrl>
24+
</developer>
25+
</developers>
26+
<scm>
27+
<connection>scm:git:git@github.com:physikerwelt/MathMLQueryGenerator.git</connection>
28+
<developerConnection>scm:git:git@github.com:physikerwelt/MathMLQueryGenerator.git</developerConnection>
29+
<url>git@github.com:physikerwelt/MathMLQueryGenerator.git</url>
30+
</scm>
1131
<properties>
1232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1333
<maven.compiler.source>1.7</maven.compiler.source>
1434
<maven.compiler.target>1.7</maven.compiler.target>
1535
</properties>
1636

37+
<distributionManagement>
38+
<snapshotRepository>
39+
<id>ossrh</id>
40+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
41+
</snapshotRepository>
42+
<repository>
43+
<id>ossrh</id>
44+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
45+
</repository>
46+
</distributionManagement>
47+
1748
<dependencies>
1849
<dependency>
1950
<groupId>junit</groupId>
@@ -27,4 +58,60 @@
2758
<version>17.0</version>
2859
</dependency>
2960
</dependencies>
61+
62+
<build>
63+
<plugins>
64+
<plugin>
65+
<groupId>org.sonatype.plugins</groupId>
66+
<artifactId>nexus-staging-maven-plugin</artifactId>
67+
<version>1.6.3</version>
68+
<extensions>true</extensions>
69+
<configuration>
70+
<serverId>ossrh</serverId>
71+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
72+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
73+
</configuration>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-source-plugin</artifactId>
78+
<version>2.2.1</version>
79+
<executions>
80+
<execution>
81+
<id>attach-sources</id>
82+
<goals>
83+
<goal>jar-no-fork</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
</plugin>
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-javadoc-plugin</artifactId>
91+
<version>2.9.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-javadocs</id>
95+
<goals>
96+
<goal>jar</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-gpg-plugin</artifactId>
104+
<version>1.5</version>
105+
<executions>
106+
<execution>
107+
<id>sign-artifacts</id>
108+
<phase>verify</phase>
109+
<goals>
110+
<goal>sign</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
115+
</plugins>
116+
</build>
30117
</project>

src/main/java/de/tuberlin/dima/schubotz/mathmlquerygenerator/XQueryGenerator.java renamed to src/main/java/com/formulasearchengine/mathmlquerygenerator/XQueryGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
package de.tuberlin.dima.schubotz.mathmlquerygenerator;
1+
package com.formulasearchengine.mathmlquerygenerator;
22

33

4+
import com.formulasearchengine.xmlhelper.NdLst;
45
import com.google.common.collect.Lists;
56
import org.w3c.dom.Document;
67
import org.w3c.dom.Node;

src/main/java/de/tuberlin/dima/schubotz/mathmlquerygenerator/NdLst.java renamed to src/main/java/com/formulasearchengine/xmlhelper/NdLst.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package de.tuberlin.dima.schubotz.mathmlquerygenerator;
1+
package com.formulasearchengine.xmlhelper;
22

33
import org.w3c.dom.Node;
44
import org.w3c.dom.NodeList;
@@ -10,7 +10,7 @@
1010
/**
1111
* from http://stackoverflow.com/questions/229310/how-to-ignore-whitespace-while-reading-a-file-to-produce-an-xml-dom
1212
*/
13-
class NdLst implements NodeList, Iterable<Node> {
13+
public class NdLst implements NodeList, Iterable<Node> {
1414

1515
private final List<Node> nodes;
1616

src/test/java/de/tuberlin/dima/schubotz/mathmlquerygenerator/XMLHelper.java renamed to src/test/java/com/formulasearchengine/mathmlquerygenerator/XMLHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package de.tuberlin.dima.schubotz.mathmlquerygenerator;
1+
package com.formulasearchengine.mathmlquerygenerator;
22

33
import org.w3c.dom.Document;
44
import org.xml.sax.InputSource;

src/test/java/de/tuberlin/dima/schubotz/mathmlquerygenerator/XQueryGeneratorTest.java renamed to src/test/java/com/formulasearchengine/mathmlquerygenerator/XQueryGeneratorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
package de.tuberlin.dima.schubotz.mathmlquerygenerator;
1+
package com.formulasearchengine.mathmlquerygenerator;
22

3+
import com.formulasearchengine.mathmlquerygenerator.XQueryGenerator;
34
import junit.framework.TestCase;
45
import org.w3c.dom.Document;
56

0 commit comments

Comments
 (0)