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
{{ message }}
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
I have a project such like a client-server structure.
It has 3 modules :
app (my server to provide some service) -- apk module
sdk (my sdk to provide some API to communicate with my app) -- aar module
common (something which should include both in my app module and sdk module ,such as utils,beans,etc. --aar module
because I do not want to write it in my both app and sdk module ,debugging and modifying should work twice.)
so my project looks like as below:
and in my app module and sdk module has one line looks like :
compile project(':common')
and I have wrote as below
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
groupId _groupId
artifactId _artifactId
version _versionName
name _name
}
}
}
}
but my generated sdk's pom-default.xml looks like:
And my sdk module's aar do not include anything about common module's file ,so when I archive to maven,it can not find the common module's dependency what I want.
Simply, when an aar module dependency other aar module in one project ,the plugin cannot work and cannot transmit the dependency . I want the wrong area use the common module's maven info.
The text was updated successfully, but these errors were encountered:
my one solution is using a script to rewrite the pom.xml
as below
#!/bin/bashecho"project is $1"
path=sdk/build/poms/pom-default.xml
sysOS=`uname -s`echo"system is $sysOS"if [ $sysOS=="Darwin" ];then# Mac OSX
sed -i '' -e "s/<groupId>$1<\/groupId>/<groupId>${GROUP_ID}<\/groupId>/g"$path
sed -i '' -e "s/<artifactId>common<\/artifactId>/<artifactId>${ARTIFACT_ID}-common<\/artifactId>/g"$path
sed -i '' -e "s/<version>unspecified<\/version>/<version>${VERSION_NAME}<\/version>/g"$pathelse
sed -i "s/<groupId>$1<\/groupId>/<groupId>${GROUP_ID}<\/groupId>/g"$path
sed -i "s/<artifactId>common<\/artifactId>/<artifactId>${ARTIFACT_ID}-common<\/artifactId>/g"$path
sed -i "s/<version>unspecified<\/version>/<version>${VERSION_NAME}<\/version>/g"$pathfi
but it's a very very bad idea, is there any support ? thanks a lot !!!
I have a project such like a client-server structure.
It has 3 modules :
app (my server to provide some service) -- apk module
sdk (my sdk to provide some API to communicate with my app) -- aar module
common (something which should include both in my app module and sdk module ,such as utils,beans,etc. --aar module
because I do not want to write it in my both app and sdk module ,debugging and modifying should work twice.)
so my project looks like as below:
and in my app module and sdk module has one line looks like :
compile project(':common')
and I have wrote as below
but my generated sdk's pom-default.xml looks like:
And my sdk module's aar do not include anything about common module's file ,so when I archive to maven,it can not find the common module's dependency what I want.
Simply, when an aar module dependency other aar module in one project ,the plugin cannot work and cannot transmit the dependency . I want the wrong area use the common module's maven info.
The text was updated successfully, but these errors were encountered: