You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Tang Yong <ta...@cn.fujitsu.com> on 2013/04/15 12:52:35 UTC

[Asking]About Aries JDK7's building

Team,

Whether noting current trunk can not be built using jdk7?

...
INFO] BUILD FAILURE
INFO]
------------------------------------------------------------------------
INFO] Total time: 28.922s
INFO] Finished at: Mon Apr 15 19:48:46 JST 2013
INFO] Final Memory: 70M/185M
INFO]
------------------------------------------------------------------------
ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project org.apache.aries.testsupport.unit:
Compilation failure: Compilation failure:
ERROR] could not parse error message: 警告:[options] ブートストラップ・
クラスパスが-source 1.5と一緒に設定されていません
ERROR]
D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:187:
警告:[deprecation] FileのtoURL()は推奨されません
ERROR] this(name,properties,location.toURL().toExternalForm());
ERROR] ^
ERROR]
ERROR]
D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[239,17]
警告:[deprecation] FileのtoURL()は推奨されません
ERROR]
ERROR]
D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[263,60]
警告:[deprecation] FileのtoURL()は推奨されません
ERROR]
ERROR]
D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[328,65]
警告:[deprecation] FileのtoURL()は推奨されません
ERROR]
ERROR]
D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleContextMock.java:[632,58]
警告:[deprecation] FileのtoURL()は推奨されません
ERROR] -> [Help 1]
ERROR]
ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
ERROR] Re-run Maven using the -X switch to enable full debug logging.
ERROR]
ERROR] For more information about the errors and possible solutions,
please read the following articles:
ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
ERROR]
ERROR] After correcting the problems, you can resume the build with the
command
ERROR]   mvn <goals> -rf :org.apache.aries.testsupport.unit
...

The issue has been existed long time and there is a jira[1] for it,
however, so far, always in Unresolved.

[1]: https://issues.apache.org/jira/browse/ARIES-1006

Thanks
--Tang





Re: [Asking]About Aries JDK7's building

Posted by Tang Yong <ta...@cn.fujitsu.com>.
Tim,

I made a confirmation and the following modules need to be fixed in
order to compile in jdk7, however, needing to be careful:

1) testsupport/testsupport-unit

[Fixing]
File.toURL() ---> File.toURI().toURL()

2) util/util-r42
org.osgi.service.framework.CompositeBundle has been depreciated

[Fixing]
Needing to evaluate deeply

Noting in [1], the following
" The OSGi Alliance has decided to reject this provisional API. It will
never become a part of the official OSGi specification. Any users of the
org.osgi.service.framework composite bundle API must migrate to using
framework hooks to provide additional isolation within a single OSGi
framework. See the sub-packages of org.osgi.framework.hooks for ways to
control visibility and isolation for resolution, bundles and services.
Equinox plans to remove the org.osgi.service.framework API and composite
bundle implementation in the Summer of 2012 (after the 3.8 release).

Equinox also has a region digraph implementation that allows for the
definition and configuration of regions that can be used to isolate
bundles. The region digraph is built on top of the standard OSGi
framework hooks. The specific API to be removed includes:

    The complete org.osgi.service.framework package

For further details or to provide feedback on this change, see bug 345790. "

[1]:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fporting%2Fremovals.html

After I seen bug
345790(https://bugs.eclipse.org/bugs/show_bug.cgi?id=345790), until now,
this should not be removed. Because I am not right person to consider
how to use framework hooks to replace composite bundle API, so, needing
to evaluate deeply.

Thanks
--Tang

−−−−−−−−−−−−−−−−−−−−−−
Tang Yong
Senior Engineer
Glassfish Team Developer(OSGi&OSGi-JavaEE)
OSGi Alliance Supporter
Blog: http://osgizone.typepad.com/tangyong/

Nanjing Fujitsu NanDa Software Tec CO.,LTD
http://www.fujitsu.com/cn/fnst
Tel: +86-25-86630566-8310
Fax: +86-25-83317685              
−−−−−−−−−−−−−−−−−−−−−−


Re: [Asking]About Aries JDK7's building

Posted by Tang Yong <ta...@cn.fujitsu.com>.
Hi Tim

Thanks your reply.

Currently, JDK 6 has not any problem, however, 7 has problem. Maybe
should create a java7-parent in default-parent to resolve these
problems. I wish that I have more time to do it. :)

Tang

