Skip to content

Commit d44f0c0

Browse files
Merge pull request #15 from RUB-NDS/maven-deploy
Added configuration to pom.xml to deploy to deploy to maven central
2 parents d0758dd + f681ad0 commit d44f0c0

File tree

85 files changed

+134
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+134
-327
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jdk:
1010
#branches:
1111
# only:
1212
# - master
13+
install: mvn install
1314

1415
notifications:
1516
email:

pom.xml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<version>2.0</version>
77
<packaging>jar</packaging>
88

9-
<name>${project.groupId}:${project.artifactId}</name>
9+
<name>ModifiableVariable</name>
1010
<description>A Modifiable Variable concept allows for easy runtime modifications of basic data types like integers, booleans, or byte arrays</description>
1111
<url>https://github.com/RUB-NDS/ModifiableVariable</url>
1212

@@ -17,6 +17,17 @@
1717
<distribution>repo</distribution>
1818
</license>
1919
</licenses>
20+
21+
<distributionManagement>
22+
<snapshotRepository>
23+
<id>ossrh</id>
24+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
25+
</snapshotRepository>
26+
<repository>
27+
<id>ossrh</id>
28+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
29+
</repository>
30+
</distributionManagement>
2031

2132
<developers>
2233
<developer>
@@ -44,6 +55,7 @@
4455
</developer>
4556
</developers>
4657

58+
<!-- Information to version control system -->
4759
<scm>
4860
<connection>scm:git:git://github.com/RUB-NDS/ModifiableVariable.git</connection>
4961
<developerConnection>scm:git:ssh://github.com/RUB-NDS/ModifiableVariable.git</developerConnection>
@@ -87,12 +99,71 @@
8799
</execution>
88100
</executions>
89101
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-source-plugin</artifactId>
105+
<version>3.0.1</version>
106+
<executions>
107+
<execution>
108+
<id>attach-sources</id>
109+
<goals>
110+
<goal>jar-no-fork</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
115+
<plugin>
116+
<groupId>org.apache.maven.plugins</groupId>
117+
<artifactId>maven-javadoc-plugin</artifactId>
118+
<version>2.10.4</version>
119+
<executions>
120+
<execution>
121+
<id>attach-javadocs</id>
122+
<goals>
123+
<goal>jar</goal>
124+
</goals>
125+
</execution>
126+
</executions>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-gpg-plugin</artifactId>
131+
<version>1.6</version>
132+
<executions>
133+
<execution>
134+
<id>sign-artifacts</id>
135+
<phase>verify</phase>
136+
<goals>
137+
<goal>sign</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
<configuration>
142+
<skip>${skip.signature}</skip>
143+
</configuration>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.sonatype.plugins</groupId>
147+
<artifactId>nexus-staging-maven-plugin</artifactId>
148+
<version>1.6.8</version>
149+
<extensions>true</extensions>
150+
<configuration>
151+
<serverId>ossrh</serverId>
152+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
153+
<!-- deploy with the following command: mvn nexus-staging:release -->
154+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
155+
</configuration>
156+
</plugin>
90157
</plugins>
91158
</build>
159+
92160
<properties>
93161
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
94162
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
95163
<maven.compiler.source>1.7</maven.compiler.source>
96164
<maven.compiler.target>1.7</maven.compiler.target>
165+
<!-- We redefine the signature generation process, whic is enabled by default,
166+
but cannot be performed by typical users. Enable it using -Dskip.signature=false -->
167+
<skip.signature>true</skip.signature>
97168
</properties>
98169
</project>

src/main/java/de/rub/nds/modifiablevariable/FileConfigurationException.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
*/
99
package de.rub.nds.modifiablevariable;
1010

11-
/**
12-
*
13-
* @author Juraj Somorovsky - juraj.somorovsky@rub.de
14-
*/
1511
public class FileConfigurationException extends RuntimeException {
1612

1713
public FileConfigurationException() {

src/main/java/de/rub/nds/modifiablevariable/HoldsModifiableVariable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* Annotation interface for modifiable variables holders. A modifiable variable
1818
* holder is for example a TLS protocol message.
1919
*
20-
* @author Juraj Somorovsky - juraj.somorovsky@rub.de
2120
*/
2221
@Target(ElementType.FIELD)
2322
@Retention(RetentionPolicy.RUNTIME)

src/main/java/de/rub/nds/modifiablevariable/ModifiableVariable.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* subclasses, see:
2222
* http://blog.bdoughan.com/2011/06/ignoring-inheritance-with-xmltransient.html
2323
*
24-
* @author Juraj Somorovsky <juraj.somorovsky@rub.de>
25-
* @param <E>
2624
*/
2725
@XmlRootElement
2826
@XmlTransient

src/main/java/de/rub/nds/modifiablevariable/ModifiableVariableFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@
1212
import de.rub.nds.modifiablevariable.bool.ModifiableBoolean;
1313
import de.rub.nds.modifiablevariable.bytearray.ModifiableByteArray;
1414
import de.rub.nds.modifiablevariable.integer.ModifiableInteger;
15-
import de.rub.nds.modifiablevariable.length.ModifiableLengthField;
1615
import de.rub.nds.modifiablevariable.mlong.ModifiableLong;
1716
import de.rub.nds.modifiablevariable.singlebyte.ModifiableByte;
1817
import de.rub.nds.modifiablevariable.string.ModifiableString;
1918
import java.math.BigInteger;
2019

21-
/**
22-
* @author Juraj Somorovsky <juraj.somorovsky@rub.de>
23-
*/
2420
public class ModifiableVariableFactory {
2521

2622
public static ModifiableBigInteger createBigIntegerModifiableVariable() {

src/main/java/de/rub/nds/modifiablevariable/ModifiableVariableProperty.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/**
1717
* Annotation interface for modifiable variables.
1818
*
19-
* @author Juraj Somorovsky - juraj.somorovsky@rub.de
2019
*/
2120
@Target(ElementType.FIELD)
2221
@Retention(RetentionPolicy.RUNTIME)

src/main/java/de/rub/nds/modifiablevariable/ModificationFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* accesses or specific data. For example, only the first data access returns a
1717
* modified value. This can be achieved using a ModificationFilter object.
1818
*
19-
* @author Juraj Somorovsky <juraj.somorovsky@rub.de>
2019
*/
2120
@XmlSeeAlso({ AccessModificationFilter.class })
2221
public abstract class ModificationFilter {

src/main/java/de/rub/nds/modifiablevariable/VariableModification.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@
4343
import org.apache.logging.log4j.LogManager;
4444
import org.apache.logging.log4j.Logger;
4545

46-
/**
47-
* @author Juraj Somorovsky - juraj.somorovsky@rub.de
48-
* @author Christian Mainka - christian.mainka@rub.de
49-
* @param <E>
50-
*/
5146
@XmlRootElement
5247
@XmlTransient
5348
@XmlSeeAlso({ AccessModificationFilter.class, BigIntegerAddModification.class, BigIntegerInteractiveModification.class,
@@ -117,6 +112,7 @@ public E modify(E input) {
117112
* thus we use isDebugEnabled() function
118113
*
119114
* @param value
115+
* variable modification that is going to be debugged
120116
*/
121117
protected void debug(E value) {
122118
if (LOGGER.isDebugEnabled()) {

src/main/java/de/rub/nds/modifiablevariable/biginteger/BigIntegerAddModification.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
import javax.xml.bind.annotation.XmlRootElement;
1414
import javax.xml.bind.annotation.XmlType;
1515

16-
/**
17-
* @author Juraj Somorovsky - juraj.somorovsky@rub.de
18-
*/
1916
@XmlRootElement
2017
@XmlType(propOrder = { "summand", "modificationFilter", "postModification" })
2118
public class BigIntegerAddModification extends VariableModification<BigInteger> {

0 commit comments

Comments
 (0)