Skip to content

Commit 4180dc3

Browse files
committed
Attempt to fix maven central deployment
1 parent eba07f5 commit 4180dc3

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/ant.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build with Maven
2323
run: |
2424
cd maven
25-
xvfb-run -a mvn install
25+
xvfb-run -a mvn install -Plocal-dev-javase
2626
2727
2828
- name: Fetch archetype projects
@@ -34,8 +34,8 @@ jobs:
3434
run: |
3535
unzip cn1-maven-archetypes.zip
3636
cd cn1-maven-archetypes-master
37-
xvfb-run -a mvn install archetype:update-local-catalog
38-
xvfb-run -a mvn archetype:crawl
37+
xvfb-run -a mvn install archetype:update-local-catalog -Plocal-dev-javase
38+
xvfb-run -a mvn archetype:crawl -Plocal-dev-javase
3939
- name: Run Maven Unit Tests
4040
run: |
4141
pwd

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run Unit Tests
3131
run: |
3232
cd maven
33-
mvn clean verify -DunitTests=true -pl core-unittests -am -Dmaven.javadoc.skip=true
33+
mvn clean verify -DunitTests=true -pl core-unittests -am -Dmaven.javadoc.skip=true -Plocal-dev-javase
3434
cd ..
3535
- name: Install dependencies
3636
run: |

.github/workflows/release-on-maven-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
cd maven
3535
bash update-version.sh "$GITHUB_REF_NAME"
3636
export GPG_TTY=$(tty)
37-
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
37+
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE -Plocal-dev-javase
3838
cd ..
3939
git clone https://github.com/shannah/cn1-maven-archetypes
4040
cd cn1-maven-archetypes
4141
bash update-version.sh "$GITHUB_REF_NAME"
42-
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
42+
xvfb-run -a mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE -Plocal-dev-javase
4343
env:
4444
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
4545
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

maven/javase/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
<profile>
5454
<id>local-dev-javase</id>
5555
<activation>
56-
<activeByDefault>true</activeByDefault>
56+
<property>
57+
<name>codename1.platform</name>
58+
<value>javase</value>
59+
</property>
5760
</activation>
5861
<dependencies>
5962
<dependency>

0 commit comments

Comments
 (0)