Check artifacts status on maven local repository - maven

There are any way to check if the artifacts in the local maven repostiry are valid?
Some artifacts in my local repostory has a valid name (artifact.jar) but the content is html with error messages (the artifacts were downloaded from codehaus or openqa repositires, offline currently):
<html>
<head>
<title>OpenQA, RIP (2006 - 2013)</title>
</head>
<body>
<h1>Looking for a different OpenQA?</h1>
<p>
There are a few other projects with similar names. They are not related to this OpenQA but they are still very cool projects. Check them out!
</p>
<ul>
<li>openQA by openSUSE, automated tests for operating systems</li>
<li>openQA by AKSW, an open source question answering framework</li>
</ul>
<h1>Looking for an OpenQA project?</h1>
<p>
Unfortunately, OpenQA has seen its final days. Started originally by some of the great minds of open source
test automation, it had a great run and supported some of the best open source test automation projects out there:
</p>
<ul>
<li>Selenium</li>
<li>Watir</li>
<li>Session Tester</li>
<li>Pylot</li>
<li>Floyd</li>
<li>pyWinAuto</li>
<li>Frankenstein</li>
<li>Watir Recorder</li>
<li>WET</li>
<li>JTC</li>
</ul>
<p>
Some of these projects have moved on: Selenium and Watir survive as a standalone projects while others have evolved in to new efforts and have found new homes. But others have been left stagnant for years and were unfairly misleading to users, giving the impression that they were viable projects even though no one had been involved in years.
</p>
<p>
Rather than continue to mislead developers about the state of the projects, we've decided to lay it all out there
and hope that the interesting projects will eventually get forked and live again on another site such as Google Code, Github, or Bitbucket.
</p>
<h1>So what now?</h1>
<p>
If you're looking for information on the following projects, you can find more information at it's new home:
</p>
<table>
<thead>
<tr>
<th>Project</th>
<th>New Home</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selenium</td>
<td>http://docs.seleniumhq.org/</td>
</tr>
<tr>
<td>Watir</td>
<td>http://watir.com/</td>
</tr>
<tr>
<td>CubicTest</td>
<td>http://www.cubictest.org/</td>
</tr>
</tbody>
</table>
<p>
If you're looking for information on a project not listed, that means it's not actively maintained. That doesn't
mean the project is useless, it just means no one runs it right now. But some projects are still certainly useful,
so
the following may help you better use it.
</p>
<h2>Project Websites</h2>
<p>
We recommend using the Internet Archive Wayback Machine to browse around the old project sites, which are no longer
hosted here. Follow this link
to see what the site looked like in June, 2013.
</p>
<h2>Downloads</h2>
<p>
For older downloads, the best place to look is in the public Maven repository. Search for "openqa" or the specific project name (ie: "selenium").
</p>
<h2>Bug Tracker and Wiki</h2>
<p>
Again, we recommend the Wayback Machine for the old <a
href="http://web.archive.org/web/20130116202849/http://jira.openqa.org/secure/Dashboard.jspa">JIRA
instance (bug tracker)</a> and Confluence instance (wiki).
</p>
<h1>Final Words</h1>
<p>
While it's sad to finally put OpenQA to bed, we hope this announcement at least gives clarity on the status of
the projects. If you have questions that aren't answered on this page, you can email openqa#lightbody.net but we can't
guarantee that we can answer your question. We will try to keep this page updated with more information as it comes
up.
</p>
</body>
</html>
I was thinking to get a sha1 string of all artifacts and compare it with the artifact.pom.sha1 file content. Some another ideas? There are any maven command line parameter to do that?
My maven version is 3.3.9.

The nearest solution I think of is to purge the local repository and then re-resolve it (Maybe a little hard, I know).
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

Related

How to make client's audio file download rather than play?

I would like visitors to be able to download my music files, rather than have those files automatically open in their browsers' players, but I don't know how.
I have read that HTML5's download attribute is made for this, but I can't get it to work.
My site's DTD is HTML 4.01 Strict -- would that be affecting it?
The relevant markup is:
<ul>
<li>Test.wav</li>
</ul>
How can I get the audio files to download instead of playing them directly in the browser?
UPDATE:
Some stackoverflow members are trying to educate me as to how this site works. They believe that one of my subsequent discoveries (posted below) isn't an answer to the above question. In my opinion it goes deeper than an answer, because it proved that my question wasn't valid. Here's what I wrote:
Thanks to Sql Surfer and Developer90 for your help.
It turns out that the problem was me: I hadn't realized that, in order for the HTML 5 "download" attribute to work, my files had to be online! I had been testing them via local files on my own desktop!
Once uploaded, "download" did everything it was supposed to do.
As I commented (above), testing showed me that "download" works in files that are HTML 5 doctype as well as those that are HTML 4.01 (strict) doctype.
My apologies for inconveniencing you!
It depends on the browser the user is. As you said, you can add the download attr in the <a></a> html tag like this:
<ul>
<li><a href="Test.wav" download="Test.wav" download>Test.wav</a></li>
</ul>
What you may can use is the target attr. But this is to open a new tab. Example:
<ul>
<li>Test.wav</li>
</ul>
It must be the html4 that is affecting it.
2 Ideas:
A: Keep html 4.01 and use javascript to affect the
"Content-disposition".
B: Use the <!DOCTYPE html> to force html 5
As Devloper90 points out the target tag is relevant. Having no target tag is probably what you want.

