|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (13)
View Page History{note}
Since the version 3.4.0 of the Maven Petals Plugin, the new parameter '{{packaging}}' is required to avoid conflict with the default packaging '{{jar}}'.
{note}
{note}
{note}
Since the version 2.4.0 of the Maven Petals Plugin, no more dummy POM file is required to run following usecases on command line.
But, to run them using a configuration packaged as Maven artifact (org.foo.bar:configuration:1.0.0), it is needed to have the following dummy POM file:
But, to run them using a configuration packaged as Maven artifact (org.foo.bar:configuration:1.0.0), it is needed to have the following dummy POM file:
<groupId>org.ow2.petals</groupId>
<artifactId>petals-maven-plugin</artifactId>
<artifactId>petals-maven-plugin</artifactId>
<version>2.34.0</version>
<extensions>true</extensions>
<dependencies>
<dependencies>
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-sl-jms-activemq -Dpackaging=jbi-shared-library -Dversion=4.1.1 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-sl-jms-activemq -Dpackaging=jbi-shared-library -Dversion=5.2.0 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties
{code}
* Next, we configure the components:
{code}
* Next, we configure the components:
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-jms -Dpackaging=jbi-component -Dversion=3.1.1 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties -DjbiSharedLibrariesMappingFileURL=http://myhost:myport/myPath/jbi-shared-libraries-list-mapping-file.properties -DjbiVersionsMappingFileURL=http://myhost:myport/myPath/jbi-versions-mapping-file.properties
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-soap -Dpackaging=jbi-component -Dversion=4.0.2 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties -DjbiSharedLibrariesMappingFileURL=http://myhost:myport/myPath/jbi-shared-libraries-list-mapping-file.properties -DjbiVersionsMappingFileURL=http://myhost:myport/myPath/jbi-versions-mapping-file.properties
{code}
* using the following content of the file 'jbi-identifiers-mapping-file.properties':
* using the following content of the file 'jbi-identifiers-mapping-file.properties':
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-soap -Dpackaging=jbi-component -Dversion=4.0.2 -DjbiExtraComponentClasspathMappingURL=file:///home/myuser/my-extra-component-classpath-mapping.properties
{code}
where the file /home/myuser/my-extra-component-classpath-mapping.properties contains:
where the file /home/myuser/my-extra-component-classpath-mapping.properties contains:
Such a configuration can be updated directly from the service assembly containing service units without to restart a development cycle. Just use the goal 'jbi-configure' as following:
{code}
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals.samples -DartifactId=interceptor-sa -Dpackaging=jbi-service-assembly -Dversion=1.0.0 -DserviceInterceptorCustomizationFileURL=file:///home/myuser/service-interceptors-customization.properties -DserviceInterceptionConfigurationName=productionConfiguration
{code}
where:
where:
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-soap -Dpackaging=jbi-component -Dversion=3.1.4 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-soap -Dpackaging=jbi-component -Dversion=4.0.5 -DjbiIdentifiersMappingFileURL=http://myhost:myport/myPath/jbi-identifiers-mapping-file.properties
{code}
To use a configuration available as Maven artifact, use the following command line:
{code}
{code}
mvn org.ow2.petals:petals-maven-plugin:3.4.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-bc-soap -Dpackaging=jbi-component -Dversion=3.1.4 -DjbiIdentifiersMappingFile=jbi-identifiers-mapping-file.properties
{code}
where jbi-identifiers-mapping-file.properties is available as resource into the configuration Maven artifact.
where jbi-identifiers-mapping-file.properties is available as resource into the configuration Maven artifact.
| groupId | String | \- \\ | \* \\ | GroupId of the deliverable JBI artefact to configure. |
| artifactId | String | \- \\ | \* \\ | ArtifactId of the deliverable JBI artefact to configure. |
| artifactId | String | \- \\ | \* \\ | ArtifactId of the deliverable JBI artefact to configure. |
| packaging | String | \- \\ | \* \\ | Packaging of the deliverable JBI artefact to configure. Possible values: {{jbi-component}}, {{jbi-service-unit}}, {{jbi-service-assembly}} and {{jbi-shared-library}} |
| version | String | \- \\ | \* \\ | Version of the deliverable JBI artefact to configure. |
| outputDirectory | File \\ | $\{project.build.directory} | \* \\ | Configured JBI artifact output directory |
| outputDirectory | File \\ | $\{project.build.directory} | \* \\ | Configured JBI artifact output directory |