[JBoss JIRA] (SHRINKRES-44) Update Aether to 1.13.1
by Karel Piwko (JIRA)
Karel Piwko created SHRINKRES-44:
------------------------------------
Summary: Update Aether to 1.13.1
Key: SHRINKRES-44
URL: https://issues.jboss.org/browse/SHRINKRES-44
Project: ShrinkWrap Resolvers
Issue Type: Component Upgrade
Components: impl-maven
Affects Versions: 1.0.0-beta-7
Reporter: Karel Piwko
Assignee: Karel Piwko
Fix For: 1.0.0-beta-8
Aether should be updated to the latest version, as it was done in upstream.
This will make packaging of ShrinkWrap Maven resolver in Fedora much easier.
Due to Aether Maven repository changes, a fix for Maven Repository types is required (
https://gist.github.com/1362504):
{code}
aused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.jboss.arquillian.container.test.impl.client.deployment.AnnotationDeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:156)
... 48 more
Caused by: java.lang.RuntimeException: Could not create new descriptor instance
at org.jboss.shrinkwrap.resolver.api.DependencyBuilderInstantiator.createFromUserView(DependencyBuilderInstantiator.java:101)
at org.jboss.shrinkwrap.resolver.api.DependencyResolvers.use(DependencyResolvers.java:39)
at org.scalabox.lift.helloworld.HelloWorldTest$.deployment(HelloWorldTest.scala:93)
at org.scalabox.lift.helloworld.HelloWorldTest.deployment(HelloWorldTest.scala)
... 53 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.shrinkwrap.resolver.api.DependencyBuilderInstantiator.createFromUserView(DependencyBuilderInstantiator.java:96)
... 56 more
Caused by: java.lang.IllegalArgumentException: No manager available for local repository /Users/g/.m2/repository of type enhanced using the available factories EnhancedLocalRepositoryManagerFactory, SimpleLocalRepositoryManagerFactory
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.newLocalRepositoryManager(DefaultRepositorySystem.java:454)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenManagerBuilder.localRepositoryManager(MavenManagerBuilder.java:106)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenRepositorySystem.getSession(MavenRepositorySystem.java:79)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenBuilderImpl.<init>(MavenBuilderImpl.java:110)
... 61 more
Caused by: org.sonatype.aether.repository.NoLocalRepositoryManagerException: No manager available for local repository /Users/g/.m2/repository of type enhanced using the available factories EnhancedLocalRepositoryManagerFactory, SimpleLocalRepositoryManagerFactory
at org.sonatype.aether.impl.internal.DefaultLocalRepositoryProvider.newLocalRepositoryManager(DefaultLocalRepositoryProvider.java:139)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.newLocalRepositoryManager(DefaultRepositorySystem.java:450)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 10 months
[JBoss JIRA] (SHRINKWRAP-399) Descriptors 2.0 module BeansDescriptor API mixes String and Alternatives<BeansDescriptor>, is hard to use
by Craig Ringer (JIRA)
Craig Ringer created SHRINKWRAP-399:
---------------------------------------
Summary: Descriptors 2.0 module BeansDescriptor API mixes String and Alternatives<BeansDescriptor>, is hard to use
Key: SHRINKWRAP-399
URL: https://issues.jboss.org/browse/SHRINKWRAP-399
Project: ShrinkWrap
Issue Type: Feature Request
Components: ext-descriptors
Affects Versions: 1.0.0
Environment: java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Linux ayaki.localdomain 3.3.0-4.fc16.x86_64 #1 SMP Tue Mar 20 18:05:40 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Reporter: Craig Ringer
The API for BeansDescriptor in the Descriptors 2.0 module (org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee:jar:2.0.0-alpha-2) is confusing and hard to use for simple cases. It needs revision.
The distinction between BeansDescriptor.createAlternatives() and BeansDescriptor.getOrCreateAlternatives() isn't clear. Does the former unconditionally replace any existing alternatives entry?
There's no obvious .replace(oldBean, newBean) to swap alternatives. The descriptor needs simple methods for:
- Removing an alternative
- Replacing an alternative
- Adding an alternative
It almost appears that the descriptor module is trying to handle multiple <alternatives/> entries, if that's the purpose of BeansDescriptor.getAllAlternatives(). Weld doesn't permit multiple alternatives, as a test with multiple alternatives entries will show:
org.jboss.weld.exceptions.DefinitionException: WELD-001203 <alternatives> can only be specified once, but appears multiple times: vfs:/content/demo.jar/META-INF/beans.xml@6
... and as far as I can tell the beans.xml xsd backs that up: http://java.sun.com/xml/ns/javaee/beans_1_0.xsd
It doesn't make sense for the descriptors module to produce invalid descriptors; someone testing Weld code, JBoss descriptor loading, etc would use hand-crafted descriptors or descriptors produced using the XML APIs, not something like shrinkwrap descriptors. It really only needs to handle well-formed descriptors and should handle common tasks quickly and easily.
FWIW, I'm not a big fan of ".clazz" either. What does that *mean*? How about ".alternative(...)" or ".addAlternative(...)" or ".alternativeClass(...)" ? The method ".clazz(String)" doesn't tell the reader much.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months
[JBoss JIRA] (SHRINKDESC-119) Create a Builder SPI
by Andrew Rubinger (JIRA)
Andrew Rubinger created SHRINKDESC-119:
------------------------------------------
Summary: Create a Builder SPI
Key: SHRINKDESC-119
URL: https://issues.jboss.org/browse/SHRINKDESC-119
Project: ShrinkWrap Descriptors
Issue Type: Feature Request
Reporter: Andrew Rubinger
Apart from the SWD object model, we could make it much easier to populate the metadata by introducing a "Builder" (name to be discussed) SPI. The purpose here would be a pluggable mechanism to accomplish code like the following:
{code}WebAppDescriptor desc = create(WebAppDescriptor.class)
.add(type(Servlet.class)
.className("com.acme.MyServlet")
.name("MyServletName"))
.add(build(Servlet.class)
.from(MyServlet.class));{code}
Here the WepAppDescriptor gets data added by scanning in annotations observed on the user's MyServlet, relieving the user of supplying the configuration manually.
A more full example is detailed in this Gist contributed by Aslak:
https://gist.github.com/1025597
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months