where I can change the links to social icons in Joomla?

I do not know Joomla, but I had one task in exsiting site, to change the link of social button, linkedin.
I thought it was simple task, but I wasted 2 days for it, looking in files and interface. Can you help me please, or just give me ideas where these social links can be placed.
version of Joomla is 2.5.14
<div class="custom">
<p style="text-align: right;">
Site Map
<img src="/images/siteImages/lnicon.png" border="0" alt="">
</div>
Thanks in advance)
you are my last chance :)
found the links in Module Custom HTML module, in administration panel.

IIS 7.5 hierarchy breaks application path

I've setup a web application under a website using information from IIS.Net - Understanding Site, Applications and Virtual Directories
Below is what they say regarding applications.
An application is a group of files that delivers content or provides services over protocols, such as HTTP. When you create an application in IIS, the application's path becomes part of the site's URL.
That's great; exactly what I want; however...the application path is not resolving properly for script files, css and a web service I have in the application.
For http://site_name/application_name
<img src="/Content/images/smiley.png" alt="smiley face" /></a>
resolves to
src="/site_name/Content/images/smiley.png"
instead of
src="/application_name/Content/images/smiley.png"
As a work-around I've wrapped the paths I was using withe #Url.Content() helper. Not the prettiest solution, but it's working.
<img src="#Url.Content("~/Content/images/smiley.png")" alt="smiley face" /></a>
Is there a way to fix this in IIS?
This is not an IIS issue, this is something you'd have to do on the template side. Now, I'm not sure, but in asp.net mvc4/razor 2 there might be some additional magic that allows you to instead of
<img src="#Url.Content("~/Content/images/smiley.png")" alt="smiley face" />
do
<img src="~/Content/images/smiley.png" alt="smiley face" />
and everything is converted automatically to the proper path. Actually this blog post seems to document that ability.
But but otherwise, <img src="/path/to/image.png" alt="smiley face" /> is always going to refer to http(s)://(current server)/path/to/image.png, unless, somehow the html is rewritten before it is seen in the browser.
Using #Url.Content is the right way here IMO. It then makes the links work regardless of how a developer is setup on their machine (running the dev server, or using IIS).
I'm not sure if there's a way to deal with it in IIS, maybe a URL rewrite rule, but it won't help with consistency across development machines.
Edit: You could deploy the site to the root of the site in IIS, as opposed to a virtual directory, but that is only a good solution if you're only going to be hosting this single site.
Add this "base" tag in your "head" section: <base href="~/" target="_blank" />. I was having the same problem with my anchor elements.

AJAX Wordpress Site with Difficult URL settings

On this WordPress theme utilizing AJAX, proves to be difficult. The developer of the theme cannot seem to find the issue or solution to it.
This site runs beautifully, if, and only IF, you type is this complete URL "http://www.geigerandwood.com/#!//" if you type in the .com site alone, it will appear but will be disfunctional.
I have made attempts in 301 redirects, even creating a static page with a redirect but still no luck. Is there something that I can add or change in the code to make this work properly?
FYI - it has been tested on the common web browsers on both OSX & Windows.
Here is a video of my presented issue. http://www.screenr.com/D1G8
What theme do you use?
My quick examination of your page source code is that I only can find something related to the #!// is in here
<div id="contentBoxScroll">
<a id="closeButton" href="#!//"></a>
<div class="dragcontainer">
<div id="contentBoxScrollDragger" class="dragger">
<div class="scroll_up"></div>
<div class="scroll_down"></div>
</div>
</div>
</div>
I assume it must be something inside the script from which that HTML is generated. I can say more since I can't see the full source.

all #RequestMapping into header page (SPRING MVC)

how to get all #ReqpuestMapping
i have a header page and some other pages
my header page has sidebar menus, i want to display my menu into all pages
Thanks
Pradeep
If following is what you are trying to do, Apache Tiles is well suited for you requirement.
Apache Tiles™ is a templating framework built to simplify the
development of web application user interfaces.
Tiles allows authors to define page fragments which can be assembled
into a complete page at runtime. These fragments, or tiles, can be
used as simple includes in order to reduce the duplication of common
page elements or embedded within other tiles to develop a series of
reusable templates. These templates streamline the development of a
consistent look and feel across an entire application.
It also integrates well with spring. You can start looking at the Spring reference to integrate with Apache tiles. A simple tutorial here.
If you are using some Layout Frameworks like Tiles, etc then you can configure your layout in xml configuration files.
or if you are not using any Layout Framework, and you are using plain jsp pages then create separate pages like header.jsp, footer.jsp, menu.jsp and include these pages in all your other pages, wherever required.
Ex.
<body>
<table>
<tr>
<td>
<jsp:include page="menu.jsp"/>
</td>
</tr>
<tr>
<td>
Actual page code will go here
</td>
</tr>
<tr>
<td>
<jsp:include page="footer.jsp"/>
</td>
</tr>
</table>
</body>

Resources