Bug 1104396

Summary: maven stopped working due to broken symlinks in /usr/share/maven/lib/
Product: [Fedora] Fedora Reporter: Mikko Tiihonen <mikko.tiihonen>
Component: mavenAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: akurtako, java-sig-commits, lpetrovi, mizdebsk, msimacek, msrb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.2.1-8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-04 06:51:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikko Tiihonen 2014-06-03 22:00:00 UTC
Description of problem:
Running mvn fails with java.lang.ClassNotFoundException: org.apache.maven.cli.MavenCli

Version-Release number of selected component (if applicable):
maven-3.2.1-7.fc21.noarch

The problem seems to be that at least all the symlinks in the rpm that are in
/usr/share/maven/lib/ and try to point to /usr/share/java/maven/ are broken.

For example
 /usr/share/maven/lib/maven-embedder.jar -> ../../../maven/maven-embedder.jar
resolves to
 /usr/maven/maven-embedder.jar
but the actual file is in
 /usr/share/java/maven/maven-embedder.jar

Both the symlink and the actual jar come from the same maven rpm so the problem is in packaging.

Comment 1 Mikolaj Izdebski 2014-06-04 06:42:59 UTC
Fixed in maven-3.2.1-8

Comment 2 Mikolaj Izdebski 2014-06-04 06:51:01 UTC
I believe that this bug is fixed in maven-3.2.1-8,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=521203

Comment 3 Michal Srb 2014-06-05 04:11:07 UTC
*** Bug 1104890 has been marked as a duplicate of this bug. ***