Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] tycho-p2-extras-plugin and additionalArgs

I am trying to get a repository published using tycho-p2-extras-plugin. I know the the source gets defaulted to ${project.basedir}\target\source, but I need to specify my own value, which I tried doing in <additionalArgs/>:


                        <!-- Configuration for the PublishFeaturesAndBundlesMojoTest -->
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>publish-features-and-bundles</goal>
</goals>
</execution>
</executions>
<configuration>
<compress>false</compress>
<additionalArgs>-source ${project.basedir}\target\source\plugins\target-platform</additionalArgs>
</configuration>
</plugin>


However, when I run "mvn clean install", the resulting command line is:

[INFO] --- tycho-p2-extras-plugin:0.11.0:publish-features-and-bundles (default)
@ publishedRepository ---
[INFO] Command line:
        cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_25\jre\bin\java.exe" -jar
 C:\Users\Administrator\.m2\repository\org\sonatype\tycho\tycho-p2-runtime\0.11.
0\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -no
splash -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
 -artifactRepository file:/C:/iws/bedrock-p2-repo-builder/target/repository -met
adataRepository file:/C:/iws/bedrock-p2-repo-builder/target/repository -publishA
rtifacts -source C:\iws\bedrock-p2-repo-builder\target\source\plugins\target-pla
tform -source C:\iws\bedrock-p2-repo-builder\target\source"

Notice the two "-source" values at the end. This causes the plugins from "C:\iws\bedrock-p2-repo-builder\target\source\plugins\target-platform" to not be copied to the repository. If I run the same command manually with only one source - "-source C:\iws\bedrock-p2-repo-builder\target\source\plugins\target-platform" it works and my plugins get copied correctly. Is there a way to suppress the default "-source" value when specifying my own?

Thanks.

Back to the top