Skip to content

Commit 375abb2

Browse files
committed
Do not deploy private modules while avoinding nexus-staging-maven-plugin problems.
1 parent 74b077c commit 375abb2

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

src/pom.xml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,42 @@
4747
<directory>${build.dir}/${project.artifactId}</directory>
4848
</build>
4949
</profile>
50+
51+
<profile>
52+
<id>all-modules</id>
53+
<activation>
54+
<property>
55+
<name>!deploy</name>
56+
</property>
57+
</activation>
58+
<modules>
59+
<module>fbjava-impl</module>
60+
<module>fbjava-tests</module>
61+
</modules>
62+
</profile>
63+
64+
<profile>
65+
<!-- Use "mvn deploy -Ddeploy" to deploy. -->
66+
<id>deploy</id>
67+
<activation>
68+
<property>
69+
<name>deploy</name>
70+
</property>
71+
</activation>
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-gpg-plugin</artifactId>
77+
</plugin>
78+
79+
<plugin>
80+
<groupId>org.sonatype.plugins</groupId>
81+
<artifactId>nexus-staging-maven-plugin</artifactId>
82+
</plugin>
83+
</plugins>
84+
</build>
85+
</profile>
5086
</profiles>
5187

5288
<properties>
@@ -83,8 +119,6 @@
83119

84120
<modules>
85121
<module>fbjava</module>
86-
<module>fbjava-impl</module>
87-
<module>fbjava-tests</module>
88122
</modules>
89123

90124
<build>
@@ -98,16 +132,6 @@
98132
<target>${java.version}</target>
99133
</configuration>
100134
</plugin>
101-
102-
<plugin>
103-
<groupId>org.apache.maven.plugins</groupId>
104-
<artifactId>maven-gpg-plugin</artifactId>
105-
</plugin>
106-
107-
<plugin>
108-
<groupId>org.sonatype.plugins</groupId>
109-
<artifactId>nexus-staging-maven-plugin</artifactId>
110-
</plugin>
111135
</plugins>
112136

113137
<pluginManagement>

0 commit comments

Comments
 (0)