w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Failed to collect dependencies in Maven project
Could you try use only console ? "mvn clean compile" should be enought to check if problem is with eclipse or not. Sometimes I had problem with dependencies in some maven project, and usually was because i didn't add a specific repository for them. Some dependencies are not installed in maven central repo, so you must check if your dependencies ara available in this repo. If not, you can add more repositories in your pom in order to tell maven "hey look for my dependencies in this other repo too".

Categories : Eclipse

Configure Maven To Create An Archive File With All Dependencies Defined in POM XML
while what youre suggesting is technically possible, it is (in my opinion) not the best solution to your problem. your statement that it requires the direct or indirect internet connection is not accurate. what maven requires is a maven repository (or a set of them) to fetch stuff from. the best solution to your problem would be to install a local maven repository inside your organization's network. the 2 most popular choices for a loaclly-run maven repository seem to be nexus and artifactory - both offer free open source versions and paid supported pro versions. once you set up a maven repository inside your organization's network and populate it with the artifacts you require you can simply configure all of your project's pom files to go to those repositories. for example, to config

Categories : Java

Is it possible to build an rpm package without making a tar.gz archive?
There isn't a whole ton of documentation on this, but yea you can just list the file if you want to. Here is a great discussion on doing this, as well as proper usage straight from Fedora.

Categories : Misc

