Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Bug ID: 912333 Summary: mvn-rpmbuild if F19 does not export M2_HOME Product: Fedora Version: rawhide Component: javapackages-tools Severity: unspecified Priority: unspecified Reporter: mattias.ellert@fysast.uu.se
Description of problem:
mvn-rpmbuild on Fedora 19 does not export M2_HOME
Version-Release number of selected component (if applicable):
javapackages-tools.noarch 0:0.12.0-1.fc19
How reproducible:
Packages in the f19 rebuild failed due to M2_HOME not set. See e.g.
https://koji.fedoraproject.org/koji/taskinfo?taskID=4996219
Error message is:
"Maven application directory was not specified, and ${maven.home} is not provided in the system properties. Please specify at least on of these."
The code generating this error message is:
if ( ( mavenHome == null ) && ( System.getProperty( "maven.home" ) == null ) ) { if ( !getSystemEnvVars().containsKey( "M2_HOME" ) ) { throw new IllegalStateException( "Maven application directory was + "specified, and ${maven.home} is not provided in the system " + "properties. Please specify at least on of these." ); } }
I.e. if M2_HOME is set (like in mvn-rpmbuild for Fedora 18 and earlier) the exception is not thrown.
Actual results:
Failed builds due to M2_HOME not set
Expected results:
Working build
Additional info:
mvn-rpmbuild on Fedora 17 contains the line
export M2_HOME=/usr/share/maven
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mattias Ellert mattias.ellert@fysast.uu.se changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|mvn-rpmbuild if F19 does |mvn-rpmbuild on F19 does |not export M2_HOME |not export M2_HOME
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|sochotni@redhat.com |mizdebsk@redhat.com
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Upstream
--- Comment #1 from Mikolaj Izdebski mizdebsk@redhat.com --- Thank you for the report!
Fixed upstream: http://git.fedorahosted.org/cgit/javapackages.git/commit/?id=4dcb9efd7510d1d...
Build in Fedora is coming soon.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |0.12.1-1
--- Comment #2 from Mikolaj Izdebski mizdebsk@redhat.com --- Fixed in javapackages-tools-0.12.1-1
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |RAWHIDE Last Closed| |2013-02-18 09:23:40
https://bugzilla.redhat.com/show_bug.cgi?id=912333
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |NeedsTestCase
java-sig-commits@lists.fedoraproject.org