[EMAIL PROTECTED] wrote: > Hi, > > a have a java module (*.jar) with 2 profiles: > > ... > <groupId>myGroup</groupId> > <artifactId>myArtifact</artifactId> > <version>4711-SNAPSHOT</vesion> > > <profile> > <id>featureOn</id> > </profile> > > <profile> > <id>featureOff</id> > </profile> > ... > > The difference between these profiles is, that aspectj > applies some aspect > in one case, for en/disabling special features. > > The result of the build is in both cases: > > myartifact-4711-SNAPSHOT.jar > > which is deployed in the repository. > > > => How can I mvn:deploy the artifact in a way to the > repo, that the > "featureOn" / "featureOff" versions are divided? > The reason I need to divide them is our "delivery" build > (packaging the whole stuff together): > > delivery-with-featureOn needs dependency to > "featureOn" version of myArtifact while > delivery-with-featureOff need dependency to > "featureOff" version of myArtifact.
You can define in jar plugin configuration a classifier for the resulting. So you may configure this in one of the profiles. However, if you expect from a release that both versions are available, you may solve this by configuring additional executions instead and drop the profile. Depends on your use case. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