Unload a package and all dependencies
This works for me -- a bit crude but gets the job done. on.exit({ #reset time limit setTimeLimit(cpu=Inf, elapsed=Inf, transient=FALSE); #try to detach packages that were attached during eval nowattached <- search(); todetach <- nowattached[!(nowattached %in% currentlyattached)]; while( ! length(todetach) == 0 ){ for(i in seq_along(todetach)){ suppressWarnings(tryCatch(detach(todetach[i], unload=TRUE, character.only=TRUE, force=TRUE),error = function(x) return(NA))) } nowattached <- search(); todetach <- sample(nowattached[!(nowattached %in% currentlyattached)]); } #try to unload packages that are still loaded nowloaded <- loadedNamespaces(); tounload <- nowloaded[!(nowloaded %in% currentlyloaded)]; while( ! length(tounload)

Categories : R

Figuring out dependencies of a python package
Try checking this Stack Overflow post. Is that along the lines of what you are looking for?

Categories : Python

Obfuscate single package with all dependencies
You can preserve all classes (with their fields and methods) outside of the package: -keep class !mysinglepackage.** { *; } Note that obfuscating just a single package generally isn't very effective, since so much of the code is being preserved.

Categories : Misc

Permission denied for git dependencies in package.json
I should run npm install without sudo. If can not, then change permissions for node.js apps folder: sudo chown -R `whoami` ~/pathToAll/node/apps. So git ssh dependencies work well in package.json

Categories : Node Js

Cannot create a package using OpenCV dependencies in ROS Groovy
roscreate-pkg will build a rosbuild package. You need to create a catkin one with catkin_create_pkg. Have a look at this page.

Categories : Opencv

Is there a standard way to document dependencies in a GNU Make package?
With most of the '.tar' files that I've opened, they document the dependencies in INSTALL or in README. There doesn't appear to be a standard way to handle this. The best makefiles that I've seen usually contain commented information regarding dependencies for the code in addition to historical hiccups in the build process. In many other cases, the makefile has been auto-generated by a program like Automake, cmake, premake, python, perl, etc... Auto-generated makefiles tend to be very difficult for a normal person to read. Hand crafted makefiles tend to be a lot easier for us mortals to read.

Categories : C++

Can OSGi easily be used to manage package dependencies?
Yes, using the Export-Package and Import-Package manifest headers. If you use an automated build system, it might detect the relationship and add these headers for you. Both Maven and Gradle use bnd to generate the necessary manifest headers. The bnd integration is provided by the maven-bundle-plugin and the Gradle OSGi plugin, respectively.

Categories : Java

Distributing a python package along with module dependencies using RPM
I'd see it as two separate problems. You want a repeatable install/build system for your developers. You want an installer builder. Buildout (or pip, perhaps in combination with an extra script) can take care of the first problem. Basically: "how to get the project ready for development on a fresh laptop". Ideally you'd just say python bootstrap.py;bin/buildout and be ready (same with pip/virtualenv). Now that you have a repeatable build, you can use that as the basis for an installer. Handiest is a clean virtual machine that you use just for this purpose. Virtualbox/vagrant, for instance. Make scripts that set up the virtualbox and that install the proper dependencies in there. The installer builder script can then make a fresh checkout of your project inside the virtualbox and do

Categories : Python

How to specify dependencies when creating the setup.py file for a python package
Ignore distutils. If you want to create a package that specifies dependencies for a tool like pip to go out and find for you, you need to base your setup.py of off setuptools instead. setuptools dependencies are listed in install_requires, which takes a list: setup(name='MyStuff', version='1.0', install_requires=['progressbar'], # ... ) which should be distributions of their own. os and sys are modules included with Python and should not be listed.

Categories : Python

running nose --with-coverage to get all the package files, but not other dependencies and libs
By default tests will not be included in the coverage report. You can make them show up (actually a very good idea to make sure your tests are properly executed, and no duplicate name tests are being ignored) with --cover-tests In any case, nosetests --help is your friend. Most likely --cover-inclusive flag kills off coverage plugin and other options (for the plugin) become unavailable. You can try to debug it by launching nose through pdb. As alternative you can run coverage as a standalone module launching nose tests.

Categories : Python

Create .class files from the command line with package dependencies
Include the current directory in the compilation path javac -classpath ../equinox.jar:. Package2/Class2.java Explanation: because the -classpath argument is used the current directory is no longer automatically used in the classpath so needs to be added explicitly. See the Java programming language compiler for a full description of all command line options

Categories : Java

Eclipse plugin: Copy/Export dependencies
Please read the paragraph about "Native code and class loaders" at http://www.eclipsezone.com/articles/eclipse-vms/. That will tell you the most important steps: Put the DLL at the root of the plugin project. Include it in build.properties. Use either System.loadLibrary() or OSGI headers to finally get the DLL loaded at runtime.

Categories : Java

maven copy-dependencies includeGroupIds and all transitive elements to those
Big thanks to user944849. It was very helpful to me for finding out the best solution in that case. For everyone who is interested in my solution, here it comes: At first I changed the plugin to maven-assemby-plugin and added a new assembly file <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <dependencies> <dependency> <groupId>com.foobar</groupId> <artifactId>foobar-parent</artifactId> <version>${foobar.version}</version> <type>pom</type> </dependency> </dependencies> <exec

Categories : Maven

first try to create archive to test , getting Code Sign error: The identity 'iPhone Developer' doesn't match any valid
In Navigator click on your project, then choose your Target and in Build Settings look for Code Signing. In Code Singing Identity you can set your developer certificate/provisioning profile which will be use to sign you archive. As fas as I'm concerned most used configuration is: Debug: iPhone Developer: your_name from iOS Team Provisioning Profile * or iPhone Developer: your_name from com.company.appBundle (it depeneds how to generated Provisioning Profiles in developer.apple.com) and for Release: iPhone Distribution from com.company.appBundle especially when you are using iCloud or In-App Purchases (even if you are testing your app). P.S When deploying to TestFlight you can sign your app with Ad Hoc profile. When depolying to iPad you are still using "iPhone Dis

Categories : Iphone

Automake test script dependencies
Use a plain make dependency: TESTS = test.py test.py: that_other_file that_other_file: echo Hi > $@ # remember to use a TAB before the action as usual

Categories : Misc

Create batch to archive files using main folder name for archive name
I don't have WinRAR, so I can't check the syntax for the rar command, but you could create a batchfile (backup.bat) like: cd %1 "C:Program FilesWinRARWinRAR.exe" a -esh -m5 -mt2 -r -s -t "..\%1.rar" cd .. And invoke it with backup A from the temp folder. That might be a start...

Categories : Batch File

Archive old files only AND re-construct folder tree in archive
I would take this route instead of rsync: Change directories so we can deal with relative path names instead of absolute ones: cd /home/user/documents Run your find command and feed the output to cpio, requesting it to make hard-links (-l) to the files, creating the leading directories (-d) and preserve attributes (-m). The -print0 and -0 options use nulls as record terminators to correctly handle file names with whitespace in them. The -l option to cpio uses links instead of actually copying the files, so very little additional space is used (just what is needed for the new directories). find . -type f -mtime +1000 -print0 | cpio -dumpl0 /home/user/archives Re-run your find command and feed the output to xargs rm to remove the originals: find . -type f -mtime +1000 -print0 | xargs

Categories : Linux

Build-automation - sbt: Compile/Test against multiple dependencies
You should check this link: Custom test configuration I know you don't want to do tests but as you can see, we can create different SBT configuration. You will probably be able to take inspiration of the following, and be able to create configurations and tasks so that you can run: guava13:compile guava14:compile guava13:test guava14:test And you can perhaps try to add the dependencies as follow: libraryDependencies += "com.google.guava" % "guava" % "13.0" % "guava13" libraryDependencies += "com.google.guava" % "guava" % "14.0" % "guava14" So that the dependency is scoped to the guava version configuration you use. Never done this, can't be sure :) You can also add cross-build Nice library idea by the way.

Categories : Scala

Does the Boost testing framework support test dependencies?
Well, you've found yourself that the feature is there and according to the links, it's there for end user to use. It's not documented by accident and "should be added soon" (as per links). Now, here's a nother post I've found which uses feature: http://boost.2283326.n4.nabble.com/Unit-Test-Framework-strange-behaviour-of-test-unit-depends-on-td2653654.html Sample from there (unfortunately, looks like no BOOST_AUTO_TEST_CASE works there). Also note that code is incorrect because Dependency() is never called and therefore dependent test doesn't run as well. #include <boost/test/included/unit_test.hpp> using boost::unit_test::test_suite; void Dependency() { BOOST_MESSAGE( "Dependency!" ); BOOST_CHECK( 1 ); } void TC_TestCase() { BOOST_MESSAGE( "A test case!" ); BOOST_CHECK(

Categories : C++

Arquillian fails to inject dependencies after the first test class
I have a similar problem (the only difference is that I'm getting the message "WELD-001456 Argument resolvedBean must not be null"). Resolved beans are stored in an instance of the class org.jboss.weld.manager.BeanManagerImpl that is shared between all tests in micro deployment. In my case the cause of failure is that when some test finished, its thread is staying bound with old instance of TestRunnerAdaptor that is linked to the already cleaned bean manager (see method org.jboss.weld.manager.BeanManagerImpl.cleanup()). If some test from next micro deployment will use one of such threads it fail. The problem is related to Arquillian with version > 1.0.3.Final (in new versions field type org.jboss.arquillian.junit.State.lastCreatedRunner is changed from ThreadLocal to InheritableThreadLocal

Categories : Java

Excluding "provided" scope dependencies during "test" execution phase?
Given the definition of the provided scope, I would not expect that jar to appear on the classpath during any execution phase. This is not quite the behaviour of provided scope; see Dependency Scope. provided scope, in common with compile, is for classes that are necessary to compile and test your classes. If they were missing during test then you would have a NoClassDefFoundError. The difference comes during packaging and deployment, where these artifacts are omitted from wars under the assumption that your target environment (for example, a servlet container) will provide its own copy of the same classes.

Categories : Maven

How to test simple ruby method, with timing and config dependencies
You may be able to use timecop as part of the solution (which also scores highly for me as "best-named gem, ever"). It is simple to use, and patches most sources of time data in sync, so that if for example your Utils module uses standard methods to assess time, it should have the same concept of "now" as Time.now shows. Note this won't work if Utils is making a call to external API on another process, in which case you should stub it to return uptime values needed in your test assertions. The following rspec snippet by way of example, and making some assumptions about what you have available (such as module under test being called Server) describe "#should_restart?" before :each do Timecop.travel( Time.parse("2013-08-01T12:00:00") ) Server.start # Just a guess # Using `mo

Categories : Ruby

vagrant package creates a copy of the original box with no changes I have made
The reason could be that you used the same box name. As you described, you've done something like this: Created a Vagrantfile: Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = 'base' config.vm.box_url = 'http://the-url-of-box-you-used-as-base.com/precise.box' end vagrant up vagrant ssh => there you've made some changes vagrant package --box [name] --output [new.box] Edit the original Vagrant file (or create a new one) to load your new box: Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = 'base' config.vm.box_url = 'my-new.box' end And here I'm assuming you kept the config.vm.box the same, which means Vagrant didn't use your box, but the original previous box as there's already downloaded box with that name in your ~/.vagrant.d/bo

Categories : Windows

Copy dynamically created file into built app package
I found the answer in this question: http://stackoverflow.com/a/7287596/1144632 I ended up using the following in my Run Script cp "${SRCROOT}/xyz.txt" "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/xyz.txt"

Categories : IOS

Publish web package adding tasks to copy files
You can actually solve this using a skip rule. Try calling your command file like this: deploy.cmd -skip:objectName=dirPath,absolutePath=Content\uploads$ For more information on the skip directive, see Web Deploy Operation Settings.

Categories : Asp Net

How to test dart pub lib package before deploy?
It very much depends on the type of package you are looking to use. If the pub package is primarily a non-UI library then you should be able to exercise its API via a UnitTest script, a small script that has a main to kick off a bunch of unit tests (grouped or otherwise). Another option for a non-UI package is to find the source project (usually noted in the package's page on pub.dartlang.org) and download it, where if you're lucky there will be a test directory with a unit test script in it. Some UI providing packages do include unit tests in their project too. A lot of projects include an example or two you can run to see how it works and pick up some tips from their source code, so I encourage you to check out the original source of the project you're interested in. But generally (

Categories : Dart

Import package from unit test code
First you have to include a __init__.py file inside folder my_package in order to allow Python to recognize this folder as a valid module. You can create an empty __init__.py file just with one line pass, for example. Then, you can do something like this in test_a.py: import os bkp = os.getcwd() os.chdir(r'....') import my_package os.chdir(bkp) Or use the other options with PYTHONPATH or sys.path.append().

Categories : Python

VB.Net (2008) Reference Copy Local, Reference dependencies and Installer issues
Short answer is you will always need to install the full framework if you use any of it. The Dependency tree in the .Net framework is quite deep, and though you do not depend on other .Net assemblies, it is highly likely that the portions you depend on will. You could use a package publisher like WiX (Windows installer XML Toolset) to create a more user friendly installer experience... http://wixtoolset.org/

Categories : Dotnet

package grails.plugins.springsecurity does not exist in jUnit test
I'm not sure why this particular issue is happening, but you can't really test security with unit tests. Spring Security is implemented as a filter chain, so you need to create a request and apply the chain. This could be properly mocked, but it would be a lot of work. Your best bet is to use functional tests, with a real running server and real requests. The risk of false positives with other approaches is way too high.

Categories : Java

Specifying in Maven the IntelliJ package prefix for source and test folders
The default in Maven is to specify the package within the src/main/java folder which means in other words to put the sources into src/main/java/com/abc/project1. Apart from that a package name which contains a thing like project1 sounds not that good.

Categories : Java

Why the Source Package not getting identified when created using Android Test Project in Eclipse Helios
I suggest you to read the manual, in your own example or in their web There are no default classes afaik, you have to create your test class in that package

Categories : Android

Copy each line in a test file to particular cell in excel sheet
You can always right a PowerShell script to read a text file and put data into an Excel file. $Excel = New-Object -ComObject Excel.Application $Excel.Visible = $False $Workbook = $Excel.Workbooks.Open("C:file.xlsx") $data = Get-Content 'C: extfile.txt' $i = $j = 1 foreach ($row in $data){ $Excel.Cells.Item($i,$j).Value() = $row $i += 1 $j = $i } $Excel.Quit() $Null = & { [Runtime.Interopservices.Marshal]::ReleaseComObject($Excel) [Runtime.Interopservices.Marshal]::ReleaseComObject($Workbook) } [GC]::Collect()

Categories : Excel

Adding Android Library: Only a type can be imported. com.project.test.networktasklibrary resolves to a package
Try using: import com.project.test.networktasklibrary.*; Instead Or: import com.project.test.networktasklibrary.ExactClassName;

Categories : Java

Can't archive iOS Application (iOS App Archive)
I solved the question by myself. The decision is: in Build Settings - INSTALL_PATH set "$(LOCAL_APPS_DIR)" - this code will generate /Applications. INSTALL_PATH install place where XCode will store archive for you. As I right understand to solve the task about archiving you need to do: in your PROJECT-SKIP_INSTALL - set to NO, and in your LIBRARIES-SKIP_INSTALL - set to YES; in your Project set Build Settings - INSTALL_PATH set "$(LOCAL_APPS_DIR)" in Build Phases-Copy headers transfer headers from Public/Private to Project section. I did these three steps and they are helped me, and I hope they will help you too.

Categories : IOS

Why does the program assemble, but do nothing?
Before calling any of the WinAPI functions you must provide some space on the stack: sub rsp,40 When calling other functions in x64 code on Windows you're required to provide shadow/spill/home space for that function, which is an area in which it can spill the 4 registers that are used for passing the first 4 parameters (ECX, EDX, R8, R9). Four quadwords amounts to 32 bytes (it's always 32 bytes, even if the function you call takes less than 4 arguments). So why subtract 40 instead of 32? There's also a requirement on stack alignment. Prior to calling a function you have to align the stack pointer to a multiple of 16 bytes (upon entering the function you'll also have RIPon the stack, making RSP % 16 == 8). So the subtraction of 8 extra bytes is because the stack pointer was 8 modulo 16

Categories : Visual Studio

Maven 2.1 dependency:analyze. Transitive dependencies: Used undeclared dependencies found
Dependency analysis works as expected. Code in project C uses classes from project B but it does not directly depend on project B. It compiles only because it transitively depend on B through project A. Changing dependency of project A would break project C. This is what we are trying to avoid This is not good, if the code uses classes from B, it should directly depend on B.

Categories : Java

How to assemble pdf from HTTP stream?
Is it your intention to save the file to the hardrive before sending it to the browser? Cause that is what you're (incorrectly) doing now. Best is to enclose the write action in a using statement, cause I don't see you close the stream anywhere: stream = new System.IO.FileStream(filepath, System.IO.FileMode.Create); Here you're saving to the file: CopyStream(responseStream, stream); Next, you're trying to read your outputstream (with which you just saved the file), to write that to your Response.Outputstream. And you have allready a copystream implementation, so why do it manually here? : HttpContext.Current.Response.OutputStream.Write(buffer, 0, length); So, I would say it should be something like: using (HttpWebResponse httpResponse = (HttpWebResponse)request.GetResponse()) {

Categories : C#

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.