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

Commit cc84e2b

Browse files
committed
Generate sources and javadoc on package build
1 parent 27a6bd2 commit cc84e2b

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

pom.xml

+28-2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@
8989
</dependencies>
9090

9191
<build>
92+
<sourceDirectory>src/main/scala</sourceDirectory>
93+
<testSourceDirectory>src/test/scala</testSourceDirectory>
94+
<resources>
95+
<resource>
96+
<directory>${basedir}/src/main/resources</directory>
97+
</resource>
98+
</resources>
99+
<testResources>
100+
<testResource>
101+
<directory>${basedir}/src/test/resources</directory>
102+
</testResource>
103+
</testResources>
92104
<plugins>
93105
<plugin>
94106
<artifactId>maven-enforcer-plugin</artifactId>
@@ -148,16 +160,30 @@
148160
</configuration>
149161
</plugin>
150162

163+
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
165+
<artifactId>maven-javadoc-plugin</artifactId>
166+
<executions>
167+
<execution>
168+
<id>attach-javadoc</id>
169+
<goals>
170+
<goal>jar</goal>
171+
</goals>
172+
<phase>package</phase>
173+
</execution>
174+
</executions>
175+
</plugin>
176+
151177
<plugin>
152178
<groupId>org.apache.maven.plugins</groupId>
153179
<artifactId>maven-source-plugin</artifactId>
154-
<version>2.2.1</version>
155180
<executions>
156181
<execution>
157182
<id>attach-sources</id>
158183
<goals>
159-
<goal>jar-no-fork</goal>
184+
<goal>jar</goal>
160185
</goals>
186+
<phase>package</phase>
161187
</execution>
162188
</executions>
163189
</plugin>

0 commit comments

Comments
 (0)