Timothy Ward wrote:
> I know a number of people have had errors building with JDK 7 in the past. I thought all the problems had been fixed, but this may not be the case.
> 
> Regards,
> 
> Tim Ward
> -------------------
> Apache Aries PMC member & Enterprise OSGi advocate
> Enterprise OSGi in Action (http://www.manning.com/cummins)
> -------------------
> 
> 
>> Date: Mon, 15 Apr 2013 19:52:35 +0900
>> From: tangyong@cn.fujitsu.com
>> To: dev@aries.apache.org
>> Subject: [Asking]About Aries JDK7's building
>>
>> Team,
>>
>> Whether noting current trunk can not be built using jdk7?
>>
>> ...
>> INFO] BUILD FAILURE
>> INFO]
>> ------------------------------------------------------------------------
>> INFO] Total time: 28.922s
>> INFO] Finished at: Mon Apr 15 19:48:46 JST 2013
>> INFO] Final Memory: 70M/185M
>> INFO]
>> ------------------------------------------------------------------------
>> ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
>> (default-compile) on project org.apache.aries.testsupport.unit:
>> Compilation failure: Compilation failure:
>> ERROR] could not parse error message: 警告:[options] ブートストラップ・
>> クラスパスが-source 1.5と一緒に設定されていません
>> ERROR]
>> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:187:
>> 警告:[deprecation] FileのtoURL()は推奨されません
>> ERROR] this(name,properties,location.toURL().toExternalForm());
>> ERROR] ^
>> ERROR]
>> ERROR]
>> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[239,17]
>> 警告:[deprecation] FileのtoURL()は推奨されません
>> ERROR]
>> ERROR]
>> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[263,60]
>> 警告:[deprecation] FileのtoURL()は推奨されません
>> ERROR]
>> ERROR]
>> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[328,65]
>> 警告:[deprecation] FileのtoURL()は推奨されません
>> ERROR]
>> ERROR]
>> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleContextMock.java:[632,58]
>> 警告:[deprecation] FileのtoURL()は推奨されません
>> ERROR] -> [Help 1]
>> ERROR]
>> ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> ERROR]
>> ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> ERROR]
>> ERROR] After correcting the problems, you can resume the build with the
>> command
>> ERROR]   mvn <goals> -rf :org.apache.aries.testsupport.unit
>> ...
>>
>> The issue has been existed long time and there is a jira[1] for it,
>> however, so far, always in Unresolved.
>>
>> [1]: https://issues.apache.org/jira/browse/ARIES-1006
>>
>> Thanks
>> --Tang
>>
>>
>>
>>
>  		 	   		  

-- 
−−−−−−−−−−−−−−−−−−−−−−
Tang Yong
Senior Engineer
Glassfish Team Developer(OSGi&OSGi-JavaEE)
OSGi Alliance Supporter
Blog: http://osgizone.typepad.com/tangyong/

Nanjing Fujitsu NanDa Software Tec CO.,LTD
http://www.fujitsu.com/cn/fnst
Tel: +86-25-86630566-8310
Fax: +86-25-83317685              
−−−−−−−−−−−−−−−−−−−−−−


RE: [Asking]About Aries JDK7's building

Posted by Timothy Ward <ti...@apache.org>.
I know a number of people have had errors building with JDK 7 in the past. I thought all the problems had been fixed, but this may not be the case.

Regards,

Tim Ward
-------------------
Apache Aries PMC member & Enterprise OSGi advocate
Enterprise OSGi in Action (http://www.manning.com/cummins)
-------------------


> Date: Mon, 15 Apr 2013 19:52:35 +0900
> From: tangyong@cn.fujitsu.com
> To: dev@aries.apache.org
> Subject: [Asking]About Aries JDK7's building
> 
> Team,
> 
> Whether noting current trunk can not be built using jdk7?
> 
> ...
> INFO] BUILD FAILURE
> INFO]
> ------------------------------------------------------------------------
> INFO] Total time: 28.922s
> INFO] Finished at: Mon Apr 15 19:48:46 JST 2013
> INFO] Final Memory: 70M/185M
> INFO]
> ------------------------------------------------------------------------
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project org.apache.aries.testsupport.unit:
> Compilation failure: Compilation failure:
> ERROR] could not parse error message: 警告:[options] ブートストラップ・
> クラスパスが-source 1.5と一緒に設定されていません
> ERROR]
> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:187:
> 警告:[deprecation] FileのtoURL()は推奨されません
> ERROR] this(name,properties,location.toURL().toExternalForm());
> ERROR] ^
> ERROR]
> ERROR]
> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[239,17]
> 警告:[deprecation] FileのtoURL()は推奨されません
> ERROR]
> ERROR]
> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[263,60]
> 警告:[deprecation] FileのtoURL()は推奨されません
> ERROR]
> ERROR]
> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleMock.java:[328,65]
> 警告:[deprecation] FileのtoURL()は推奨されません
> ERROR]
> ERROR]
> D:\aries\testsupport\testsupport-unit\src\main\java\org\apache\aries\mocks\BundleContextMock.java:[632,58]
> 警告:[deprecation] FileのtoURL()は推奨されません
> ERROR] -> [Help 1]
> ERROR]
> ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> ERROR] Re-run Maven using the -X switch to enable full debug logging.
> ERROR]
> ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> ERROR]
> ERROR] After correcting the problems, you can resume the build with the
> command
> ERROR]   mvn <goals> -rf :org.apache.aries.testsupport.unit
> ...
> 
> The issue has been existed long time and there is a jira[1] for it,
> however, so far, always in Unresolved.
> 
> [1]: https://issues.apache.org/jira/browse/ARIES-1006
> 
> Thanks
> --Tang
> 
> 
> 
>