New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find or load main class ${argLine} #3073

Closed
gp1864 opened this Issue Nov 24, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@gp1864
Contributor

gp1864 commented Nov 24, 2017

Is this a bug or feature request?

bug

What is the current behavior?

When running local build of metasfresh distributable from command line, tests fail with a message:

Error: Could not find or load main class ${argLine}

The reason of such behavior is that argLine property from POM file of metasfresh-parent repository does not have any value and thus is not substituted and left on a command line as '${argLine}' string:

/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java '${argLine}' -Xms256m -Xmx2048m -jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire/surefirebooter4166171272514606443.jar /home/xxxxx/tools/metasfresh/repos/metasfresh/de.metas.migration/de.metas.migration.base/target/surefire 2017-11-24T02-52-24_868-jvmRun1 surefire3861974827102949879tmp surefire_05423199727247223953tmp

Which are the steps to reproduce?

Steps described in 'Build metasfresh from command line' document will reproduce the error: http://docs.metasfresh.org/developers_collection/en/getting_started_mvn_cmdline_en.html.
Build will fail on mvn install command run in metasfresh/de.metas.reactor directory of metasfresh repository working copy.

What is the expected or desired behavior?

The build should not fail when argLine property does not have any value.
This can be achieved by defining default value of argLine in propertiessection of metasfresh-parent repository POM file as follows:

	<!-- default value for argLine property -->
	<argLine></argLine>

Unfortunately I don't have yet working Jenkins environment and I cannot tell how it works with Jenkins.

@metas-ts metas-ts added the type:bug label Nov 27, 2017

@metas-ts metas-ts self-assigned this Nov 27, 2017

metas-ts referenced this issue in metasfresh/metasfresh-parent Nov 27, 2017

Hope this solves the issue. @gp1864 can you confirm?
to verify, i think you need to pull the latest from emtasfresh-parent and mvn install it
Error: Could not find or load main class ${argLine} #3073
@gp1864

This comment has been minimized.

Show comment
Hide comment
@gp1864

gp1864 Nov 28, 2017

Contributor

Hi,
@metas-ts yes, tests don't fail anymore with that error message and the build finishes successfully. Thank you.
George

Contributor

gp1864 commented Nov 28, 2017

Hi,
@metas-ts yes, tests don't fail anymore with that error message and the build finishes successfully. Thank you.
George

metas-ts added a commit to metasfresh/metasfresh-parent that referenced this issue Dec 1, 2017

@metas-ts metas-ts removed their assignment Dec 1, 2017

metas-ts added a commit that referenced this issue Dec 1, 2017

update releasenotes.md
[#2177](#2177) New Window
for Attribute Search in WebUI
[#3117](#3117) Disable
MStorage.add
[#1357](metasfresh/metasfresh-webui-frontend#1357)
Don't use the legacy view attributes API
[#1367](metasfresh/metasfresh-webui-frontend#1367)
view attributes shall be refreshed when the current selected row is
refreshed
[#3041](#3041) Forecast
Window copy Field content from header to lines when creation
[#3040](#3040) Implement
Clone/ Copy for Forecast Window WebUI
[#1360](metasfresh/metasfresh-webui-frontend#1360)
View field editor: override viewEditorRenderMode on row level
[#2868](#2868) Make
BOMValidate process to work correctly in webui
[#2956](#2956) drop
allowconsolidateinvoice from database
[#3073](#3073) Error:
Could not find or load main class ${argLine}
[#3072](#3072)
de_metas_purchasecandidate schema containing some diagnosis views
[#705](metasfresh/metasfresh-webui-api#705)
Backend Logic for new Date Filter Widget
[#3064](#3064) Multiple
PP Order generation for a materialdispo line
[#3088](#3088) Transform
in material receipt left destroyed HU behind
[#3086](#3086) HU planned
after Purchase Order, destroyed after material receipt
[#3089](#3089) Not able
to start report service with ReportServiceMain.launch
[#3042](#3042)
C_Bpartner: new Additional fields
[#3060](#3060)
TypedSqlQuery Bugs because aggregateList method ignores order
[#3054](#3054) purchase
candidates: document references

me-45
@metas-rc

This comment has been minimized.

Show comment
Hide comment
@metas-rc

metas-rc Dec 13, 2017

Member

Note: Nothing to IT.

Member

metas-rc commented Dec 13, 2017

Note: Nothing to IT.

@metas-rc metas-rc closed this Dec 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment