Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ISPN-2252 mvn deploy -Pdistribution doesn't uploads the sources

* Revert previous POM fix as it was no longer generating runtime-classpath.txt for modules and this breaks the demos from the distribution.
* Modify utils.py script to include 'extras' profile together with 'distribution'. This should solve the issue with the missing sources.
  • Loading branch information...
commit cebf80b66164995abf435b5273a2c57da03f6171 1 parent 906cb0d
@anistor anistor authored Mircea Markus committed
Showing with 34 additions and 20 deletions.
  1. +1 −1  bin/utils.py
  2. +33 −0 parent/pom.xml
  3. +0 −19 pom.xml
View
2  bin/utils.py
@@ -370,7 +370,7 @@ def upload(self, fr, to, type):
def maven_build_distribution(version):
"""Builds the distribution in the current working dir"""
- mvn_commands = [["clean"], ["install", "-Pjmxdoc"],["install", "-Pgenerate-schema-doc"], ["deploy", "-Pdistribution"]]
+ mvn_commands = [["clean"], ["install", "-Pjmxdoc"],["install", "-Pgenerate-schema-doc"], ["deploy", "-Pdistribution,extras"]]
for c in mvn_commands:
c.append("-Dmaven.test.skip.exec=true")
View
33 parent/pom.xml
@@ -1356,6 +1356,39 @@
</reporting>
<profiles>
<profile>
+ <id>distribution</id>
+ <properties>
+ <skipTests>true</skipTests>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- generate target/runtime-classpath.txt, to be included in bundle -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-classpath</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <includeScope>runtime</includeScope>
+ <excludeScope>test</excludeScope>
+ <!-- all jar paths are relative to bin dir inside the distribution bundle -->
+ <prefix>$ISPN_HOME/lib</prefix>
+ <outputFile>${project.build.directory}/runtime-classpath.txt</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
<id>extras</id>
<activation>
<activeByDefault>true</activeByDefault>
View
19 pom.xml
@@ -162,25 +162,6 @@ pageTracker._trackPageview();
<attach>false</attach>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>create-classpath</id>
- <phase>package</phase>
- <goals>
- <goal>build-classpath</goal>
- </goals>
- <configuration>
- <includeScope>runtime</includeScope>
- <excludeScope>test</excludeScope>
- <prefix>$ISPN_HOME/lib</prefix>
- <outputFile>${project.build.directory}/runtime-classpath.txt</outputFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
Please sign in to comment.
Something went wrong with that request. Please try again.