Fórum

using maven

ildar sl, modificado 8 Anos atrás.

using maven

Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
ant -f build-maven.xml deploy-artifacts


......................

[exec] [INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time: 6.290 s
[exec] [INFO] Finished at: 2015-09-30T20:42:10+05:00
[exec] [INFO] Final Memory: 11M/154M
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.liferay.portal:portal-client:jar:${lp.maven.version} from/to liferay-snapshots (http://localhost:8081/nexus/content/repositories/liferay-snapshots): Failed to transfer file: http://localhost:8081/nexus/content/repositories/liferay-snapshots/com/liferay/portal/portal-client/$%257Blp.maven.version%257D/portal-client-$%257Blp.maven.version%257D.jar. Return code is: 400, ReasonPhrase: Bad Request. -> [Help 1]
[exec] [ERROR]
[exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[exec] [ERROR]
[exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

BUILD FAILED
f:\liferay-portal-src-6.2-ce-ga4\build-maven.xml:44: The following error occurred while executing this line:
f:\liferay-portal-src-6.2-ce-ga4\20150930203624619\build.xml:39: The following error occurred while executing this line:
f:\liferay-portal-src-6.2-ce-ga4\20150930203624619\build.xml:176: exec returned: 1

Total time: 5 minutes 49 seconds


Hi. I do as instructed http://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/developing-plugins-using-maven-liferay-portal-6-2-dev-guide-02-en
What do I do wrong?
thumbnail
David H Nebinger, modificado 8 Anos atrás.

RE: using maven

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
You did not create the build.username.properties file and replace the ${} references with real values.
ildar sl, modificado 8 Anos atrás.

RE: using maven

Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
Thank you.
add line lp.maven.version=3.3.3 in the file /liferay-portal-src-6.2-ce-ga4/release.ILD.properties (By the way, an error in the article : "Create a releaseS.[user name].properties in your local Liferay Portal CE source project")
gpg.keyname=8BC770ED
gpg.passphrase=qwerty
lp.maven.version=3.3.3
lp.maven.repository.url=http://localhost:8081/nexus/content/repositories/liferay-snapshots
lp.maven.repository.id=liferay-snapshots


Now on the other


Uploading: http://localhost:8081/nexus/content/repositories/liferay-snapshots/com/liferay/portal/portal-client/3.3.3/portal-client-3.3.3.pom622/622 B
[exec] [INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time: 0.924 s
[exec] [INFO] Finished at: 2015-09-30T22:53:15+05:00
[exec] [INFO] Final Memory: 9M/154M
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.liferay.portal:portal-client:jar:3.3.3 from/to liferay-snapshots (http://localhost:8081/nexus/content/repositories/liferay-snapshots): Failed to transfer file: http://localhost:8081/nexus/content/repositories/liferay-snapshots/com/liferay/portal/portal-client/3.3.3/portal-client-3.3.3.jar. Return code is: 400, ReasonPhrase: Bad Request. -> [Help 1]
[exec] [ERROR]
[exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[exec] [ERROR]
[exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

BUILD FAILED
f:\liferay-portal-src-6.2-ce-ga4\build-maven.xml:44: The following error occurred while executing this line:
f:\liferay-portal-src-6.2-ce-ga4\20150930225253975\build.xml:39: The following error occurred while executing this line:
f:\liferay-portal-src-6.2-ce-ga4\20150930225253975\build.xml:176: exec returned: 1

Total time: 22 seconds
thumbnail
David H Nebinger, modificado 8 Anos atrás.

RE: using maven

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Are you trying to do a mvn install or mvn deploy?

The version for 6.2 GA4 should be 6.2.3 I believe.
ildar sl, modificado 8 Anos atrás.

RE: using maven

Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
I tried both options....
thumbnail
Gurumurthy Godlaveeti, modificado 8 Anos atrás.

RE: using maven

Regular Member Postagens: 208 Data de Entrada: 12/08/11 Postagens Recentes
ildar sl:
ant -f build-maven.xml deploy-artifacts


[exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.liferay.portal:portal-client:jar:${lp.maven.version} from/to liferay-snapshots


Hi,

Looks like issue with portlet maven installing process.

I think you need to give liferay version number for this portal-client jar in your pom.xml, not the maven version.

The JAR portal-client-6.2.3jar (with liferay version num) can be available in repo but not with portal-client.3.3.3.jar (maven version number).

You can get liferay version in pom with ${liferay.version} expression.

Thanks
Guru
ildar sl, modificado 8 Anos atrás.

RE: using maven

Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
Hi Gurumurthy.

In the folder liferay-portal-src-6.2-ce-ga4 is absent file pom.xml. Still, I try to run the command "ant" and not "mvn".