[JBoss JIRA] (SHRINKWRAP-439) Support resolution of variables in Maven settings file
by Thomas SEGISMONT (JIRA)
Thomas SEGISMONT created SHRINKWRAP-439:
-------------------------------------------
Summary: Support resolution of variables in Maven settings file
Key: SHRINKWRAP-439
URL: https://issues.jboss.org/browse/SHRINKWRAP-439
Project: ShrinkWrap
Issue Type: Enhancement
Reporter: Thomas SEGISMONT
Variables in Maven settings file are not resolved.
For instance if you have this node in your settings :
{code:xml}
<localRepository>${user.home}/.m2/repository</localRepository>
{code}
then Shrinkwrap will create a _$\{user.home\}/.m2/repository_ in the project directory and use it as local repository.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (SHRINKRES-44) ShrinkRes 1.0.0-X: Update Aether to 1.13.1
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-44?page=com.atlassian.jira.plug... ]
Karel Piwko updated SHRINKRES-44:
---------------------------------
Summary: ShrinkRes 1.0.0-X: Update Aether to 1.13.1 (was: Update Aether to 1.13.1)
> ShrinkRes 1.0.0-X: 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
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (SHRINKRES-18) MavenImporter on war files should support a configuration that supports "skipping the build" in the IDE (and preferably use it by default)
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-18?page=com.atlassian.jira.plug... ]
Karel Piwko resolved SHRINKRES-18.
----------------------------------
Fix Version/s: 2.0.0-alpha-7
Resolution: Done
> MavenImporter on war files should support a configuration that supports "skipping the build" in the IDE (and preferably use it by default)
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SHRINKRES-18
> URL: https://issues.jboss.org/browse/SHRINKRES-18
> Project: ShrinkWrap Resolvers
> Issue Type: Enhancement
> Affects Versions: 2.0.0-alpha-1
> Reporter: Geoffrey De Smet
> Assignee: Karel Piwko
> Fix For: 2.0.0-alpha-7
>
>
> Currently the MavenImporter on war files requires "mvn package" to be run every time (not only the first time), to update the exploded directory at "target/{finalName}".
> This means if you change something in your code and want to (re)run a test,
> and forget to run "mvn package" first, you're running the old code (and the results are not representative of the changed code).
> Karel and Geoffrey discussed this at JUDCon London.
> The following things can be probably presumed:
> - The IDE compiles all classes from src/main/java to target/classes.
> - The IDE copies all non-filtered resources from src/main/resources to target/classes.
> - That target/classes is copied into the war at WEB-INF/classes.
> - Most src/main/webapp dirs are copied unaltered into the root of the war. (*)
> - "mvn compile" is run once after any "mvn clean": in other words, all src/main/filtered-resources are in target/classes
> So MavenImporter doesn't have to require "mvn package" to build the exploded dir first (which it then zips, enriches and sends to arquillian).
> Instead, it can construct the war zip directly from target/classes and src/main/webapp.
> That is at least one less copy and more importantly, to run the test from the IDE without having to build first.
> Note: all examples above used the explicit directory locations, but in reality the pom.xml's <build> section should be used to determinate the directory locations for a certain project.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months