Maven release plugin und profile activation

ankoe

Grünschnabel
Hallo,
ich habe eine parent pom, in der ich mit Profilen arbeiten muss. Beim Erstellen eines release des Projekts muss ich ein profile deaktivieren. Das release:prepare ignoriert alle profile bezogenen Angaben - z.B.
mvn -P!profile_id release:prepare wenn im activation tag des profile activateByDefault auf true gesetzt ist
oder
mvn -DdisableProfile=true release:prepare wenn im activation tag des profile <property><name>!disableProfile</name></property> gesetzt ist.

Wie kann ich beim release:prepare Bezug auf Profile nehmen?

Gruß Andrea
 
Hallo,
ich habe die Lösung doch noch gefunden. Die Profile-Id kann beim Aufruf des release:prepare und auch release:perform folgendermaßen angegeben werden:

mvn -Darguments="-Pprofile_id" release:prepare

Damit hat es bei mir funktioniert.

Gruß
ankoe
 
Zurück