You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# --- Normalize Codename One versions in generated iOS project POMs ---
108
86
ROOT_POM="$APP_DIR/pom.xml"
@@ -138,91 +116,11 @@ while IFS= read -r -d '' P; do
138
116
x -u "/mvn:project[mvn:parent/mvn:groupId='com.codenameone' and mvn:parent/mvn:artifactId='codenameone-maven-parent']/mvn:parent/mvn:version" -v "$CN1_VERSION""$P"||true
139
117
done<<(find "$APP_DIR" -type f -name pom.xml -print0)
140
118
141
-
# 3) Point all com.codenameone deps/plugins to ${codenameone.version}
142
-
while IFS= read -r -d '' P;do
143
-
x -u "/mvn:project//mvn:dependencies/mvn:dependency[starts-with(mvn:groupId,'com.codenameone')]/mvn:version" -v '${codenameone.version}'"$P"2>/dev/null ||true
144
-
x -u "/mvn:project//mvn:build/mvn:plugins/mvn:plugin[starts-with(mvn:groupId,'com.codenameone')]/mvn:version" -v '${codenameone.version}'"$P"2>/dev/null ||true
145
-
x -u "/mvn:project//mvn:build/mvn:pluginManagement/mvn:plugins/mvn:plugin[starts-with(mvn:groupId,'com.codenameone')]/mvn:version" -v '${codenameone.version}'"$P"2>/dev/null ||true
146
-
done<<(find "$APP_DIR" -type f -name pom.xml -print0)
147
-
148
-
# 4) Ensure common Maven plugins have versions (helps before parent resolves)
if [ "$(q -t -v "count(/mvn:project/mvn:build/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a']/mvn:version)""$pom"2>/dev/null ||echo 0)"="0" ] &&
165
-
[ "$(q -t -v "count(/mvn:project/mvn:build/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a'])""$pom"2>/dev/null ||echo 0)"!="0" ];then
166
-
x -s "/mvn:project/mvn:build/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a']" -t elem -n version -v "$v""$pom"||true
167
-
fi
168
-
if [ "$(q -t -v "count(/mvn:project/mvn:build/mvn:pluginManagement/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a']/mvn:version)""$pom"2>/dev/null ||echo 0)"="0" ] &&
169
-
[ "$(q -t -v "count(/mvn:project/mvn:build/mvn:pluginManagement/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a'])""$pom"2>/dev/null ||echo 0)"!="0" ];then
170
-
x -s "/mvn:project/mvn:build/mvn:pluginManagement/mvn:plugins/mvn:plugin[mvn:groupId='$g' and mvn:artifactId='$a']" -t elem -n version -v "$v""$pom"||true
0 commit comments