Skip to content
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

The genrated Helidon archetype pom is incorrect #65

Closed
hantsy opened this issue Sep 18, 2018 · 2 comments
Closed

The genrated Helidon archetype pom is incorrect #65

hantsy opened this issue Sep 18, 2018 · 2 comments

Comments

@hantsy
Copy link

hantsy commented Sep 18, 2018

Environment Details

  • Helidon Version: 0.10.0
  • Helidon SE or Helidon MP
  • JDK version: java version "1.8.0_181"
  • OS: Windows 10
  • Docker version (if applicable):

Problem Description

I commented out the tow missing modules(#64 ) in the 0.10.0, and get helidon installed in my local system.

I tried to rerun the project generating command via the following command, it still failed.

mvn archetype:generate -DinteractiveMode=false \
    -DarchetypeGroupId=io.helidon.archetypes \
    -DarchetypeArtifactId=helidon-quickstart-se \
    -DarchetypeVersion=0.10.0 \
    -DgroupId=io.helidon.examples \
    -DartifactId=quickstart-se \
    -Dpackage=io.helidon.examples.quickstart.se

When I opended the helidon-archetype-mp pom.xml file, it is a html file like this, not a valid POM file.

<!DOCTYPE html>
<html>
	<head>
		<script type="text/javascript">
			var href_url = window.location.href;
			var pos = href_url.indexOf("?")
			var param = '';
			if(pos > 0){
					var param = '?'+href_url.substring(pos+1);
			}
			var n_language = (navigator.browserLanguage || navigator.language).toLowerCase();

			var strEn = '';
			var isEn = false;
						if(n_language.indexOf('en')>-1 && isEn) {
				strEn = 'eng_';
			}
			
			if(/applewebkit.*mobile.*/i.test( navigator.userAgent.toLowerCase()) 
			|| /windows.*phone.*mobile.*/i.test( navigator.userAgent.toLowerCase()) 
			|| /msie.*touch.*wpdesktop/i.test( navigator.userAgent.toLowerCase()) 
			|| /adr.*mobile*/i.test( navigator.userAgent.toLowerCase())
			|| /android.*mobile.*/i.test( navigator.userAgent.toLowerCase()) 
			|| /android.*applewebkit.*/i.test( navigator.userAgent.toLowerCase())){
					if(/ipad/i.test(navigator.userAgent.toLowerCase())){
							window.location.href = "/p/f871f89bc889528e6646ae7bc7195ae7/" + strEn + "index.html"+param;
					}else{
							window.location.href = "/p/f871f89bc889528e6646ae7bc7195ae7/" + strEn + "mobile_index.html"+param;	
					}
			}else{
					window.location.href = "/p/f871f89bc889528e6646ae7bc7195ae7/" + strEn + "index.html"+param;
			}
		</script>
	</head>
	<body>
	</body>
</html>

@hantsy
Copy link
Author

hantsy commented Sep 18, 2018

It seems this is generated when creating the project by archetype.

@hantsy hantsy closed this as completed Sep 18, 2018
@romain-grecourt
Copy link
Contributor

Are you behind an HTTP proxy ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants