Hi all, when executing the release plugin 2.0-beta-7, will the profiles i have in my parent pom for that pom executed also?
______________________________
After I execute
'mvn release:prepare -Pbuild-rel -Dusername=xxxx -Dpassword=xxxx
-DignoreSnapshots=true'
and
'mvn release:perform -Dgoals="deploy" -Pbuild-rel'
I get the following error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.3
check that the following section of the pom.xml is present and correct:
<distributionManagement>
<!-- use the following if you're not using a snapshot version. -->
<repository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</repository>
<!-- use the following if you ARE using a snapshot version. -->
<snapshotRepository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</snapshotRepository>
</distributionManagement>
Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated
Now what concerns me is the following output during the prepare and the
perform goal:
[INFO] Executing: mvn clean verify --no-plugin-updates -P
build-dev,build-dev
[INFO] Executing: mvn deploy --no-plugin-updates -P build-dev,build-dev
-DperformRelease=true -f pom.xml
and this line in release.properties:
exec.additionalArguments=-P build-dev,build-dev
build-dev is a profile in my settings.xml
______________________________
Why isn't the build-rel profile added to the POM?
When I add the profile build-rel manually into the child POM,
although present in the parent POM, the deploy works fine.
Hope someone can help me with this,
Simon.
smime.p7s
Description: S/MIME cryptographic signature
