Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site)

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Master,

I wanna ask, when I'm running "mvn install site" why show like this:

anybody help me please.

Thank You
Capture.PNG
[Thumbnail for Capture.PNG]
 
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

Can you show us your POM?

When posting code and stack traces, please don't post screenshots, but copy the text and paste it here, and surround it in code tags like [code]this[/code].
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for trying to UseCodeTags (that's a link) but you didn't quite get it right.  Code tags use square brackets like this:

   [code][/code]

Even easier, use the pull down from the new post screen.  Select XML if that is what the code is, to get syntax highlighting.

Lastly, use the Preview button (next to the Submit button) to see if you made any mistakes before you post.  

I'm going to clean up your posts for you this time.

[Edit: It looks like your second post doesn't contain any new information, so I'm hiding it.]
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the problem persist when you remove the jtest-maven-plugin?

If the problem goes away, you have to take it up with Parasoft. I can't reproduce the issue because I don't have a licence to use their software.

You have other issues though. Why are you using two different versions of Spring? You also seem to be using the wrong groupId for the OJDBC dependency. And why haven't you configured the repositories in your POM?
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Does the problem persist when you remove the jtest-maven-plugin? If the problem goes away, you have to take it up with Parasoft. I can't reproduce the issue because I don't have a licence to use their software. You have other issues though. Why are you using two different versions of Spring? You also seem to be using the wrong groupId for the OJDBC dependency. And why haven't you configured the repositories in your POM?



Thank you for support.

if I remove jtest-maven-plugin, a different error will appear. when I install spring in maven, the structure appears like that. I've fixed GroupId OJDBC. and how to configure repo in POM?
I'm sorry, I'm still learning maven.
In this output when I remove jtest-maven-plugin

 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like your Maven settings are bad.

Please post the .m2/settings.xml from your user folder, but make sure you censor sensitive data (such as names and passwords) first.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:It looks like your Maven settings are bad.

Please post the .m2/settings.xml from your user folder, but make sure you censor sensitive data (such as names and passwords) first.





 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your <proxy> element is not enclosed in a <proxies> element.

The file paths you use for your plugin repository and your mirror are not valid URLs. You must specify them as URLs using the file protocol.

For the OJDBC driver, you need to add an extra repository to your project POM. Here's what it could look like:
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Your <proxy> element is not enclosed in a <proxies> element.

The file paths you use for your plugin repository and your mirror are not valid URLs. You must specify them as URLs using the file protocol.

For the OJDBC driver, you need to add an extra repository to your project POM. Here's what it could look like:



I've fixed my proxy, and maybe, for now, I comment mirror and plugin repo.
I've just add a central repo in my settings.xml

and this is output when I run "mvn install site"



even though I already added the plugin maven-reporting-exec-1.4 in my POM.xml
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and this is my POM.xml
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your settings.xml too.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Please post your settings.xml too.



 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, your settings.xml file is not valid. Please run it through an XML syntax checker.

Why have you declared plugin groups in your settings.xml? It's much better to specify groupIds explicitly in your project POM.

Did you censor the user names/passwords/keys from the settings.xml? If not, and those are your real settings, then why are you using example settings, such as the <server> elements?

Why have you declared the maven central repository in your settings.xml? Put it in your project POM, but ONLY if you declared other repositories as well, and you want the central repository to take precedence.

You still need to add the HandChina RDC repo to the repositories in your project POM, as I've shown you earlier. It seems that right now, you're pulling a local copy of the ojdbc7 artifact, making your build unreproducible to anybody on a different machine. The groupId is still wrong. It should be com.oracle, not oracle. Where did you get this dependency?

Again, why are you using two different Spring versions?

I cleaned up your POM. See if this works:

If it doesn't, it's definitely a problem with your build environment. That means your Maven settings are still not right, or maybe something is wrong with your Maven or Java installations.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Again, your settings.xml file is not valid. Please run it through an XML syntax checker.

Why have you declared plugin groups in your settings.xml? It's much better to specify groupIds explicitly in your project POM.

Did you censor the user names/passwords/keys from the settings.xml? If not, and those are your real settings, then why are you using example settings, such as the <server> elements?

Why have you declared the maven central repository in your settings.xml? Put it in your project POM, but ONLY if you declared other repositories as well, and you want the central repository to take precedence.

You still need to add the HandChina RDC repo to the repositories in your project POM, as I've shown you earlier. It seems that right now, you're pulling a local copy of the ojdbc7 artifact, making your build unreproducible to anybody on a different machine. The groupId is still wrong. It should be com.oracle, not oracle. Where did you get this dependency?

Again, why are you using two different Spring versions?

I cleaned up your POM. See if this works:

If it doesn't, it's definitely a problem with your build environment. That means your Maven settings are still not right, or maybe something is wrong with your Maven or Java installations.




I apologize for all the mistakes.

Okay, I'll try using your PM template.
and this is end of ouput when I running



what does this mean?
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you share the output of
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Can you share the output of



 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, the problem is that you're using a new version of Maven but an old version of Java.

Are you required to use Java 7? If not, you want to upgrade to at least Java 8, but I recommend Java 11.

Alternatively, whenever you run a Maven command you first have to specify the TLS version to use. Java 7 defaults to TLS 1.1 but Maven 3.6 requires TLS 1.2:
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M Ridhwan Kamil: It is not necessary to quote the entire text of a previous message.  Only quote as much as is needed to provide context, or none at all.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Yeah, the problem is that you're using a new version of Maven but an old version of Java.

Are you required to use Java 7? If not, you want to upgrade to at least Java 8, but I recommend Java 11.

Alternatively, whenever you run a Maven command you first have to specify the TLS version to use. Java 7 defaults to TLS 1.1 but Maven 3.6 requires TLS 1.2:



Yeaaay, it's work for me. That's briliant.
Anyway, how to set mirror in seeting.xml?
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:M Ridhwan Kamil: It is not necessary to quote the entire text of a previous message.  Only quote as much as is needed to provide context, or none at all.



Okay Mr. I'm sorry    
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

M Ridhwan Kamil wrote:Yeaaay, it's work for me. That's briliant.


Good to hear. Does it also work when you re-add the jtest-maven-plugin?

Anyway, how to set mirror in seeting.xml?


Why do you want this?
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Good to hear. Does it also work when you re-add the jtest-maven-plugin?


Yes, I re-add jtest-maven-plugin and still work

Why do you want this?


so, I need add <pluginrepository> and <mirror> in my settings.xml for configure software(Jtest) for Maven.
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not convinced about the mirror. First try adding only the plugin repository.

Did you clean up your other settings? Did you remove the plugin groups and removed proxies and repositories that you don't need?
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:I'm not convinced about the mirror. First try adding only the plugin repository.

Did you clean up your other settings? Did you remove the plugin groups and removed proxies and repositories that you don't need?



I've followed your Instruction, but I got some error. Maybe I should consult to the related vendor.
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what error did you get?
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Well, what error did you get?



like this.
Capture.PNG
[Thumbnail for Capture.PNG]
 
Stephan van Hulst
Saloon Keeper
Posts: 12165
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As it says, run the Maven command you were using, but include the -e switch and copy and paste the entire exception stack trace.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:As it says, run the Maven command you were using, but include the -e switch and copy and paste the entire exception stack trace.



Sorry, I just gave you news.



whats does "Checksum validation failed" mean?

Thank You.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means the integrity of the downloaded file is in question.
 
M Ridhwan Kamil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:It means the integrity of the downloaded file is in question.



So, I have 2 servers(Code Review(a successful project that I ran yesterday) and Source code management(Gitlab))

If I running a project in server Code Review, there's no problem and error. Everything is okay.
But, If I running a project in server Source Code management(I found that error).

I have made both repositories the same but doesn't work.

In fact, the two servers are already connected with GitLab-runner.  

and now what should I do?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic