Skip to content

Commit 799a27f

Browse files
committed
Moved profile + install mdnsjava before anything else
1 parent 29f6803 commit 799a27f

3 files changed

Lines changed: 77 additions & 76 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ before_install:
55
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
66

77
install:
8-
mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
8+
- mvn -f mdnsjava install -B -V
9+
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
910

1011
script:
11-
mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
12+
mvn clean deploy --settings .maven.xml -B -U -Prelease
1213

1314
before_deploy:
1415
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['

pom.xml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,78 @@
8080
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
8181
</repository>
8282
</distributionManagement>
83+
84+
<profiles>
85+
<profile>
86+
<id>release</id>
87+
<activation>
88+
<property>
89+
<name>release</name>
90+
</property>
91+
</activation>
92+
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-source-plugin</artifactId>
98+
<version>3.0.1</version>
99+
<executions>
100+
<execution>
101+
<id>attach-sources</id>
102+
<goals>
103+
<goal>jar-no-fork</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-javadoc-plugin</artifactId>
111+
<version>3.0.1</version>
112+
<executions>
113+
<execution>
114+
<id>attach-javadocs</id>
115+
<goals>
116+
<goal>jar</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
<configuration>
121+
<failOnError>false</failOnError>
122+
</configuration>
123+
</plugin>
124+
125+
<!-- To release to Maven central -->
126+
<plugin>
127+
<groupId>org.sonatype.plugins</groupId>
128+
<artifactId>nexus-staging-maven-plugin</artifactId>
129+
<version>1.6.8</version>
130+
<extensions>true</extensions>
131+
<configuration>
132+
<serverid>ossrh</serverid>
133+
<nexusurl>https://oss.sonatype.org/</nexusurl>
134+
<autoreleaseafterclose>true</autoreleaseafterclose>
135+
</configuration>
136+
</plugin>
137+
138+
<!-- To sign the artifacts -->
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-gpg-plugin</artifactId>
142+
<version>1.6</version>
143+
<executions>
144+
<execution>
145+
<id>sign-artifacts</id>
146+
<phase>verify</phase>
147+
<goals>
148+
<goal>sign</goal>
149+
</goals>
150+
</execution>
151+
</executions>
152+
</plugin>
153+
</plugins>
154+
</build>
155+
</profile>
156+
</profiles>
83157
</project>

profiles.xml

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)